updates to qt theming

This commit is contained in:
Sean Kovacs 2025-12-14 13:09:27 -05:00
commit 32ccf53258
Signed by: sckova
GPG key ID: 00F325187C68651A
2 changed files with 17 additions and 5 deletions

View file

@ -47,7 +47,7 @@
}; };
size = lib.mkOption { size = lib.mkOption {
type = lib.types.int; type = lib.types.int;
default = 12; default = 11;
}; };
}; };
fontSerif = { fontSerif = {
@ -58,7 +58,7 @@
}; };
size = lib.mkOption { size = lib.mkOption {
type = lib.types.int; type = lib.types.int;
default = 12; default = 11;
}; };
}; };
fontMono = { fontMono = {
@ -134,6 +134,11 @@
jdk21_headless jdk21_headless
nerd-fonts.noto nerd-fonts.noto
xorg.xcursorgen xorg.xcursorgen
kdePackages.qtstyleplugin-kvantum
(catppuccin-kvantum.override {
variant = config.catppuccin.flavor;
accent = config.catppuccin.accent;
})
# kde and kde theming # kde and kde theming
kde-rounded-corners kde-rounded-corners
@ -193,6 +198,12 @@
''; '';
force = true; force = true;
}; };
".config/Kvantum/kvantum.kvconfig" = {
text = lib.generators.toINI { } {
General.theme = "catppuccin-${config.catppuccin.flavor}-${config.catppuccin.accent}";
};
force = true;
};
}; };
home.pointerCursor = { home.pointerCursor = {
@ -229,7 +240,7 @@
enable = true; enable = true;
qt5ctSettings = { qt5ctSettings = {
Appearance = { Appearance = {
style = "Breeze"; style = "kvantum";
icon_theme = config.gtk.iconTheme.name; icon_theme = config.gtk.iconTheme.name;
color_scheme_path = "/home/${config.userOptions.username}/.config/qt5ct/qt5ct.conf"; color_scheme_path = "/home/${config.userOptions.username}/.config/qt5ct/qt5ct.conf";
custom_palette = true; custom_palette = true;
@ -240,14 +251,14 @@
}; };
qt6ctSettings = { qt6ctSettings = {
Appearance = { Appearance = {
style = "Breeze"; style = "kvantum";
icon_theme = config.gtk.iconTheme.name; icon_theme = config.gtk.iconTheme.name;
color_scheme_path = "/home/${config.userOptions.username}/.config/qt6ct/qt6ct.conf"; color_scheme_path = "/home/${config.userOptions.username}/.config/qt6ct/qt6ct.conf";
custom_palette = true; custom_palette = true;
standard_dialogs = "default"; standard_dialogs = "default";
}; };
Fonts = { Fonts = {
fixed = "\"${config.userOptions.fontMono.name},${config.userOptions.fontMono.name}\""; fixed = "\"${config.userOptions.fontMono.name},${toString config.userOptions.fontMono.size}\"";
general = "\"${config.userOptions.fontSans.name},${toString config.userOptions.fontSans.size}\""; general = "\"${config.userOptions.fontSans.name},${toString config.userOptions.fontSans.size}\"";
}; };
ColorScheme = ColorScheme =

View file

@ -40,6 +40,7 @@
}; };
environment = { environment = {
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
QT_QPA_PLATFORMTHEME = "qt6ct";
DISPLAY = null; DISPLAY = null;
XCURSOR_THEME = config.userOptions.cursor.name; XCURSOR_THEME = config.userOptions.cursor.name;
XCURSOR_SIZE = toString config.userOptions.cursor.size; XCURSOR_SIZE = toString config.userOptions.cursor.size;