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>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-12 16:57:23 +01:00
1 parent 5217af4f67
commit 74b6ad50ec
14 files changed
+530 -99

No files matched your search

+8 -5
View File
@@ -44,9 +44,10 @@ PanelWindow {
radius: BarDrawers.radius
border.width: 0
// In notch mode the side rows move into their islands; the notch replaces the centre.
ModuleRow { id: leftRow; parent: root.notch ? leftIsland : panel; position: "left"; barScreen: root.screen; anchors.left: parent.left; anchors.leftMargin: 6; anchors.verticalCenter: parent.verticalCenter }
ModuleRow { position: "center"; barScreen: root.screen; anchors.centerIn: parent }
ModuleRow { id: rightRow; parent: root.notch ? rightIsland : panel; position: "right"; barScreen: root.screen; anchors.right: parent.right; anchors.rightMargin: 6; anchors.verticalCenter: parent.verticalCenter }
// Notch mode unloads these; its islands carry their own module lists.
ModuleRow { position: "left"; active: !root.notch; barScreen: root.screen; anchors.left: parent.left; anchors.leftMargin: 6; anchors.verticalCenter: parent.verticalCenter }
ModuleRow { position: "center"; active: !root.notch; barScreen: root.screen; anchors.centerIn: parent }
ModuleRow { position: "right"; active: !root.notch; barScreen: root.screen; anchors.right: parent.right; anchors.rightMargin: 6; anchors.verticalCenter: parent.verticalCenter }
}
// Outline with openings where drawers hang from the bar.
Shape {
@@ -77,21 +78,23 @@ PanelWindow {
// Notch mode -------------------------------------------------------------
GlassPanel {
id: leftIsland
visible: root.notch
visible: root.notch && ConfigService.ready && ConfigService.data.notch.left.length > 0
x: root.outerMargin
y: root.outerMargin
width: leftRow.implicitWidth + 12
height: BarDrawers.height
radius: BarDrawers.radius
ModuleRow { id: leftRow; position: "left"; active: root.notch; modules: BarLayout.notchModules(root.screen ? root.screen.name : "", "left"); barScreen: root.screen; anchors.left: parent.left; anchors.leftMargin: 6; anchors.verticalCenter: parent.verticalCenter }
}
GlassPanel {
id: rightIsland
visible: root.notch
visible: root.notch && ConfigService.ready && ConfigService.data.notch.right.length > 0
x: root.width - root.outerMargin - width
y: root.outerMargin
width: rightRow.implicitWidth + 12
height: BarDrawers.height
radius: BarDrawers.radius
ModuleRow { id: rightRow; position: "right"; active: root.notch; modules: BarLayout.notchModules(root.screen ? root.screen.name : "", "right"); barScreen: root.screen; anchors.right: parent.right; anchors.rightMargin: 6; anchors.verticalCenter: parent.verticalCenter }
}
NotchPill {
id: notchPill
+4 -1
View File
@@ -5,9 +5,12 @@ Row {
id: root
required property string position
property var barScreen
// Notch mode passes its own module entries; inactive rows load nothing.
property var modules: null
property bool active: true
spacing: 8
Repeater {
model: BarLayout.modulesFor(root.barScreen ? root.barScreen.name : "").filter(m => m.enabled && m.position === root.position)
model: !root.active ? [] : root.modules !== null ? root.modules : BarLayout.modulesFor(root.barScreen ? root.barScreen.name : "").filter(m => m.enabled && m.position === root.position)
ModuleLoader { required property var modelData; moduleId: modelData.id; barScreen: root.barScreen; entry: modelData }
}
}