11.stylix/modules/halloy/hm.nix
awwpotato 5d28886e94
halloy: use upstream themes option (#1259)
Link: https://github.com/danth/stylix/pull/1259

Reviewed-by: Oliver Jõgar <me@treier.xyz>
2025-05-14 09:29:23 -07:00

61 lines
1.7 KiB
Nix

{ config, lib, ... }:
{
options.stylix.targets.halloy.enable =
config.lib.stylix.mkEnableTarget "Halloy" true;
config.programs.halloy =
lib.mkIf (config.stylix.enable && config.stylix.targets.halloy.enable)
{
settings.theme = "stylix";
themes.stylix = with config.lib.stylix.colors.withHashtag; {
general = {
background = base00;
border = base07;
horizontal_rule = base02;
unread_indicator = base0A;
};
text = {
primary = base05;
secondary = base04;
tertiary = base0A;
success = base0B;
error = base08;
};
buffer = {
action = base0B;
background = base00;
background_text_input = base01;
background_title_bar = base01;
border = base03;
border_selected = base07;
code = base0E;
highlight = base01;
nickname = base0C;
selection = base02;
timestamp = base05;
topic = base04;
url = base0D;
server_messages = {
join = base0B;
part = base08;
quit = base08;
default = base0C;
};
};
buttons = {
primary = {
background = base00;
background_hover = base02;
background_selected = base03;
background_selected_hover = base04;
};
secondary = {
background = base01;
background_hover = base02;
background_selected = base03;
background_selected_hover = base04;
};
};
};
};
}