Fixed Styling
This commit is contained in:
1 parent
66464df825
commit
44987758a8
6 files changed
+63
-45
No files matched your search
@@ -164,7 +164,7 @@ class BatteryControl(Box):
|
|||||||
name="control-center-widgets",
|
name="control-center-widgets",
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
self.set_size_request(374, -1)
|
self.set_size_request(354, -1)
|
||||||
|
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.battery_service = Battery()
|
self.battery_service = Battery()
|
||||||
|
|||||||
@@ -442,30 +442,30 @@ class ModusControlCenter(Window):
|
|||||||
self.bluetooth_widgets = Box(
|
self.bluetooth_widgets = Box(
|
||||||
orientation="vertical",
|
orientation="vertical",
|
||||||
h_expand=True,
|
h_expand=True,
|
||||||
name="control-center-widgets",
|
v_expand=True,
|
||||||
children=[
|
|
||||||
Box(
|
|
||||||
orientation="horizontal",
|
|
||||||
name="top-widget",
|
|
||||||
h_expand=True,
|
|
||||||
children=[
|
|
||||||
Box(
|
|
||||||
orientation="vertical",
|
|
||||||
name="wb-widget",
|
|
||||||
style_classes="menu",
|
|
||||||
spacing=5,
|
|
||||||
children=[
|
children=[
|
||||||
self.bluetooth_man,
|
self.bluetooth_man,
|
||||||
],
|
# Box(
|
||||||
),
|
# orientation="horizontal",
|
||||||
],
|
# name="top-widget",
|
||||||
),
|
# h_expand=True,
|
||||||
|
# children=[
|
||||||
|
# Box(
|
||||||
|
# orientation="vertical",
|
||||||
|
# name="wb-widget",
|
||||||
|
# style_classes="menu",
|
||||||
|
# spacing=5,
|
||||||
|
# children=[
|
||||||
|
# ],
|
||||||
|
# ),
|
||||||
|
# ],
|
||||||
|
# ),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
self.bluetooth_center_box = CenterBox(
|
self.bluetooth_center_box = Box(
|
||||||
start_children=[self.bluetooth_widgets]
|
h_expand=True, v_expand=True, children=[self.bluetooth_widgets]
|
||||||
)
|
)
|
||||||
self.bluetooth_center_box.set_size_request(300, -1)
|
self.bluetooth_center_box.set_size_request(350, -1)
|
||||||
|
|
||||||
def _ensure_wifi_widgets(self):
|
def _ensure_wifi_widgets(self):
|
||||||
"""Lazy load wifi widgets"""
|
"""Lazy load wifi widgets"""
|
||||||
@@ -473,13 +473,15 @@ class ModusControlCenter(Window):
|
|||||||
self.wifi_widgets = Box(
|
self.wifi_widgets = Box(
|
||||||
orientation="vertical",
|
orientation="vertical",
|
||||||
h_expand=True,
|
h_expand=True,
|
||||||
name="control-center-widgets",
|
v_expand=True,
|
||||||
children=[
|
children=[
|
||||||
self.wifi_man,
|
self.wifi_man,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
self.wifi_center_box = CenterBox(start_children=[self.wifi_widgets])
|
self.wifi_center_box = Box(
|
||||||
self.wifi_center_box.set_size_request(300, -1)
|
h_expand=True, v_expand=True, children=[self.wifi_widgets]
|
||||||
|
)
|
||||||
|
self.wifi_center_box.set_size_request(350, -1)
|
||||||
|
|
||||||
def _ensure_per_app_volume_widgets(self):
|
def _ensure_per_app_volume_widgets(self):
|
||||||
"""Lazy load per-app volume widgets"""
|
"""Lazy load per-app volume widgets"""
|
||||||
|
|||||||
@@ -241,7 +241,6 @@ class WifiConnections(Box):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
spacing=8,
|
spacing=8,
|
||||||
orientation="vertical",
|
orientation="vertical",
|
||||||
style="margin: 8px",
|
|
||||||
name="wifi-connections",
|
name="wifi-connections",
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
@@ -326,7 +325,6 @@ class WifiConnections(Box):
|
|||||||
child_revealed=False,
|
child_revealed=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.other_networks_revealer.child_revealed = False
|
|
||||||
# Create More Settings button (same style as Other Networks button)
|
# Create More Settings button (same style as Other Networks button)
|
||||||
self.more_settings_button = Button(
|
self.more_settings_button = Button(
|
||||||
child=Label("More Settings", h_align="start"),
|
child=Label("More Settings", h_align="start"),
|
||||||
|
|||||||
@@ -187,7 +187,6 @@ class NetworkIndicator(Box):
|
|||||||
layer="overlay",
|
layer="overlay",
|
||||||
title="modus",
|
title="modus",
|
||||||
anchor="top right",
|
anchor="top right",
|
||||||
margin="2px 10px 0px 0px",
|
|
||||||
exclusivity="auto",
|
exclusivity="auto",
|
||||||
keyboard_mode="on-demand",
|
keyboard_mode="on-demand",
|
||||||
name="wifi-control-window",
|
name="wifi-control-window",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#battery-widget {
|
#battery-widget {
|
||||||
padding-left: 12px;
|
background: rgba(0, 0, 0, 0);
|
||||||
padding-right: 12px;
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
.battery-main-title {
|
.battery-main-title {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
+35
-17
@@ -1,32 +1,38 @@
|
|||||||
#control-center-menu {
|
#control-center-menu {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-radius: 15px;
|
border-radius: 12px;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#separator {
|
#separator {
|
||||||
min-height: 2px;
|
min-height: 0.09rem;
|
||||||
margin: 2px 0;
|
margin: 3px 0;
|
||||||
background-color: var(--outline);
|
background-color: alpha(#fff, 0.2);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bluetooth-control-window,
|
/* #bluetooth-control-window { */
|
||||||
#wifi-control-window,
|
/* #wifi-control-window, */
|
||||||
#battery-control-window {
|
#battery-control-window {
|
||||||
margin: 6px;
|
margin: 6px;
|
||||||
background-color: alpha(#fff, 0.09);
|
/* background-color: alpha(#fff, 0.09); */
|
||||||
border: 1px solid alpha(#111, 0.3);
|
border: 1px solid alpha(#111, 0.3);
|
||||||
box-shadow: inset 0 0 200px 0 alpha(#111, 0.3);
|
box-shadow: inset 0 0 200px 0 alpha(#111, 0.3);
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#bluetooth-title,
|
||||||
|
#wifi-title {
|
||||||
|
font-family: "SF Pro Rounded";
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
#control-center-widgets {
|
#control-center-widgets {
|
||||||
background-color: alpha(#fff, 0.09);
|
background-color: alpha(#fff, 0.05);
|
||||||
box-shadow: inset 0 0 0 1px alpha(#aaa, 0.4);
|
box-shadow: inset 0 0 0 1px alpha(#aaa, 0.4);
|
||||||
border: 1px solid alpha(#111, 0.4);
|
border: 1px solid alpha(#111, 0.4);
|
||||||
border-radius: 1.25rem;
|
border-radius: 8px;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -835,9 +841,14 @@
|
|||||||
/* macOS-style WiFi interface */
|
/* macOS-style WiFi interface */
|
||||||
#wifi-connections,
|
#wifi-connections,
|
||||||
#bluetooth-connections {
|
#bluetooth-connections {
|
||||||
background-color: rgba(255, 255, 255, 0.08);
|
/* background-color: rgba(255, 255, 255, 0.08); */
|
||||||
border-radius: 12px;
|
background-color: alpha(#fff, 0.05);
|
||||||
padding: 12px;
|
box-shadow: inset 0 0 0 1px alpha(#aaa, 0.4);
|
||||||
|
border: 1px solid alpha(#111, 0.4);
|
||||||
|
border-radius: 8px;
|
||||||
|
/* padding: 0.5rem; */
|
||||||
|
/* border-radius: 12px; */
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WiFi network slots - macOS style */
|
/* WiFi network slots - macOS style */
|
||||||
@@ -877,7 +888,9 @@
|
|||||||
#wifi-other-button {
|
#wifi-other-button {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 8px 12px;
|
padding: 8px 6px;
|
||||||
|
margin-bottom: -12px;
|
||||||
|
margin-top: -6px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
/* transition: background-color 0.2s ease; */
|
/* transition: background-color 0.2s ease; */
|
||||||
}
|
}
|
||||||
@@ -885,10 +898,8 @@
|
|||||||
#wifi-other-button:hover {
|
#wifi-other-button:hover {
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
#wifi-other-button:last-child {
|
||||||
#wifi-other-button label {
|
margin-bottom: 3px;
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#device-button {
|
#device-button {
|
||||||
@@ -902,3 +913,10 @@
|
|||||||
.button-hovered {
|
.button-hovered {
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#wifi-other-device label,
|
||||||
|
#wifi-other-button label {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: "SF Pro Rounded";
|
||||||
|
}
|
||||||
Reference in new issue
Block a user