add conversion functions to catppuccin module

This commit is contained in:
KoenDR06 2025-12-24 17:57:24 +01:00
parent 7f5c5b718f
commit 82a11ef821
10 changed files with 663 additions and 391 deletions

View file

@ -3,7 +3,7 @@
config,
...
}: let
inherit (lib) mkIf mkEnableOption;
inherit (lib) mkIf mkEnableOption catppuccin;
cfg = config.horseman.dots.wofi;
username = config.horseman.username;
colors = config.horseman.catppuccin.colors;
@ -26,9 +26,9 @@ in {
window {
margin: 0px;
padding: 10px;
border: 3px solid ${colors.${accent}};
border: 3px solid ${catppuccin.toHex colors.${accent}};
border-radius: 10px;
background-color: ${builtins.replaceStrings ["rgb" ")"] ["rgba" ", 0.99)"] colors.base-rgb};
background-color: ${catppuccin.toRGBA colors.base 0.99};
/* animation: slideIn 0.5s ease-in-out both; */
}
@ -48,7 +48,7 @@ in {
margin: 5px;
padding: 10px;
border: none;
background-color: ${colors.base};
background-color: ${catppuccin.toHex colors.base};
/* animation: fadeIn 0.5s ease-in-out both; */
}
@ -68,7 +68,7 @@ in {
margin: 5px;
padding: 10px;
border: none;
background-color: ${colors.base};
background-color: ${catppuccin.toHex colors.base};
}
/* Scroll */
@ -76,63 +76,63 @@ in {
margin: 0px;
padding: 10px;
border: none;
background-color: ${colors.base};
background-color: ${catppuccin.toHex colors.base};
}
/* Input */
#input {
margin: 5px 20px;
padding: 10px;
border: 2px solid ${colors.${accent}};
border: 2px solid ${catppuccin.toHex colors.${accent}};
border-radius: 10px;
color: ${colors.text};
background-color: ${colors.base};
color: ${catppuccin.toHex colors.text};
background-color: ${catppuccin.toHex colors.base};
/* animation: fadeIn 0.5s ease-in-out both; */
}
#input image {
border: none;
color: ${colors.red};
color: ${catppuccin.toHex colors.red};
}
#input * {
outline: 4px solid ${colors.red}!important;
outline: 4px solid ${catppuccin.toHex colors.red}!important;
}
/* Text */
#text {
margin: 5px;
border: none;
color: ${colors.text};
color: ${catppuccin.toHex colors.text};
/* animation: fadeIn 0.5s ease-in-out both; */
}
#entry {
background-color: ${colors.base};
background-color: ${catppuccin.toHex colors.base};
}
#entry arrow {
border: none;
color: ${colors.${accent}};
color: ${catppuccin.toHex colors.${accent}};
}
/* Selected Entry */
#entry:selected arrow {
overflow: hidden;
color: ${colors.mauve};
color: ${catppuccin.toHex colors.mauve};
}
#entry:selected {
border: 1px solid ${colors.${accent}};
border: 1px solid ${catppuccin.toHex colors.${accent}};
border-radius: 10px;
}
#entry:selected #text {
color: ${colors.mauve};
color: ${catppuccin.toHex colors.mauve};
}
#entry:drop(active) {
background-color: ${colors.${accent}}!important;
background-color: ${catppuccin.toHex colors.${accent}}!important;
}
'';
};