Skip to content

Commit 968c859

Browse files
committed
Add color to the bootloader unlocked switch
1 parent 218fba3 commit 968c859

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

openandroidinstaller/views/start_view.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def check_bootloader_unlocked(e):
112112
label="Bootloader is already unlocked.",
113113
on_change=check_bootloader_unlocked,
114114
disabled=True,
115+
inactive_thumb_color=colors.YELLOW,
116+
active_color=colors.GREEN,
115117
)
116118

117119
# inform the user about the device detection
@@ -160,17 +162,22 @@ def build(self):
160162
- **connect your device to this computer via USB** and
161163
- **allow USB debugging in the pop-up on your phone**.
162164
- Then **press the button 'Search device'**.
163-
- If you **already unlocked the bootloader** of your device, please toggle the switch below, to skip the procedure.
164-
If you don't know what this means, you most likely don't need to do anything and you can just continue.
165165
166166
When everything works correctly you should see your device name here and you can continue.
167167
"""
168168
),
169169
Divider(),
170+
Markdown(
171+
"""
172+
If you **already unlocked the bootloader** of your device, please toggle the switch below, to skip the procedure.
173+
If you don't know what this means, you most likely don't need to do anything and you can just continue.
174+
"""
175+
),
176+
Row([self.bootloader_switch]),
177+
Divider(),
170178
Column(
171179
[
172180
self.device_detection_infobox,
173-
Row([self.bootloader_switch]),
174181
]
175182
),
176183
Row(

0 commit comments

Comments
 (0)