Added app-wide color warning when requests from everywhere are allowed

This commit is contained in:
Mark Qvist 2023-11-01 11:51:47 +01:00
parent 85f295c0c6
commit acb67dc9a2
2 changed files with 12 additions and 1 deletions

View file

@ -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: