Add notch opacity and colour; open plugin panels from the notch strip

- Settings → Notch → Look: opacity (0% glass to 100% solid) and colour
  for the notch, the open notch and the notch-mode launcher.
- Bar popouts and plugin panels add the open notch's screen offset, so
  tooltips and panels from the strip land under their module.
- Opening a plugin panel keeps the notch open; the notch hands keyboard
  focus to the panel and takes it back when it closes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-12 17:18:58 +01:00
1 parent 73de4b06a8
commit e4ca1f5d9c
12 files changed
+98 -14

No files matched your search

+15 -1
View File
@@ -83,6 +83,9 @@ PanelWindow {
readonly property real contentOpacity: Math.max(0, Math.min(1, (progress - 0.55) / 0.4))
anchors.top: true
// Screen x of this centred layer, so bar popouts (plugin tooltips) anchored
// in the strip land under their module.
readonly property real screenOffsetX: Math.round((screenWidth - implicitWidth) / 2)
implicitWidth: Math.round(bodyWidth + 2 * ear)
implicitHeight: Math.max(1, Math.round(bodyHeight))
visible: ShellState.notchOpen || progress > 0.001
@@ -91,7 +94,8 @@ PanelWindow {
WlrLayershell.layer: WlrLayer.Overlay
// Shares the dashboard's HyprGlass namespace (already whitelisted).
WlrLayershell.namespace: "glassMxrph-dashboard"
WlrLayershell.keyboardFocus: ShellState.notchOpen ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
// A plugin panel opened from the strip takes focus (and the pointer) while it is open.
WlrLayershell.keyboardFocus: ShellState.notchOpen && !PluginService.activePopout ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
Component.onCompleted: ShellState.notchWindow = root
Component.onDestruction: ShellState.notchWindow = null
@@ -107,6 +111,15 @@ PanelWindow {
}
}
// Keyboard focus comes back once a plugin panel from the strip closes.
Connections {
target: PluginService
function onActivePopoutChanged() {
if (!PluginService.activePopout && ShellState.notchOpen)
body.forceActiveFocus();
}
}
// Exclusive focus routes outside clicks here (see ControlCenter).
MouseArea {
objectName: "notchOutside"
@@ -122,6 +135,7 @@ PanelWindow {
bodyHeight: root.bodyHeight
ear: root.ear
radius: Math.min(Theme.radius + 8, root.bodyHeight / 2)
fillColor: Theme.notchFill
}
Item {