We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 960d64f commit 94238c5Copy full SHA for 94238c5
1 file changed
app/ui/styles.py
@@ -1,5 +1,6 @@
1
"""CSS styling for the application"""
2
3
+import os
4
import gi
5
gi.require_version("Gtk", "4.0")
6
from gi.repository import Gtk, Gdk
@@ -97,7 +98,13 @@ class StyleManager:
97
98
def apply_styles(cls):
99
"""Apply CSS styles to the application"""
100
css_provider = Gtk.CssProvider()
- css_provider.load_from_data(cls.CSS_STYLES)
101
+
102
+ home_path = os.path.expanduser("~")
103
104
+ if os.path.exists(f"{home_path}/.config/nmgui/style.css"):
105
+ css_provider.load_from_path(f"{home_path}/.config/nmgui/style.css")
106
+ else:
107
+ css_provider.load_from_data(cls.CSS_STYLES)
108
109
display = Gdk.Display.get_default()
110
Gtk.StyleContext.add_provider_for_display(
0 commit comments