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>
This commit is contained in:
commit
99e64a7713
433 files changed
+57792
No files matched your search
@@ -0,0 +1,54 @@
|
||||
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."
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user