mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-22 06:29:14 -04:00
Added app-wide color warning when requests from everywhere are allowed
This commit is contained in:
parent
85f295c0c6
commit
acb67dc9a2
2 changed files with 12 additions and 1 deletions
|
@ -333,9 +333,13 @@ class SidebandApp(MDApp):
|
|||
def set_ui_theme(self):
|
||||
self.theme_cls.material_style = "M3"
|
||||
self.theme_cls.widget_style = "android"
|
||||
self.theme_cls.primary_palette = "BlueGray"
|
||||
self.theme_cls.accent_palette = "Orange"
|
||||
|
||||
if self.sideband.config["telemetry_allow_requests_from_anyone"]:
|
||||
self.theme_cls.primary_palette = "DeepOrange"
|
||||
else:
|
||||
self.theme_cls.primary_palette = "BlueGray"
|
||||
|
||||
if self.sideband.config["dark_ui"]:
|
||||
self.theme_cls.theme_style = "Dark"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue