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:
mxandClaude Opus 5.5 committed 2026-10-07 22:36:17 +02:00
commit 99e64a7713
433 files changed
+57792

No files matched your search

@@ -0,0 +1,103 @@
import QtQuick
import QtQuick.Effects
import Quickshell
import Quickshell.Widgets
import qs.compat.noctalia.Commons
Item {
id: root
property real radius: 0
property string imagePath: ""
property string fallbackIcon: ""
property real fallbackIconSize: Style.fontSizeXXL
property real borderWidth: 0
property color borderColor: "transparent"
property int imageFillMode: Image.PreserveAspectCrop
readonly property bool _isAnimated: imagePath.toLowerCase().endsWith(".gif")
readonly property Item imageSource: imageSourceLoader.item
readonly property bool showFallback: fallbackIcon !== "" && (imagePath === "" || (imageSource && imageSource.status === Image.Error))
readonly property int status: imageSource ? imageSource.status : Image.Null
Rectangle {
anchors.fill: parent
radius: root.radius
color: "transparent"
border.width: root.borderWidth
border.color: root.borderColor
Loader {
id: imageSourceLoader
anchors.fill: parent
anchors.margins: root.borderWidth
active: root.imagePath !== ""
sourceComponent: root._isAnimated ? animatedComponent : staticComponent
}
Component {
id: staticComponent
Image {
visible: false
source: root.imagePath
mipmap: true
smooth: true
asynchronous: true
antialiasing: true
fillMode: root.imageFillMode
}
}
Component {
id: animatedComponent
AnimatedImage {
visible: false
source: root.imagePath
mipmap: true
smooth: true
asynchronous: true
antialiasing: true
fillMode: root.imageFillMode
playing: true
}
}
// Fallback texture provider to avoid null source warnings
ShaderEffectSource {
id: _safeFallback
sourceItem: Rectangle {
width: 1
height: 1
color: "transparent"
}
visible: false
live: false
}
ShaderEffect {
anchors.fill: parent
anchors.margins: root.borderWidth
visible: !root.showFallback && root.imageSource !== null && root.status === Image.Ready
property var source: root.imageSource ?? _safeFallback
property real itemWidth: width
property real itemHeight: height
property real sourceWidth: root.imageSource?.sourceSize.width ?? 0
property real sourceHeight: root.imageSource?.sourceSize.height ?? 0
property real cornerRadius: Math.max(0, root.radius - root.borderWidth)
property real imageOpacity: 1.0
property int fillMode: root.imageFillMode
fragmentShader: Qt.resolvedUrl(Quickshell.shellDir + "/Shaders/qsb/rounded_image.frag.qsb")
supportsAtlasTextures: false
blending: true
}
NIcon {
anchors.fill: parent
anchors.margins: root.borderWidth
visible: root.showFallback
icon: root.fallbackIcon
pointSize: root.fallbackIconSize
}
}
}