Skip to content

Commit 145f20a

Browse files
committed
change progressbar color
1 parent 47c1711 commit 145f20a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

openandroidinstaller/assets/configs/Pixel 3a.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ steps:
3939
- title: "Flash LineageOS"
4040
type: call_button
4141
content: "Boot into recovery"
42-
command: "fastboot reboot"
42+
command: "adb reboot bootloader"
43+
- title: "Flash LineageOS"
44+
type: confirm_button
45+
content: "Select 'Restart recovery' on your smartphone screen. Then confirm"
4346
- title: "Flash LineageOS"
4447
type: confirm_button
4548
content: "Now tap 'Wipe'. Then tap 'Format Data' and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage."

openandroidinstaller/openandroidinstaller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def main(page: Page):
3939
page.window_left = 720
4040
# page.theme_mode = "dark"
4141
views = []
42-
pb = ProgressBar(width=400, color="amber", bgcolor="#eeeeee", bar_height=16)
42+
pb = ProgressBar(width=400, color="#00d886", bgcolor="#eeeeee", bar_height=16)
4343
pb.value = 0
4444
num_views = None # this is updated later
4545
inputtext = TextField(hint_text="your unlock code", expand=False) # textfield for the unlock code
@@ -133,7 +133,7 @@ def call_to_phone(e, command: str):
133133
command = command.replace("<recovery>", recovery_path)
134134
command = command.replace("<image>", image_path)
135135
command = command.replace("<inputtext>", inputtext.value)
136-
page.views[-1].controls.append(ProgressRing())
136+
page.views[-1].controls.append(ProgressRing(color="#00d886"))
137137
page.update()
138138
res = call(f"{command}", shell=True)
139139
if res != 0:
@@ -257,7 +257,7 @@ def get_new_view(title: str, index: int, content: List = []) -> View:
257257
title="Welcome to OpenAndroidInstaller!",
258258
content=[
259259
Text("Enable USB debugging on your device by enabling developer options."),
260-
Text("To do this, tap 5 times on the build number in the System-Menu in Settings."),
260+
Text("To do this, tap seven times on the build number in the System-Menu in Settings."),
261261
Text("Then in developer options, toggle OEM unlocking and USB-Debugging."),
262262
ElevatedButton(
263263
"Search device", on_click=search_devices, icon=icons.PHONE_ANDROID

0 commit comments

Comments
 (0)