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,60 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import "../theme"
|
||||
|
||||
// Small Control Center tile: round toggle, title and state; the whole tile toggles.
|
||||
ControlCard {
|
||||
id: root
|
||||
property string glyph
|
||||
property string fallback
|
||||
property string detail
|
||||
property bool checked: false
|
||||
signal clicked
|
||||
padding: 10
|
||||
heading: false
|
||||
opacity: enabled ? 1 : 0.55
|
||||
color: area.containsMouse && enabled ? Theme.hover : Theme.fill
|
||||
Accessible.role: Accessible.CheckBox
|
||||
Accessible.name: title
|
||||
Accessible.checked: checked
|
||||
MouseArea {
|
||||
id: area
|
||||
parent: root
|
||||
z: -1
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: root.clicked()
|
||||
}
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
spacing: 10
|
||||
CCToggle {
|
||||
glyph: root.glyph
|
||||
fallback: root.fallback
|
||||
checked: root.checked
|
||||
enabled: root.enabled
|
||||
onClicked: root.clicked()
|
||||
}
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
spacing: 0
|
||||
Text {
|
||||
text: root.title
|
||||
color: Theme.text
|
||||
font.pixelSize: 12
|
||||
font.weight: Font.DemiBold
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
Text {
|
||||
text: root.detail
|
||||
visible: text !== ""
|
||||
color: Theme.textSecondary
|
||||
font.pixelSize: 11
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user