new workspace styling
This commit is contained in:
@@ -70,7 +70,7 @@ def generate_stylix_css():
|
|||||||
#battery-widget {{
|
#battery-widget {{
|
||||||
background-color: #{colors["base01"]};
|
background-color: #{colors["base01"]};
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
border-radius: 4px;
|
border-radius: 12px;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
#bat-icon {{
|
#bat-icon {{
|
||||||
@@ -109,6 +109,7 @@ def generate_stylix_css():
|
|||||||
#widgets-container {{
|
#widgets-container {{
|
||||||
background-color: #{colors["base01"]};
|
background-color: #{colors["base01"]};
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
|
border-radius: 16px;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/* NixOS label */
|
/* NixOS label */
|
||||||
@@ -121,7 +122,7 @@ def generate_stylix_css():
|
|||||||
color: #{colors["base05"]};
|
color: #{colors["base05"]};
|
||||||
background-color: #{colors["base01"]};
|
background-color: #{colors["base01"]};
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
border-radius: 4px;
|
border-radius: 12px;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
@@ -130,6 +131,7 @@ tooltip {{
|
|||||||
border-color: #{colors["base02"]};
|
border-color: #{colors["base02"]};
|
||||||
background-color: #{colors["base00"]};
|
background-color: #{colors["base00"]};
|
||||||
color: #{colors["base05"]};
|
color: #{colors["base05"]};
|
||||||
|
border-radius: 16px;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
tooltip>* {{
|
tooltip>* {{
|
||||||
@@ -139,15 +141,23 @@ tooltip>* {{
|
|||||||
/* Workspaces */
|
/* Workspaces */
|
||||||
#workspaces {{
|
#workspaces {{
|
||||||
background-color: #{colors["base01"]};
|
background-color: #{colors["base01"]};
|
||||||
|
padding: 6px 6px;
|
||||||
|
border-radius: 16px;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
#workspaces>button {{
|
#workspaces>button {{
|
||||||
background-color: #{colors["base05"]};
|
background-color: #{colors["base05"]};
|
||||||
border-radius: 100px;
|
border-radius: 100px;
|
||||||
padding: 0px 8px;
|
padding: 0px 4px;
|
||||||
transition: padding 0.05s steps(8);
|
transition: padding 0.05s steps(8);
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
#workspaces>button.active {{
|
||||||
|
background-color: #{colors["base0D"]};
|
||||||
|
padding: 0px 12px;
|
||||||
|
border-radius: 100px;
|
||||||
|
}}
|
||||||
|
|
||||||
#workspaces>button>label {{
|
#workspaces>button>label {{
|
||||||
font-size: 0px;
|
font-size: 0px;
|
||||||
}}
|
}}
|
||||||
@@ -156,20 +166,15 @@ tooltip>* {{
|
|||||||
background-color: #{colors["base03"]};
|
background-color: #{colors["base03"]};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
#workspaces>button.active {{
|
|
||||||
background-color: #{colors["base0D"]};
|
|
||||||
padding: 0px 32px;
|
|
||||||
}}
|
|
||||||
|
|
||||||
#workspaces>button.urgent {{
|
#workspaces>button.urgent {{
|
||||||
background-color: #{colors["base08"]};
|
background-color: #{colors["base08"]};
|
||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Write to temporary file
|
# Write to temporary file
|
||||||
temp_fd, temp_path = tempfile.mkstemp(suffix='.css', prefix='stylix_')
|
temp_fd, temp_path = tempfile.mkstemp(suffix=".css", prefix="stylix_")
|
||||||
try:
|
try:
|
||||||
with os.fdopen(temp_fd, 'w') as f:
|
with os.fdopen(temp_fd, "w") as f:
|
||||||
f.write(css_content)
|
f.write(css_content)
|
||||||
return temp_path
|
return temp_path
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class SystemStatsService(Service):
|
|||||||
"""Stop monitoring system stats"""
|
"""Stop monitoring system stats"""
|
||||||
if self._timer_id is not None:
|
if self._timer_id is not None:
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
|
|
||||||
GLib.source_remove(self._timer_id)
|
GLib.source_remove(self._timer_id)
|
||||||
self._timer_id = None
|
self._timer_id = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user