From 067f89f94b4ef45e64b725bdfcc5a19618637b64 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 27 Sep 2024 20:58:05 -0500 Subject: [PATCH] graphical/launchers/anyrun: scss -> css compileSCSS causing cross system check errors --- .../graphical/launchers/anyrun/default.nix | 14 ++---- .../launchers/anyrun/styles/dark.css | 35 +++++++++++++++ .../launchers/anyrun/styles/dark.scss | 43 ------------------- 3 files changed, 38 insertions(+), 54 deletions(-) create mode 100644 modules/home/programs/graphical/launchers/anyrun/styles/dark.css delete mode 100644 modules/home/programs/graphical/launchers/anyrun/styles/dark.scss diff --git a/modules/home/programs/graphical/launchers/anyrun/default.nix b/modules/home/programs/graphical/launchers/anyrun/default.nix index 4bd51bdd1..54ed392ab 100644 --- a/modules/home/programs/graphical/launchers/anyrun/default.nix +++ b/modules/home/programs/graphical/launchers/anyrun/default.nix @@ -1,7 +1,6 @@ { config, inputs, - pkgs, lib, namespace, system, @@ -10,7 +9,7 @@ }: let inherit (lib) mkIf; - inherit (lib.${namespace}) compileSCSS mkBoolOpt; + inherit (lib.${namespace}) mkBoolOpt; inherit (inputs) anyrun anyrun-nixos-options; cfg = config.${namespace}.programs.graphical.launchers.anyrun; @@ -122,19 +121,12 @@ in "websearch.ron".text = '' Config( prefix: "?", - engines: [DuckDuckGo] + engines: [DuckDuckGo] ) ''; }; - # this compiles the SCSS file from the given path into CSS - # by default, `-t expanded` as the args to the sass compiler - extraCss = builtins.readFile ( - compileSCSS pkgs { - name = "style-dark"; - source = ./styles/dark.scss; - } - ); + extraCss = builtins.readFile ./styles/dark.scss; }; }; } diff --git a/modules/home/programs/graphical/launchers/anyrun/styles/dark.css b/modules/home/programs/graphical/launchers/anyrun/styles/dark.css new file mode 100644 index 000000000..6781283fc --- /dev/null +++ b/modules/home/programs/graphical/launchers/anyrun/styles/dark.css @@ -0,0 +1,35 @@ +* { + transition: 200ms ease; + font-family: Lexend; + font-size: 1.3rem; +} + +#window, +#match, +#entry, +#plugin, +#main { + background: transparent; +} + +#match:selected { + background: rgba(203, 166, 247, 0.7); + +} + +#match { + padding: 3px; + border-radius: 16px; +} + +#entry, +#plugin:hover { + border-radius: 16px; +} + +box#main { + background: rgba(30, 30, 46, 1); + border: 2px solid #494d64; + border-radius: 16px; + padding: 8px; +} diff --git a/modules/home/programs/graphical/launchers/anyrun/styles/dark.scss b/modules/home/programs/graphical/launchers/anyrun/styles/dark.scss deleted file mode 100644 index 40f2bd237..000000000 --- a/modules/home/programs/graphical/launchers/anyrun/styles/dark.scss +++ /dev/null @@ -1,43 +0,0 @@ -$fontSize: 1.3rem; -$fontFamily: Lexend; -$transparentColor: transparent; -$rgbaColor: rgba(203, 166, 247, 0.7); -$bgColor: rgba(30, 30, 46, 1); -$borderColor: #494d64; -$borderRadius: 16px; -$paddingValue: 8px; - -* { - transition: 200ms ease; - font-family: $fontFamily; - font-size: $fontSize; -} - -#window, -#match, -#entry, -#plugin, -#main { - background: $transparentColor; -} - -#match:selected { - background: $rgbaColor; -} - -#match { - padding: 3px; - border-radius: $borderRadius; -} - -#entry, -#plugin:hover { - border-radius: $borderRadius; -} - -box#main { - background: $bgColor; - border: 2px solid $borderColor; - border-radius: $borderRadius; - padding: $paddingValue; -}