Files
glassMxrph/quickshell/components/GlassPanel.qml
T
mxandClaude Opus 5.5 74b6ad50ec Refine notch mode: own island modules, Super+N, fuller pages, header strip
- Notch islands and a header strip in the open notch take their own module
  lists (Settings → Notch → Modules); the strip scrolls sideways on wheel.
- `glassmxrph notch mode` swaps notch mode and the full bar.
- The left column fills its space: large media player (streams show LIVE),
  a full-height Performance card and a clock over the calendar.
- A cog edits the tiles in the Control Center editor, then the notch returns.
- The launcher uses the notch shape and keeps its mode pills inside.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:57:23 +01:00

51 lines
1.4 KiB
QML

import QtQuick
import "../theme"
Rectangle {
id: root
property real surfaceOpacity: Theme.glassOpacity
// Drops the shadow and highlights, for panels drawn on another shape.
property bool plain: false
radius: Theme.radius
color: Qt.alpha(Theme.surface, surfaceOpacity)
border.width: 1
border.color: Theme.border
Rectangle {
z: -1
anchors.fill: parent
anchors.topMargin: 4
anchors.bottomMargin: -4
radius: root.radius
color: Theme.shadow
visible: Theme.shadows && !root.plain
}
Rectangle {
anchors.fill: parent
radius: root.radius
visible: Theme.highlights && !root.plain
gradient: Gradient {
GradientStop {
position: 0
color: Qt.alpha(Theme.text, 0.035)
}
GradientStop {
position: 0.55
color: Theme.transparent
}
GradientStop {
position: 1
color: Qt.alpha(Theme.shadow, 0.03)
}
}
}
Rectangle {
anchors.top: parent.top
anchors.topMargin: 1
anchors.horizontalCenter: parent.horizontalCenter
width: Math.max(0, parent.width - root.radius * 2)
height: 1
color: Theme.border
visible: Theme.highlights && !root.plain
}
}