Compare commits

...
Author SHA1 Message Date
Damocles
f174d35383 add panel titles to mpris/sound/brightness; pin button always visible 2026-04-16 20:47:33 +02:00
Damocles
5ce1205225 fix separator line vertical alignment in bar groups 2026-04-16 18:55:47 +02:00
Damocles
23223a2b73 mpris: make album art always 1:1 2026-04-16 18:53:08 +02:00
5 changed files with 7 additions and 15 deletions

View file

@ -109,6 +109,7 @@ M.BarSection {
anchorItem: root anchorItem: root
accentColor: root.accentColor accentColor: root.accentColor
panelNamespace: "nova-backlight" panelNamespace: "nova-backlight"
panelTitle: "Brightness"
contentWidth: 200 contentWidth: 200
Item { Item {

View file

@ -157,7 +157,7 @@ Item {
readonly property real _rightEdge: _left ? _left.x + _left.width : 0 readonly property real _rightEdge: _left ? _left.x + _left.width : 0
x: row.x + _rightEdge + row.spacing / 2 x: row.x + _rightEdge + row.spacing / 2
y: root._pad y: row.y
width: 1 width: 1
height: row.implicitHeight height: row.implicitHeight
color: Qt.rgba(root.borderColor.r, root.borderColor.g, root.borderColor.b, 0.4) color: Qt.rgba(root.borderColor.r, root.borderColor.g, root.borderColor.b, 0.4)

View file

@ -268,18 +268,7 @@ PanelWindow {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: root.popupMode ? 0 : 20 width: root.popupMode ? 0 : 20
height: 20 height: 20
visible: !root.popupMode && (root.panelHovered || root._pinned) visible: !root.popupMode
opacity: pinHover.hovered || root._pinned ? 1 : 0.35
Behavior on opacity {
NumberAnimation {
duration: 100
}
}
HoverHandler {
id: pinHover
}
TapHandler { TapHandler {
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor

View file

@ -119,12 +119,13 @@ M.BarSection {
anchorItem: root anchorItem: root
accentColor: root.accentColor accentColor: root.accentColor
panelNamespace: "nova-mpris" panelNamespace: "nova-mpris"
panelTitle: "Now Playing"
contentWidth: 280 contentWidth: 280
// Album art // Album art always 1:1
Item { Item {
width: parent.width width: parent.width
height: _artImg._hasArt ? 140 : 60 height: width
clip: true clip: true
Rectangle { Rectangle {

View file

@ -110,6 +110,7 @@ M.BarSection {
anchorItem: root anchorItem: root
accentColor: root.accentColor accentColor: root.accentColor
panelNamespace: "nova-volume" panelNamespace: "nova-volume"
panelTitle: "Sound"
contentWidth: 220 contentWidth: 220
// Slider row // Slider row