Files
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

27 lines
910 B
QML

import QtQuick
import QtQuick.Layouts
import "../../components"
import "../../services"
// Few short choices render as a segmented control, longer lists as a menu.
SettingRow {
id: root
property string label
property var choices: []
readonly property bool segmented: choices.length > 1 && choices.length <= 4 && choices.join("").length <= 34
title: label
GlassSegmented {
visible: root.segmented
model: root.choices
currentIndex: root.choices.indexOf(ConfigService.value(root.setting))
onActivated: (index, value) => ConfigService.setValue(root.setting, value)
}
GlassComboBox {
visible: !root.segmented
Layout.preferredWidth: 240
model: root.choices
currentIndex: Math.max(0, root.choices.indexOf(ConfigService.value(root.setting)))
onActivated: ConfigService.setValue(root.setting, currentText)
}
}