add qt app theme config
This commit is contained in:
parent
265b6ff095
commit
8c285dd7da
1 changed files with 23 additions and 2 deletions
|
|
@ -128,15 +128,32 @@ in
|
||||||
x11.enable = true;
|
x11.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure GTK icon theme
|
# Configure GTK theme and icon theme
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
theme = {
|
||||||
|
package = pkgs.gnome-themes-extra;
|
||||||
|
name = "Adwaita-dark";
|
||||||
|
};
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
package = pkgs.adwaita-icon-theme;
|
package = pkgs.adwaita-icon-theme;
|
||||||
name = "Adwaita";
|
name = "Adwaita";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Configure Qt theming to match GNOME dark theme
|
||||||
|
qt = {
|
||||||
|
enable = true;
|
||||||
|
platformTheme.name = "adwaita";
|
||||||
|
style.name = "adwaita-dark";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Environment variables for consistent dark mode across all applications
|
||||||
|
home.sessionVariables = {
|
||||||
|
GTK_THEME = "Adwaita:dark";
|
||||||
|
QT_QPA_PLATFORMTHEME = "adwaita";
|
||||||
|
};
|
||||||
|
|
||||||
# Configure XDG user directories
|
# Configure XDG user directories
|
||||||
xdg.userDirs = {
|
xdg.userDirs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -155,10 +172,14 @@ in
|
||||||
templates = null;
|
templates = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
# GNOME Shell extensions
|
# GNOME Shell extensions and Qt theming packages
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
gnomeExtensions.hide-top-bar
|
gnomeExtensions.hide-top-bar
|
||||||
gnomeExtensions.pano
|
gnomeExtensions.pano
|
||||||
|
|
||||||
|
# Qt theming packages for dark mode support
|
||||||
|
adwaita-qt
|
||||||
|
adwaita-qt6
|
||||||
];
|
];
|
||||||
|
|
||||||
# Custom desktop file for opening text files with Neovim in Ghostty
|
# Custom desktop file for opening text files with Neovim in Ghostty
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue