Skip to content

Commit

Permalink
Improve scaling by using responsive rows for toggle switches and mutl…
Browse files Browse the repository at this point in the history
…iline checkboxes
  • Loading branch information
tsterbak committed Jan 14, 2024
1 parent 0290d4c commit 2bb71a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openandroidinstaller/views/requirements_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def build(self):
required_android_version = self.state.config.requirements.get("android")
if required_android_version:
android_checkbox = Checkbox(
label="The required android version is installed. (Or I know the risk of continuing)",
label="The required android version is installed.\n(Or I know the risk of continuing)",
on_change=self.enable_continue_button,
)
android_version_check = Card(
Expand Down
5 changes: 4 additions & 1 deletion openandroidinstaller/views/start_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
OutlinedButton,
FilledButton,
Row,
ResponsiveRow,
TextButton,
colors,
icons,
Expand Down Expand Up @@ -106,6 +107,7 @@ def check_bootloader_unlocked(e):
disabled=True,
inactive_thumb_color=colors.YELLOW,
active_color=colors.GREEN,
col={"xl": 6},
)

# toggleswitch to allow skipping flashing recovery
Expand All @@ -119,6 +121,7 @@ def check_recovery_already_flashed(e):
disabled=True,
inactive_thumb_color=colors.YELLOW,
active_color=colors.GREEN,
col={"xl": 6},
)

# inform the user about the device detection
Expand Down Expand Up @@ -202,7 +205,7 @@ def build(self):
alignment="center",
),
Divider(),
Row([self.bootloader_switch, self.recovery_switch]),
ResponsiveRow([self.bootloader_switch, self.recovery_switch]),
]
)
return self.view
Expand Down

0 comments on commit 2bb71a6

Please sign in to comment.