Files
glassMxrph/quickshell/bar/modules/NowPlayingModule.qml
T
mxandClaude Opus 5.5 99e64a7713 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>
2026-10-07 22:36:17 +02:00

37 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Layouts
import "../../components"
import "../../services"
import "../../core"
import "../../theme"
GlassPill {
implicitWidth: content.implicitWidth + 12
implicitHeight: ModuleRegistry.pillHeight
RowLayout {
id: content
anchors.centerIn: parent
spacing: 3
GlassButton {
implicitWidth: ModuleRegistry.pillHeight - 4
implicitHeight: ModuleRegistry.pillHeight - 4
text: MediaService.playing ? "Ⅱ" : "▶"
enabled: !!MediaService.player && MediaService.player.canTogglePlaying && MediaService.player.canControl
onClicked: MediaService.toggle()
Accessible.name: "Toggle playback"
}
GlassButton {
implicitWidth: 160
implicitHeight: ModuleRegistry.pillHeight - 4
contentItem: Text {
text: MediaService.title
color: Theme.text
elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
}
onClicked: ShellState.openSettings("media")
Accessible.name: "Media settings"
}
}
}