Files
glassMxrph/quickshell/settings/controls/CommandPreference.qml
T
mxandClaude Opus 5.5 99e64a7713 Add glassMxrph shell sources
Initial commit of the Quickshell desktop suite: bar, dock, launcher,
settings, Control Center, dashboard, OSD, lock screen, desktop widgets,
plugin host with the vendored Noctalia/Omarchy compatibility layer,
helpers, packaging, tests and phase documentation.

Includes the optimization work so far: usage widgets and dashboard
gauges no longer animate continuously, desktop widgets pause while
covered, system controls stop flickering on background polls, dock app
matching uses an indexed catalog, and workspace ghosts are created only
for occupied slots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:36:17 +02:00

42 lines
1.0 KiB
QML

import QtQuick
import QtQuick.Layouts
import "../../components"
import "../../services"
import "../../theme"
ColumnLayout {
id: root
property string label
property string setting
property string error: ""
Layout.fillWidth: true
Text {
text: root.label
color: Theme.textSecondary
Layout.fillWidth: true
wrapMode: Text.Wrap
}
GlassTextField {
Layout.fillWidth: true
text: JSON.stringify(ConfigService.value(root.setting))
onEditingFinished: {
try {
if (ConfigService.setValue(root.setting, JSON.parse(text))) {
root.error = "";
SystemService.refresh();
} else
root.error = ConfigService.error;
} catch (e) {
root.error = "Enter a JSON array of command arguments";
}
}
}
Text {
visible: !!root.error
text: root.error
color: Theme.urgent
wrapMode: Text.Wrap
Layout.fillWidth: true
}
}