2026-05-31 19:52:51 +03:00
|
|
|
{ lib, ... }: {
|
|
|
|
|
# Keep qtct/Kvantum for styling, but tell qtct to delegate standard file
|
|
|
|
|
# dialogs to xdg-desktop-portal. This is what makes AyuGram/Telegram-like Qt
|
|
|
|
|
# apps use the Yazi picker instead of Qt's built-in dialog.
|
|
|
|
|
stylix.targets.qt.standardDialogs = "xdgdesktopportal";
|
|
|
|
|
|
|
|
|
|
home.sessionVariables = {
|
|
|
|
|
QT_QPA_PLATFORMTHEME = lib.mkForce "xdgdesktopportal";
|
|
|
|
|
TDESKTOP_USE_GTK_FILE_DIALOG = "1";
|
|
|
|
|
};
|
|
|
|
|
|
2024-08-29 21:56:25 +03:00
|
|
|
qt = {
|
|
|
|
|
enable = true;
|
2024-11-03 19:07:42 +03:00
|
|
|
platformTheme.name = "qtct";
|
2024-08-29 21:56:25 +03:00
|
|
|
style.name = "kvantum";
|
|
|
|
|
};
|
|
|
|
|
}
|