confix/home-manager/dots/gtk.nix

96 lines
3.4 KiB
Nix

{ pkgs, config, ... }:
{
gtk = {
enable = true;
font = {
name = "Comic Mono";
};
};
gtkNix = {
enable = true;
configuration = {
spacing-small = "0.3em";
spacing-medium = "0.6em";
spacing-large = "0.9em";
tint-weak = 0.3;
tint-medium = 0.6;
tint-strong = 0.9;
border-size = "0.2em";
radius = "0.5em";
disabled-opacity = 0.3;
};
defaultTransparency = 255;
# neither of these options are very useful. They're just so that if
# I forgot to make something configurable, you can override previous
# variable definitions.
extraConfigSCSS = '''';
extraColorSCSS = '''';
whites = let
mkWhite = alpha: "f0f0f3${alpha}";
in {
strongest = mkWhite "FF";
strong = mkWhite "DE";
moderate = mkWhite "57";
weak = mkWhite "24";
weakest = mkWhite "0F";
};
blacks = let
mkBlack = alpha: "191724${alpha}";
in {
strongest = mkBlack "FF";
strong = mkBlack "DE";
moderate = mkBlack "6B";
weak = mkBlack "26";
weakest = mkBlack "0F";
};
palette = rec {
# the banner palette format. can also be a path to a yaml file
# instead of attrs. this example is rose pine.
base00 = "${config.colorScheme.colors.base00}";
base01 = "${config.colorScheme.colors.base01}";
base02 = "${config.colorScheme.colors.base02}";
base03 = "${config.colorScheme.colors.base03}";
base04 = "${config.colorScheme.colors.base04}";
base05 = "${config.colorScheme.colors.base05}";
base06 = "${config.colorScheme.colors.base06}";
base07 = "${config.colorScheme.colors.base07}";
base08 = "${config.colorScheme.colors.base08}";
base09 = "${config.colorScheme.colors.base09}";
base10 = "${config.colorScheme.colors.base0A}";
base11 = "${config.colorScheme.colors.base0B}";
base12 = "${config.colorScheme.colors.base0C}";
base13 = "${config.colorScheme.colors.base0D}";
base14 = "${config.colorScheme.colors.base0E}";
base15 = "${config.colorScheme.colors.base0F}";
highlight = "${config.colorScheme.colors.base0E}";
hialt0 = "${config.colorScheme.colors.base0A}";
hialt1 = "${config.colorScheme.colors.base0E}";
hialt2 = "${config.colorScheme.colors.base0B}";
urgent = "${config.colorScheme.colors.base09}";
warn = "${config.colorScheme.colors.base0A}";
confirm = "${config.colorScheme.colors.base0D}";
link = "${config.colorScheme.colors.base0E}";
pfg-highlight = "${config.colorScheme.colors.base00}";
pfg-hialt0 = "${config.colorScheme.colors.base00}";
pfg-hialt1 = "${config.colorScheme.colors.base00}";
pfg-hialt2 = "${config.colorScheme.colors.base05}";
pfg-urgent = "${config.colorScheme.colors.base00}";
pfg-warn = "${config.colorScheme.colors.base00}";
pfg-confirm = "${config.colorScheme.colors.base00}";
pfg-link = "${config.colorScheme.colors.base00}";
ansi00 = "${config.colorScheme.colors.base03}";
ansi01 = "${config.colorScheme.colors.base09}";
ansi02 = "${config.colorScheme.colors.base0D}";
ansi03 = "${config.colorScheme.colors.base0A}";
ansi04 = "${config.colorScheme.colors.base0C}";
ansi05 = "${config.colorScheme.colors.base0E}";
ansi06 = "${config.colorScheme.colors.base0B}";
ansi07 = "${config.colorScheme.colors.base05}";
};
};
}