Fix Wifi Style Updation tweaked control panel looks
This commit is contained in:
1 parent
d91c61d806
commit
59e5db5cae
3 files changed
+29
-18
No files matched your search
@@ -274,16 +274,17 @@ class ModusControlCenter(Window):
|
|||||||
self.flight_widget = Button(
|
self.flight_widget = Button(
|
||||||
name="flight-widget",
|
name="flight-widget",
|
||||||
child=Box(
|
child=Box(
|
||||||
orientation="vertical",
|
orientation="h",
|
||||||
spacing=4,
|
spacing=4,
|
||||||
h_align="center",
|
h_align="start",
|
||||||
v_align="center",
|
v_align="center",
|
||||||
|
h_expand=True,
|
||||||
children=[
|
children=[
|
||||||
self.flight_icon,
|
self.flight_icon,
|
||||||
Label(
|
Label(
|
||||||
label="Flight",
|
label="Flight",
|
||||||
style_classes="title",
|
style_classes="title",
|
||||||
h_align="center",
|
h_align="start",
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -303,7 +304,7 @@ class ModusControlCenter(Window):
|
|||||||
self.caffeine_widget = Button(
|
self.caffeine_widget = Button(
|
||||||
name="caffeine-widget",
|
name="caffeine-widget",
|
||||||
child=Box(
|
child=Box(
|
||||||
orientation="vertical",
|
orientation="h",
|
||||||
spacing=4,
|
spacing=4,
|
||||||
h_align="center",
|
h_align="center",
|
||||||
v_align="center",
|
v_align="center",
|
||||||
@@ -366,18 +367,19 @@ class ModusControlCenter(Window):
|
|||||||
orientation="vertical",
|
orientation="vertical",
|
||||||
name="flight-widget-container",
|
name="flight-widget-container",
|
||||||
style_classes="menu",
|
style_classes="menu",
|
||||||
|
h_expand=True,
|
||||||
children=[
|
children=[
|
||||||
self.flight_widget,
|
self.flight_widget,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Box(
|
# Box(
|
||||||
orientation="vertical",
|
# orientation="vertical",
|
||||||
name="caffeine-widget-container",
|
# name="caffeine-widget-container",
|
||||||
style_classes="menu",
|
# style_classes="menu",
|
||||||
children=[
|
# children=[
|
||||||
self.caffeine_widget,
|
# self.caffeine_widget,
|
||||||
],
|
# ],
|
||||||
),
|
# ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -51,10 +51,10 @@ class WifiNetworkSlot(Box):
|
|||||||
children=[self.dimage],
|
children=[self.dimage],
|
||||||
style_classes=["wifi-icon-box"],
|
style_classes=["wifi-icon-box"],
|
||||||
)
|
)
|
||||||
if self.is_connected:
|
# if self.is_connected:
|
||||||
self.wifi_icon_box.remove_style_class("wifi-icon-box")
|
# self.wifi_icon_box.remove_style_class("wifi-icon-box")
|
||||||
self.wifi_icon_box.add_style_class("wifi-icon-box-connected")
|
# self.wifi_icon_box.add_style_class("wifi-icon-box-connected")
|
||||||
|
#
|
||||||
# Set initial style classes
|
# Set initial style classes
|
||||||
if self.is_connected:
|
if self.is_connected:
|
||||||
self.dimage.add_style_class("connected")
|
self.dimage.add_style_class("connected")
|
||||||
@@ -172,9 +172,9 @@ class WifiNetworkSlot(Box):
|
|||||||
]
|
]
|
||||||
# Update style classes for SVG widget
|
# Update style classes for SVG widget
|
||||||
if self.is_connected:
|
if self.is_connected:
|
||||||
self.dimage.add_style_class("connected")
|
self.wifi_icon_box.add_style_class("wifi-icon-box-connected")
|
||||||
else:
|
else:
|
||||||
self.dimage.remove_style_class("connected")
|
self.wifi_icon_box.remove_style_class("wifi-icon-box-connected")
|
||||||
return
|
return
|
||||||
|
|
||||||
def _show_password_dialog(self):
|
def _show_password_dialog(self):
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
.title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-family: "SF Pro Rounded";
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
#control-center-menu {
|
#control-center-menu {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
@@ -929,3 +934,7 @@
|
|||||||
padding: 2px;
|
padding: 2px;
|
||||||
/* margin-right: 8px; */
|
/* margin-right: 8px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#flight-icon {
|
||||||
|
margin-left: -10px;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user