fix tray status enum reference, fix volume panel polish loop
This commit is contained in:
parent
5dcea32dc3
commit
421c19b509
2 changed files with 14 additions and 14 deletions
|
|
@ -20,7 +20,7 @@ RowLayout {
|
||||||
id: iconItem
|
id: iconItem
|
||||||
required property SystemTrayItem modelData
|
required property SystemTrayItem modelData
|
||||||
|
|
||||||
readonly property bool _needsAttention: modelData.status === SystemTrayItemStatus.NeedsAttention
|
readonly property bool _needsAttention: modelData.status === 2
|
||||||
property bool _hovered: false
|
property bool _hovered: false
|
||||||
property real _pulseOpacity: 1
|
property real _pulseOpacity: 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -121,25 +121,25 @@ M.BarSection {
|
||||||
// Click inside panel doesn't dismiss
|
// Click inside panel doesn't dismiss
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
x: panelContent.x
|
||||||
|
y: panelContent.y
|
||||||
|
width: panelContent.width
|
||||||
|
height: panelContent.height
|
||||||
|
color: M.Theme.base01
|
||||||
|
opacity: panelContent.opacity * Math.max(M.Theme.barOpacity, 0.85)
|
||||||
|
topLeftRadius: 0
|
||||||
|
topRightRadius: 0
|
||||||
|
bottomLeftRadius: M.Theme.radius
|
||||||
|
bottomRightRadius: M.Theme.radius
|
||||||
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: panelContent
|
id: panelContent
|
||||||
width: 220
|
width: 220
|
||||||
opacity: 0
|
opacity: 0
|
||||||
y: -height
|
y: -height
|
||||||
|
|
||||||
// Background
|
|
||||||
Rectangle {
|
|
||||||
width: parent.width
|
|
||||||
height: parent.height
|
|
||||||
color: M.Theme.base01
|
|
||||||
opacity: Math.max(M.Theme.barOpacity, 0.85)
|
|
||||||
topLeftRadius: 0
|
|
||||||
topRightRadius: 0
|
|
||||||
bottomLeftRadius: M.Theme.radius
|
|
||||||
bottomRightRadius: M.Theme.radius
|
|
||||||
z: -1
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compact: slider row
|
// Compact: slider row
|
||||||
Item {
|
Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue