fix: catppuccin gtk theme

This commit is contained in:
DACHXY 2024-12-26 15:53:51 +08:00
parent 9c2da1547b
commit 87c07bfecf
7 changed files with 32 additions and 15 deletions

View file

@ -1,5 +1,7 @@
{ pkgs, ... }:
let configDir = ../config;
in {
in
{
home.file = {
".config/nvim" = {
source = "${configDir}/nvim";

View file

@ -17,7 +17,6 @@
CLUTTER_BACKEND = "wayland";
WLR_RENDERER = "vulkan";
XCURSOR_SIZE = "32";
GTK_THEME = "Catppuccin-Macchiato-Compact-Lavender-Dark";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
gtk = {
enable = true;
@ -8,10 +9,10 @@
};
theme = {
name = "Catppuccin-Macchiato-Compact-Lavender-dark";
name = "catppuccin-macchiato-lavender-compact";
package = pkgs.catppuccin-gtk.override {
size = "compact";
accents = [ "lavender" ];
size = "compact";
variant = "macchiato";
};
};
@ -21,13 +22,24 @@
package = pkgs.papirus-folders;
};
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = 1;
gtk3 = {
# extraCss = gtk-css;
extraConfig = {
gtk-application-prefer-dark-theme = 1;
};
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = 1;
gtk4 = {
# extraCss = gtk-css;
extraConfig = {
gtk-application-prefer-dark-theme = 1;
};
};
};
qt = {
enable = true;
style.name = "adwaita-dark";
style.package = pkgs.adwaita-qt;
};
}

View file

@ -27,6 +27,7 @@
"font.name.monospace.zh-TW" = "Noto Sans Mono CJK TC";
};
# firefox = {
# enable = true;
# languagePacks = [