Skip to content

Commit 2bb71a6

Browse files
committed
Improve scaling by using responsive rows for toggle switches and mutliline checkboxes
1 parent 0290d4c commit 2bb71a6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

openandroidinstaller/views/requirements_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def build(self):
139139
required_android_version = self.state.config.requirements.get("android")
140140
if required_android_version:
141141
android_checkbox = Checkbox(
142-
label="The required android version is installed. (Or I know the risk of continuing)",
142+
label="The required android version is installed.\n(Or I know the risk of continuing)",
143143
on_change=self.enable_continue_button,
144144
)
145145
android_version_check = Card(

openandroidinstaller/views/start_view.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
OutlinedButton,
2727
FilledButton,
2828
Row,
29+
ResponsiveRow,
2930
TextButton,
3031
colors,
3132
icons,
@@ -106,6 +107,7 @@ def check_bootloader_unlocked(e):
106107
disabled=True,
107108
inactive_thumb_color=colors.YELLOW,
108109
active_color=colors.GREEN,
110+
col={"xl": 6},
109111
)
110112

111113
# toggleswitch to allow skipping flashing recovery
@@ -119,6 +121,7 @@ def check_recovery_already_flashed(e):
119121
disabled=True,
120122
inactive_thumb_color=colors.YELLOW,
121123
active_color=colors.GREEN,
124+
col={"xl": 6},
122125
)
123126

124127
# inform the user about the device detection
@@ -202,7 +205,7 @@ def build(self):
202205
alignment="center",
203206
),
204207
Divider(),
205-
Row([self.bootloader_switch, self.recovery_switch]),
208+
ResponsiveRow([self.bootloader_switch, self.recovery_switch]),
206209
]
207210
)
208211
return self.view

0 commit comments

Comments
 (0)