qt: add standardDialogs option (#2090)
Link: https://github.com/nix-community/stylix/pull/2090
Co-authored-by: NAHO <trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <trueNAHO@users.noreply.github.com>
Reviewed-by: Mikilio <official.mikilio@gmail.com>
(cherry picked from commit 626dab1b56)
This commit is contained in:
parent
259af48fe5
commit
87d4fd1127
1 changed files with 23 additions and 0 deletions
|
|
@ -28,6 +28,28 @@
|
|||
type = lib.types.str;
|
||||
default = "qtct";
|
||||
};
|
||||
|
||||
standardDialogs = lib.mkOption {
|
||||
description = ''
|
||||
Selects the standard dialogs theme to be used by Qt.
|
||||
|
||||
Using `xdgdesktopportal` integrates with the native desktop portal.
|
||||
'';
|
||||
|
||||
# The enum variants are derived from the qt6ct platform theme integration
|
||||
# [1].
|
||||
#
|
||||
# [1]: https://www.opencode.net/trialuser/qt6ct/-/blob/00823e41aa60e8fe266d5aee328e82ad1ad94348/src/qt6ct/appearancepage.cpp#L83-L92
|
||||
type = lib.types.enum [
|
||||
"default"
|
||||
"gtk2"
|
||||
"gtk3"
|
||||
"kde"
|
||||
"xdgdesktopportal"
|
||||
];
|
||||
|
||||
default = "default";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.stylix.enable && config.stylix.targets.qt.enable) (
|
||||
|
|
@ -80,6 +102,7 @@
|
|||
qtctSettings = {
|
||||
Appearance = {
|
||||
custom_palette = true;
|
||||
standard_dialogs = config.stylix.targets.qt.standardDialogs;
|
||||
style = lib.mkIf (config.qt.style ? name) config.qt.style.name;
|
||||
icon_theme = lib.mkIf (icons != null) icons;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue