Skip to content

Commit 3b5dd53

Browse files
committed
Add steps indicator header
1 parent cb48223 commit 3b5dd53

11 files changed

Lines changed: 21 additions & 10 deletions
137 KB
Loading
123 KB
Loading
123 KB
Loading
131 KB
Loading
124 KB
Loading
125 KB
Loading

openandroidinstaller/views/requirements_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def build(self):
5757
# build up the main view
5858
self.right_view.controls.extend(
5959
[
60-
get_title("Check the Requirements"),
60+
get_title("Check the Requirements", step_indicator_img="steps-header-requirements.png"),
6161
Text(
6262
"Before continuing you need to check some requirements to progress. Please read the instructions and check the boxes if everything is fine."
6363
),

openandroidinstaller/views/select_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def build(self):
126126
#)
127127
# add title and progressbar
128128
self.right_view.controls.append(
129-
get_title("Now pick an OS image and a recovery file:", info_button=info_button)
129+
get_title("Now pick an OS image and a recovery file:", info_button=info_button, step_indicator_img="steps-header-select.png")
130130
)
131131
self.right_view.controls.append(self.state.progressbar)
132132

openandroidinstaller/views/start_view.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
Column,
2323
Divider,
2424
ElevatedButton,
25+
Image,
2526
OutlinedButton,
2627
FilledButton,
2728
Markdown,
@@ -113,7 +114,7 @@ def check_bootloader_unlocked(e):
113114
# build up the main view
114115
self.right_view.controls.extend(
115116
[
116-
get_title("Get the phone ready"),
117+
get_title("Get the phone ready", step_indicator_img="steps-header-get-ready.png"),
117118
Markdown(
118119
"""
119120
To get started you need to

openandroidinstaller/views/step_view.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ def check_advanced_switch(e):
101101
self.terminal_box = TerminalBox(expand=True)
102102

103103
# main controls
104+
steps_indictor_img_lookup = {
105+
"Unlock the bootloader": "steps-header-unlock.png",
106+
"Flash custom recovery": "steps-header-recovery.png",
107+
"Install OS": "steps-header-install.png",
108+
}
104109
self.right_view.controls = [
105-
get_title(f"{self.step.title}"),
110+
get_title(f"{self.step.title}", step_indicator_img=steps_indictor_img_lookup.get(self.step.title)),
106111
self.state.progressbar,
107112
Text(f"{self.step.content}"),
108113
]

0 commit comments

Comments
 (0)