Skip to content

Commit 9ecb6d8

Browse files
committed
Make enableing developer options clearer, better design hierarchy
1 parent 1a87df9 commit 9ecb6d8

File tree

3 files changed

+21
-64
lines changed

3 files changed

+21
-64
lines changed

openandroidinstaller/openandroidinstaller.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,13 @@ def build(self):
114114
self.dlg_help_developer_options = AlertDialog(
115115
modal=True,
116116
title=Text("How to enable developer options and OEM unlocking"),
117-
content=Text(
118-
"To do this, tap seven times on the build number in the 'System'- or 'About the phone'-Menu in Settings. Then in developer options, toggle OEM unlocking and USB-Debugging."
117+
content=Markdown(
118+
"""
119+
To do this, tap seven times on the build number in the 'System'- or 'About the phone'-Menu in Settings. You can also use the phones own search to look for `build number`.
120+
Then go back to the main menu and look for 'developer options'. You can also search for it in your phone.
121+
When you are in developer options, toggle OEM unlocking and USB-Debugging. If your phone is already connected to your PC, a pop-up might appear. Allow USB debugging in the pop-up on your phone.
122+
Now you are ready to continue.
123+
"""
119124
),
120125
actions=[
121126
TextButton("Close", on_click=self.close_developer_options_dlg),
@@ -163,7 +168,7 @@ def check_bootloader_unlocked(e):
163168
),
164169
Row(
165170
[
166-
FilledButton(
171+
ElevatedButton(
167172
"How do I enable developer mode?",
168173
on_click=self.open_developer_options_dlg,
169174
expand=True,
@@ -185,7 +190,7 @@ def check_bootloader_unlocked(e):
185190
),
186191
Row(
187192
[
188-
ElevatedButton(
193+
FilledButton(
189194
"Search device",
190195
on_click=self.search_devices,
191196
icon=icons.PHONE_ANDROID,

openandroidinstaller/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_title(title: str):
3737

3838

3939
def confirm_button(
40-
confirm_func: Callable, confirm_text: str = "Confirm and continue"
40+
confirm_func: Callable, confirm_text: str = "Continue"
4141
) -> ElevatedButton:
4242
"""Get a button, that calls a given function when clicked."""
4343
return ElevatedButton(

poetry.lock

Lines changed: 11 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)