feat: catppuccin accent color
This commit is contained in:
parent
18b90d81c6
commit
c4648c4a2c
5 changed files with 56 additions and 16 deletions
|
|
@ -92,8 +92,8 @@ in {
|
||||||
color12 ${colors.blue}
|
color12 ${colors.blue}
|
||||||
|
|
||||||
# magenta
|
# magenta
|
||||||
color5 ${colors.pink}
|
color5 ${colors.mauve}
|
||||||
color13 ${colors.pink}
|
color13 ${colors.mauve}
|
||||||
|
|
||||||
# cyan
|
# cyan
|
||||||
color6 ${colors.teal}
|
color6 ${colors.teal}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
cfg = config.horseman.dots.waybar;
|
cfg = config.horseman.dots.waybar;
|
||||||
username = config.horseman.username;
|
username = config.horseman.username;
|
||||||
colors = config.horseman.catppuccin.colors;
|
colors = config.horseman.catppuccin.colors;
|
||||||
|
accent = config.horseman.catppuccin.accent;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
horseman.dots.waybar = {
|
horseman.dots.waybar = {
|
||||||
|
|
@ -25,7 +26,7 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
.modules-left, .modules-center, .modules-right {
|
.modules-left, .modules-center, .modules-right {
|
||||||
border: 2px solid ${colors.lavender};
|
border: 2px solid ${colors.${accent}};
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
background: ${colors.base};
|
background: ${colors.base};
|
||||||
|
|
@ -39,7 +40,7 @@ in {
|
||||||
color: ${colors.red};
|
color: ${colors.red};
|
||||||
}
|
}
|
||||||
#power * {
|
#power * {
|
||||||
color: ${colors.lavender};
|
color: ${colors.${accent}};
|
||||||
transition: 0.2s color ease;
|
transition: 0.2s color ease;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
}
|
}
|
||||||
|
|
@ -50,15 +51,19 @@ in {
|
||||||
#workspaces .empty {
|
#workspaces .empty {
|
||||||
color: ${colors.surface0};
|
color: ${colors.surface0};
|
||||||
}
|
}
|
||||||
#workspaces * {
|
|
||||||
color: inherit;
|
|
||||||
padding: 0px 2px;
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
#workspaces .active {
|
#workspaces .active {
|
||||||
color: ${colors.red};
|
color: ${colors.red};
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
#workspaces * {
|
||||||
|
padding: 0px 2px;
|
||||||
|
margin: 0px;
|
||||||
|
border: 0px solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces > * {
|
||||||
|
color: ${colors.${accent}};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
cfg = config.horseman.dots.wofi;
|
cfg = config.horseman.dots.wofi;
|
||||||
username = config.horseman.username;
|
username = config.horseman.username;
|
||||||
colors = config.horseman.catppuccin.colors;
|
colors = config.horseman.catppuccin.colors;
|
||||||
|
accent = config.horseman.catppuccin.accent;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
horseman.dots.wofi = {
|
horseman.dots.wofi = {
|
||||||
|
|
@ -25,7 +26,7 @@ in {
|
||||||
window {
|
window {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border: 3px solid ${colors.lavender};
|
border: 3px solid ${colors.${accent}};
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: ${builtins.replaceStrings ["rgb" ")"] ["rgba" ", 0.99)"] colors.base-rgb};
|
background-color: ${builtins.replaceStrings ["rgb" ")"] ["rgba" ", 0.99)"] colors.base-rgb};
|
||||||
/* animation: slideIn 0.5s ease-in-out both; */
|
/* animation: slideIn 0.5s ease-in-out both; */
|
||||||
|
|
@ -82,7 +83,7 @@ in {
|
||||||
#input {
|
#input {
|
||||||
margin: 5px 20px;
|
margin: 5px 20px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border: 2px solid ${colors.lavender};
|
border: 2px solid ${colors.${accent}};
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
color: ${colors.text};
|
color: ${colors.text};
|
||||||
background-color: ${colors.base};
|
background-color: ${colors.base};
|
||||||
|
|
@ -112,7 +113,7 @@ in {
|
||||||
|
|
||||||
#entry arrow {
|
#entry arrow {
|
||||||
border: none;
|
border: none;
|
||||||
color: ${colors.lavender};
|
color: ${colors.${accent}};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Selected Entry */
|
/* Selected Entry */
|
||||||
|
|
@ -122,7 +123,7 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
#entry:selected {
|
#entry:selected {
|
||||||
border: 1px solid ${colors.lavender};
|
border: 1px solid ${colors.${accent}};
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -131,7 +132,7 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
#entry:drop(active) {
|
#entry:drop(active) {
|
||||||
background-color: ${colors.lavender}!important;
|
background-color: ${colors.${accent}}!important;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -337,6 +337,39 @@ in {
|
||||||
default = "mocha";
|
default = "mocha";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
accent = mkOption {
|
||||||
|
type = types.enum [
|
||||||
|
"rosewater"
|
||||||
|
"flamingo"
|
||||||
|
"pink"
|
||||||
|
"mauve"
|
||||||
|
"red"
|
||||||
|
"maroon"
|
||||||
|
"peach"
|
||||||
|
"yellow"
|
||||||
|
"green"
|
||||||
|
"teal"
|
||||||
|
"sky"
|
||||||
|
"sapphire"
|
||||||
|
"blue"
|
||||||
|
"lavender"
|
||||||
|
"text"
|
||||||
|
"subtext1"
|
||||||
|
"subtext0"
|
||||||
|
"overlay2"
|
||||||
|
"overlay1"
|
||||||
|
"overlay0"
|
||||||
|
"surface2"
|
||||||
|
"surface1"
|
||||||
|
"surface0"
|
||||||
|
"base"
|
||||||
|
"mantle"
|
||||||
|
"crust"
|
||||||
|
];
|
||||||
|
|
||||||
|
default = "lavender";
|
||||||
|
};
|
||||||
|
|
||||||
colors = mkOption {
|
colors = mkOption {
|
||||||
type = types.attrsOf types.anything;
|
type = types.attrsOf types.anything;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
cfg = config.horseman.wm.hyprland;
|
cfg = config.horseman.wm.hyprland;
|
||||||
colors = config.horseman.catppuccin.colors;
|
colors = config.horseman.catppuccin.colors;
|
||||||
|
accent = config.horseman.catppuccin.accent;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./options.nix
|
./options.nix
|
||||||
|
|
@ -82,8 +83,8 @@ in {
|
||||||
resizeOnBorder = true;
|
resizeOnBorder = true;
|
||||||
allowTearing = false;
|
allowTearing = false;
|
||||||
|
|
||||||
col.activeBorder = replaceStrings [" "] [""] colors.lavender-rgb;
|
col.activeBorder = replaceStrings [" "] [""] colors."${accent}-rgb";
|
||||||
col.inactiveBorder = replaceStrings [" " ")" "rgb"] ["" ",0.25)" "rgba"] colors.lavender-rgb; # Make transparent
|
col.inactiveBorder = replaceStrings [" " ")" "rgb"] ["" ",0.25)" "rgba"] colors."${accent}-rgb"; # Make transparent
|
||||||
|
|
||||||
layout = "dwindle";
|
layout = "dwindle";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue