Fix gtk theme to work with dark mode
This commit is contained in:
+9
-1
@@ -36,10 +36,18 @@
|
|||||||
# Suppress greetd's default virtual terminal log spam.
|
# Suppress greetd's default virtual terminal log spam.
|
||||||
systemd.services.greetd.serviceConfig.LogStandardStream = "journal";
|
systemd.services.greetd.serviceConfig.LogStandardStream = "journal";
|
||||||
|
|
||||||
# XDG Desktop Portals (used for wayland screen sharing, file pickets, etc.)
|
# XDG Desktop Portals (used for wayland screen sharing, file pickers, etc.)
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wlr.enable = true;
|
wlr.enable = true;
|
||||||
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
|
config = {
|
||||||
|
common = {
|
||||||
|
default = [ "wlr" "gtk" ];
|
||||||
|
"org.freedesktop.impl.portal.Settings" = [ "gtk" ];
|
||||||
|
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure keymap
|
# Configure keymap
|
||||||
|
|||||||
@@ -36,13 +36,27 @@
|
|||||||
|
|
||||||
gtk = let
|
gtk = let
|
||||||
theme = {
|
theme = {
|
||||||
name = "Colloid-dark";
|
name = "Colloid-Dark";
|
||||||
package = pkgs.colloid-gtk-theme;
|
package = pkgs.colloid-gtk-theme;
|
||||||
};
|
};
|
||||||
|
iconTheme = {
|
||||||
|
name = "Papirus-Dark";
|
||||||
|
package = pkgs.papirus-icon-theme;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit theme;
|
inherit theme iconTheme;
|
||||||
gtk4.theme = theme;
|
gtk4 = {
|
||||||
|
inherit theme iconTheme;
|
||||||
|
extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme = 1;
|
||||||
|
gtk-color-scheme = "prefer-dark";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
gtk3.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme = 1;
|
||||||
|
gtk-color-scheme = "prefer-dark";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
|
|||||||
Reference in New Issue
Block a user