Update anyrun to use stylix colors

This commit is contained in:
Evie Litherland-Smith 2023-10-19 08:09:53 +01:00
parent 258c979e43
commit 24db02a5ba

View file

@ -3,7 +3,6 @@
home.packages = with pkgs; [ rink ]; home.packages = with pkgs; [ rink ];
programs.anyrun = { programs.anyrun = {
enable = true; enable = true;
config = { config = {
plugins = with anyrun.packages.${pkgs.system}; [ plugins = with anyrun.packages.${pkgs.system}; [
applications applications
@ -16,17 +15,16 @@
translate translate
websearch websearch
]; ];
width.fraction = 0.3; width.fraction = 0.3;
y.absolute = 15; y.absolute = 15;
hidePluginInfo = true; hidePluginInfo = true;
closeOnClick = true; closeOnClick = true;
}; };
extraCss = '' extraCss = with config.lib.stylix.colors.withHashtag; ''
* { * {
all: unset; all: unset;
font-family: "Fira Sans"; font-family: "${config.stylix.fonts.sansSerif.name}";
font-size: 1.3rem; font-size: 1.3rem;
} }
@ -52,12 +50,13 @@
} }
#match:selected, #match:hover, #plugin:hover { #match:selected, #match:hover, #plugin:hover {
background: rgba(202, 211, 245, .1); background: alpha(${base03}, .1);
border: 1px solid ${base0A};
} }
#entry { #entry {
background: rgba(183, 189, 248, .05); background: alpha(${base01}, .05);
border: 1px solid rgba(183, 189, 248, .1); border: 1px solid ${base03};
border-radius: 10px; border-radius: 10px;
margin: .3rem; margin: .3rem;
padding: .3rem 1rem; padding: .3rem 1rem;
@ -72,7 +71,7 @@
list > #plugin:hover { padding: .6rem; } list > #plugin:hover { padding: .6rem; }
box#main { box#main {
background: rgba(36, 39, 58, .5); background: alpha(${base00}, .5);
box-shadow: inset 0 0 0 1px rgba(183, 189, 248, .1), 0 0 0 1px rgba(36, 39, 58, .5); box-shadow: inset 0 0 0 1px rgba(183, 189, 248, .1), 0 0 0 1px rgba(36, 39, 58, .5);
border-radius: 10px; border-radius: 10px;
padding: .3rem; padding: .3rem;