From 431dd98967a35f5ba13e1af34d3b6bd22e77487e Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Mon, 1 Jun 2026 21:09:54 +0100 Subject: [PATCH] feat(theme): implement declarative Stylix-driven theming for Walker --- themes/engine/files.nix | 51 ++++++++++++++----- .../palettes/summer-day/apps/walker/style.css | 34 ------------- .../summer-night/apps/walker/style.css | 34 ------------- 3 files changed, 37 insertions(+), 82 deletions(-) delete mode 100644 themes/palettes/summer-day/apps/walker/style.css delete mode 100644 themes/palettes/summer-night/apps/walker/style.css diff --git a/themes/engine/files.nix b/themes/engine/files.nix index 9adfa95..42ecddb 100644 --- a/themes/engine/files.nix +++ b/themes/engine/files.nix @@ -106,21 +106,44 @@ in source = themeAppsPath + "/rofi.rasi"; }; - # Walker fallback support - xdg.configFile."nomarchy/current/theme/apps/walker/style.css" = lib.mkIf (!builtins.pathExists (themeAppsPath + "/walker/style.css")) { - text = '' - * { - color: #${palette.base05}; - } - #window { + # Dynamically generated CSS for Walker app launcher + xdg.configFile."nomarchy/current/theme/apps/walker/style.css".text = '' + #window { background-color: #${palette.base00}; - } - .item.active { - background-color: #${palette.base03}; - color: #${palette.base0B}; - } - ''; - }; + color: #${palette.base05}; + border-bottom: 5px solid #${palette.base0D}; /* Accent */ + border-radius: 15px; + } + + #search { + background-color: #${palette.base01}; + color: #${palette.base05}; + border-bottom: 5px solid #${palette.base02}; + border-radius: 10px; + margin: 15px; + padding: 10px; + } + + #input { + color: #${palette.base05}; + } + + #list { + padding: 20px; + } + + .item { + border-radius: 10px; + padding: 10px; + color: #${palette.base05}; + } + + .item.active { + background-color: #${palette.base02}; + color: #${palette.base05}; + border-bottom: 5px solid #${palette.base0D}; /* Accent */ + } + ''; xdg.configFile."nomarchy/current/theme.name".text = config.nomarchy.theme; diff --git a/themes/palettes/summer-day/apps/walker/style.css b/themes/palettes/summer-day/apps/walker/style.css deleted file mode 100644 index c7e95e6..0000000 --- a/themes/palettes/summer-day/apps/walker/style.css +++ /dev/null @@ -1,34 +0,0 @@ -#window { - background-color: #fdf6e3; - color: #5c6a72; - border-bottom: 5px solid #dfa000; - border-radius: 15px; -} - -#search { - background-color: #8da101; - color: #fdf6e3; - border-bottom: 5px solid #bdc3af; - border-radius: 10px; - margin: 15px; - padding: 10px; -} - -#input { - color: #5c6a72; -} - -#list { - padding: 20px; -} - -.item { - border-radius: 10px; - padding: 10px; -} - -.item.active { - background-color: #e6e2cc; - color: #5c6a72; - border-bottom: 5px solid #bdc3af; -} diff --git a/themes/palettes/summer-night/apps/walker/style.css b/themes/palettes/summer-night/apps/walker/style.css deleted file mode 100644 index 4b5fff3..0000000 --- a/themes/palettes/summer-night/apps/walker/style.css +++ /dev/null @@ -1,34 +0,0 @@ -#window { - background-color: #2d353b; - color: #d3c6aa; - border-bottom: 5px solid #d9bb80; - border-radius: 15px; -} - -#search { - background-color: #a7c080; - color: #2d353b; - border-bottom: 5px solid #868d80; - border-radius: 10px; - margin: 15px; - padding: 10px; -} - -#input { - color: #2d353b; -} - -#list { - padding: 20px; -} - -.item { - border-radius: 10px; - padding: 10px; -} - -.item.active { - background-color: #3d484d; - color: #d3c6aa; - border-bottom: 5px solid #161a1d; -}