Modulations and locations lists are now detected at startup.

Also improve styles of some widgets.
Also fix a bug in forecast screen.
This commit is contained in:
alessandro90
2019-05-16 21:34:53 +02:00
parent 825386a8f1
commit 9ebf60779b
6 changed files with 3083 additions and 2376 deletions

View File

@@ -74,10 +74,9 @@ class MultiColorSwitchableLabel(_BaseSwitchableLabel):
def switch_on(self):
if 5 <= self.level <= 9:
super().switch_on()
self.setStyleSheet(f"color: {self.LEVEL_COLORS[self.level]}"
# f"""background-color: {self.LEVEL_COLORS[self.level]};
# color: #000000;
# """
self.setStyleSheet(
f"""color: {self.LEVEL_COLORS[self.level]};
text-decoration: underline;"""
)
def switch_off(self):