Skip to content

Commit

Permalink
Add color to the bootloader unlocked switch
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed Feb 16, 2023
1 parent 218fba3 commit 968c859
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions openandroidinstaller/views/start_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def check_bootloader_unlocked(e):
label="Bootloader is already unlocked.",
on_change=check_bootloader_unlocked,
disabled=True,
inactive_thumb_color=colors.YELLOW,
active_color=colors.GREEN,
)

# inform the user about the device detection
Expand Down Expand Up @@ -160,17 +162,22 @@ def build(self):
- **connect your device to this computer via USB** and
- **allow USB debugging in the pop-up on your phone**.
- Then **press the button 'Search device'**.
- If you **already unlocked the bootloader** of your device, please toggle the switch below, to skip the procedure.
If you don't know what this means, you most likely don't need to do anything and you can just continue.
When everything works correctly you should see your device name here and you can continue.
"""
),
Divider(),
Markdown(
"""
If you **already unlocked the bootloader** of your device, please toggle the switch below, to skip the procedure.
If you don't know what this means, you most likely don't need to do anything and you can just continue.
"""
),
Row([self.bootloader_switch]),
Divider(),
Column(
[
self.device_detection_infobox,
Row([self.bootloader_switch]),
]
),
Row(
Expand Down

0 comments on commit 968c859

Please sign in to comment.