Open the equalizer from the notch's album art, and add notch view commands

Clicking the artwork on the notch's Media page swaps in the dashboard's
EasyEffects equalizer as a full view, the way Performance opens
"Your computer". `glassmxrph notch equalizer|computer` opens the notch
straight onto either view (or the matching dashboard tab with the full bar).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-19 00:52:59 +01:00
1 parent a0de1d2c41
commit fc272e45b2
4 files changed
+137 -57

No files matched your search

+33 -1
View File
@@ -2,12 +2,14 @@ pragma ComponentBehavior: Bound
import QtQuick
import Quickshell.Widgets
import "../components"
import "../core"
import "../dashboard"
import "../services"
import "../theme"
// The notch's Media page: large artwork, track, seek bar, transport and a
// Cava strip, sized to fill the left column.
// Cava strip, sized to fill the left column. Clicking the artwork opens the
// equalizer view (when the dashboard's EasyEffects equalizer is on).
Item {
id: root
property bool active: false
@@ -15,6 +17,7 @@ Item {
readonly property bool live: MediaService.length <= 0 || MediaService.length > 7 * 86400
readonly property bool hasPlayer: !!MediaService.player
readonly property real artSize: Math.max(120, Math.min(width - 40, height - 250, 250))
readonly property bool equalizer: ConfigService.ready && !!ConfigService.data.dashboard && ConfigService.data.dashboard.easyEffects
Demand {
service: MediaService
counter: "progressConsumers"
@@ -60,6 +63,35 @@ Item {
}
}
}
// Hover hint for the equalizer.
Rectangle {
anchors.fill: parent
color: Qt.alpha("black", 0.45)
opacity: artArea.containsMouse ? 1 : 0
Behavior on opacity {
NumberAnimation {
duration: Theme.notchDuration / 2
}
}
Text {
anchors.centerIn: parent
text: "Equalizer"
color: "white"
font.pixelSize: 15
font.weight: Font.DemiBold
}
}
MouseArea {
id: artArea
objectName: "notchArtwork"
anchors.fill: parent
enabled: root.equalizer
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: ShellState.notchView = "equalizer"
Accessible.role: Accessible.Button
Accessible.name: "Equalizer"
}
}
Column {
width: parent.width