1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat: add gtk hints for dark mode

This commit is contained in:
oddlama 2023-09-13 19:41:48 +02:00
parent 3cc9fa6f82
commit ae120a16c7
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 23 additions and 0 deletions

View file

@ -73,6 +73,27 @@
package = pkgs.gnome.gnome-themes-extra;
name = "Adwaita-dark";
};
gtk2.extraConfig = "gtk-application-prefer-dark-theme = true";
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = true;
gtk-cursor-theme-size = 24;
gtk-enable-animations = true;
gtk-xft-antialias = 1;
gtk-xft-dpi = 160;
gtk-xft-hinting = 1;
gtk-xft-hintstyle = "hintslight";
gtk-xft-rgba = "rgb";
};
};
qt = {
enable = true;
platformTheme = "gnome";
style = {
name = "adwaita";
package = pkgs.adwaita-qt;
};
};
xdg.mimeApps.enable = true;

View file

@ -149,6 +149,8 @@ in {
home.sessionVariables = {
# Make gtk apps bigger
GDK_SCALE = 2;
# Make QT apps bigger
QT_SCREEN_SCALE_FACTORS = 2;
};
home.file.".xinitrc".text = ''