Files
glassMxrph/quickshell/settings/pages/Widgets.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

55 lines
2.1 KiB
QML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
pragma ComponentBehavior: Bound
import QtQuick
import "../controls"
import "../../components"
import "../../widgets"
SettingsPage {
SettingsSection {
SettingRow {
title: "Edit widgets"
description: "Add, move and resize widgets on the desktop. You can also right-click any widget, or run glassmxrph widgets."
icon: "󰕰"
GlassButton {
objectName: "editWidgets"
text: "Edit desktop"
accented: true
onClicked: WidgetState.edit("")
}
}
PreferenceToggle {
label: "Snap to grid"
description: "20 px grid while editing; otherwise widgets snap to edges, centres and each other"
icon: "󰕰"
setting: "desktopWidgets.grid"
}
}
SettingsSection {
title: "Your widgets"
description: WidgetState.items.length ? "" : "No widgets yet. Choose Edit desktop to add some."
Repeater {
model: WidgetState.items
SettingRow {
id: entry
required property var modelData
readonly property var type: WidgetRegistry.type(modelData.type)
title: type ? type.name + (type.variants ? " · " + type.variants[modelData.variant] : "") : modelData.type + " (unavailable)"
description: modelData.monitor + " · " + modelData.w + "×" + modelData.h + " at " + modelData.x + ", " + modelData.y
icon: type ? type.icon : "?"
GlassButton {
text: "Edit"
onClicked: WidgetState.edit(entry.modelData.id)
}
GlassButton {
objectName: "removeWidget-" + entry.modelData.id
text: "Remove"
onClicked: WidgetState.remove(entry.modelData.id)
}
}
}
}
SettingNote {
text: "The Music widget and System Metrics pages keep their existing corner widgets; desktop widgets are independent and can be placed anywhere."
}
}