diff --git a/quickshell/Common/SettingsData.qml b/quickshell/Common/SettingsData.qml index ff039132d..c11f3bc13 100644 --- a/quickshell/Common/SettingsData.qml +++ b/quickshell/Common/SettingsData.qml @@ -659,9 +659,6 @@ Singleton { readonly property string iconTheme: resolveIconTheme() property var availableIconThemes: ["System Default"] property string systemDefaultIconTheme: "" - property bool qt5ctAvailable: false - property bool qt6ctAvailable: false - property bool gtkAvailable: false property var cursorSettings: ({ "theme": "System Default", @@ -798,8 +795,6 @@ Singleton { property int fadeToDpmsGracePeriod: 5 property string launchPrefix: "" - property bool gtkThemingEnabled: false - property bool qtThemingEnabled: false property bool syncModeWithPortal: true property bool terminalsAlwaysDark: false @@ -1685,7 +1680,6 @@ Singleton { _hasLoaded = true; applyStoredTheme(); updateCompositorCursor(); - Processes.detectQtTools(); Qt.callLater(checkIconThemeDrift); _checkSettingsWritable(); diff --git a/quickshell/Common/Theme.qml b/quickshell/Common/Theme.qml index ec86726fa..83dbfa57c 100644 --- a/quickshell/Common/Theme.qml +++ b/quickshell/Common/Theme.qml @@ -96,8 +96,6 @@ Singleton { } property bool matugenAvailable: false - property bool gtkThemingEnabled: typeof SettingsData !== "undefined" ? SettingsData.gtkAvailable : false - property bool qtThemingEnabled: typeof SettingsData !== "undefined" ? (SettingsData.qt5ctAvailable || SettingsData.qt6ctAvailable) : false property var workerRunning: false property var pendingThemeRequest: null diff --git a/quickshell/Common/settings/Processes.qml b/quickshell/Common/settings/Processes.qml index 992d23001..7c8677b7d 100644 --- a/quickshell/Common/settings/Processes.qml +++ b/quickshell/Common/settings/Processes.qml @@ -487,41 +487,10 @@ Singleton { return pamFprintDetected ? "probe_failed" : "missing_pam_support"; } - // --- Qt tools detection --- - - function detectQtTools() { - qtToolsDetectionProcess.running = true; - } - function checkPluginSettings() { pluginSettingsCheckProcess.running = true; } - property var qtToolsDetectionProcess: Process { - command: ["sh", "-c", "echo -n 'qt5ct:'; command -v qt5ct >/dev/null && echo 'true' || echo 'false'; echo -n 'qt6ct:'; command -v qt6ct >/dev/null && echo 'true' || echo 'false'; echo -n 'gtk:'; (command -v gsettings >/dev/null || command -v dconf >/dev/null) && echo 'true' || echo 'false'"] - running: false - - stdout: StdioCollector { - onStreamFinished: { - if (!settingsRoot) - return; - if (text && text.trim()) { - const lines = text.trim().split("\n"); - for (let i = 0; i < lines.length; i++) { - const line = lines[i]; - if (line.startsWith("qt5ct:")) { - settingsRoot.qt5ctAvailable = line.split(":")[1] === "true"; - } else if (line.startsWith("qt6ct:")) { - settingsRoot.qt6ctAvailable = line.split(":")[1] === "true"; - } else if (line.startsWith("gtk:")) { - settingsRoot.gtkAvailable = line.split(":")[1] === "true"; - } - } - } - } - } - } - Timer { id: authApplyDebounce interval: 300 diff --git a/quickshell/Common/settings/SettingsSpec.js b/quickshell/Common/settings/SettingsSpec.js index c259e2121..ed6c1ddb7 100644 --- a/quickshell/Common/settings/SettingsSpec.js +++ b/quickshell/Common/settings/SettingsSpec.js @@ -298,9 +298,6 @@ var SPEC = { lastAppliedIconTheme: { def: "" }, availableIconThemes: { def: ["System Default"], persist: false }, systemDefaultIconTheme: { def: "", persist: false }, - qt5ctAvailable: { def: false, persist: false }, - qt6ctAvailable: { def: false, persist: false }, - gtkAvailable: { def: false, persist: false }, cursorSettings: { def: { theme: "System Default", size: 24, niri: { hideWhenTyping: false, hideAfterInactiveMs: 0 }, hyprland: { hideOnKeyPress: false, hideOnTouch: false, inactiveTimeout: 0 }, dwl: { cursorHideTimeout: 0 }, mango: { cursorHideTimeout: 0 } }, onChange: "updateCompositorCursor" }, availableCursorThemes: { def: ["System Default"], persist: false }, @@ -374,8 +371,6 @@ var SPEC = { fadeToDpmsGracePeriod: { def: 5 }, launchPrefix: { def: "" }, - gtkThemingEnabled: { def: false, onChange: "regenSystemThemes" }, - qtThemingEnabled: { def: false, onChange: "regenSystemThemes" }, syncModeWithPortal: { def: true }, terminalsAlwaysDark: { def: false, onChange: "regenSystemThemes" },