diff --git a/home/programs/anyrun/style.css b/home/programs/anyrun/style.css index 17a8dd5..5e36748 100644 --- a/home/programs/anyrun/style.css +++ b/home/programs/anyrun/style.css @@ -1,48 +1,76 @@ -* { - all: unset; - font-size: 1.2rem; -} +@define-color accent #5599d2; +@define-color bg-color #161616; +@define-color fg-color #eeeeee; +@define-color desc-color #cccccc; -#window, -#match, -#entry, -#plugin, -#main { +window { background: transparent; } -#match.activatable { - border-radius: 8px; - margin: 4px 0; - padding: 4px; - /* transition: 100ms ease-out; */ -} -#match.activatable:first-child { - margin-top: 12px; -} -#match.activatable:last-child { - margin-bottom: 0; +box.main { + padding: 5px; + margin: 10px; + border-radius: 10px; + border: 2px solid @accent; + background-color: @bg-color; + box-shadow: 0 0 5px black; } -#match:hover { - background: rgba(255, 255, 255, 0.05); -} -#match:selected { - background: rgba(255, 255, 255, 0.1); + +text { + min-height: 30px; + padding: 5px; + border-radius: 5px; + color: @fg-color; } -#entry { - background: rgba(255, 255, 255, 0.05); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 8px; - padding: 4px 8px; +.matches { + background-color: rgba(0, 0, 0, 0); + border-radius: 10px; } -box#main { - background: rgba(0, 0, 0, 0.5); - box-shadow: - inset 0 0 0 1px rgba(255, 255, 255, 0.1), - 0 30px 30px 15px rgba(0, 0, 0, 0.5); - border-radius: 20px; - padding: 12px; +box.plugin:first-child { + margin-top: 5px; +} + +box.plugin.info { + min-width: 200px; +} + +list.plugin { + background-color: rgba(0, 0, 0, 0); +} + +label.match { + color: @fg-color; +} + +label.match.description { + font-size: 10px; + color: @desc-color; +} + +label.plugin.info { + font-size: 14px; + color: @fg-color; +} + +.match { + background: transparent; +} + +.match:selected { + border-left: 4px solid @accent; + background: transparent; + animation: fade 0.1s linear; +} + +@keyframes fade { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } } diff --git a/home/programs/hyprland/windowrules.nix b/home/programs/hyprland/windowrules.nix index d91fe81..0506d46 100644 --- a/home/programs/hyprland/windowrules.nix +++ b/home/programs/hyprland/windowrules.nix @@ -33,6 +33,7 @@ in "workspace 5, class:^(Element)$" "float, class:^(xdg-desktop-portal-termfilechooser)$" + "float, class:^(anyrun)$" "size 70% 80%, class:^(xdg-desktop-portal-termfilechooser)$" "move 15% 10%, class:^(xdg-desktop-portal-termfilechooser)$" ];