From a539d02821a50b28000b33a585117bfdbcbc1066 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Wed, 17 Jun 2026 03:20:11 +0545 Subject: [PATCH] refactor(src): adjustpath references from shared/styles to styles Simplify style file paths by removing redundant "shared" prefix, aligning with updated directory layout. --- src/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.py b/src/main.py index 12c3545..eaff936 100644 --- a/src/main.py +++ b/src/main.py @@ -1,4 +1,5 @@ import os + from fabric import Application from fabric.utils import get_relative_path, logger, monitor_file @@ -24,7 +25,7 @@ for log in [ def main(): # Generate colors.css if it doesn't exist - colors_css_path = get_relative_path("shared/styles/colors.css") + colors_css_path = get_relative_path("styles/colors.css") if not os.path.exists(colors_css_path): from utils.utils import generate_colors_from_wallpaper @@ -44,7 +45,7 @@ def main(): osd = OSDWindow() # Monitor CSS files for changes - css_file = monitor_file(get_relative_path("shared/styles")) + css_file = monitor_file(get_relative_path("styles")) _ = css_file.connect("changed", lambda *_: set_css()) app = Application( @@ -61,7 +62,7 @@ def main(): def set_css(): app.set_stylesheet_from_file( - get_relative_path("shared/styles/main.css"), + get_relative_path("styles/main.css"), ) app.set_css = set_css