Compare commits
5 changed files with 15 additions and 7 deletions
|
|
@ -109,7 +109,6 @@ 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 {
|
||||||
|
|
|
||||||
|
|
@ -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: row.y
|
y: root._pad
|
||||||
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)
|
||||||
|
|
|
||||||
|
|
@ -268,7 +268,18 @@ 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
|
visible: !root.popupMode && (root.panelHovered || root._pinned)
|
||||||
|
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
|
||||||
|
|
|
||||||
|
|
@ -119,13 +119,12 @@ 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 — always 1:1
|
// Album art
|
||||||
Item {
|
Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: width
|
height: _artImg._hasArt ? 140 : 60
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,6 @@ 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
|
||||||
|
|
|
||||||
Reference in a new issue