Compare commits
2 commits
1886f27268
...
a67cdbd66f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a67cdbd66f | ||
|
|
09d901bf5a |
6 changed files with 24 additions and 7 deletions
|
|
@ -44,6 +44,7 @@ PanelWindow {
|
||||||
id: label
|
id: label
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: M.FlyoutState.text
|
text: M.FlyoutState.text
|
||||||
|
textFormat: Text.RichText
|
||||||
color: M.Theme.base05
|
color: M.Theme.base05
|
||||||
font.pixelSize: M.Theme.fontSize
|
font.pixelSize: M.Theme.fontSize
|
||||||
font.family: M.Theme.fontFamily
|
font.family: M.Theme.fontFamily
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ M.BarSection {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
M.BarLabel {
|
M.BarLabel {
|
||||||
label: root.player?.identity ?? ""
|
label: root.player?.trackTitle || root.player?.identity || ""
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
16
modules/ThemedIcon.qml
Normal file
16
modules/ThemedIcon.qml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
import QtQuick
|
||||||
|
import QtQuick.Effects
|
||||||
|
|
||||||
|
Image {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
required property color tint
|
||||||
|
|
||||||
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
||||||
|
layer.enabled: true
|
||||||
|
layer.effect: MultiEffect {
|
||||||
|
colorization: 1.0
|
||||||
|
colorizationColor: root.tint
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -20,10 +20,10 @@ RowLayout {
|
||||||
implicitWidth: 18
|
implicitWidth: 18
|
||||||
implicitHeight: 18
|
implicitHeight: 18
|
||||||
|
|
||||||
Image {
|
M.ThemedIcon {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: iconItem.modelData.icon
|
source: iconItem.modelData.icon
|
||||||
fillMode: Image.PreserveAspectFit
|
tint: M.Theme.base05
|
||||||
}
|
}
|
||||||
|
|
||||||
HoverHandler {
|
HoverHandler {
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,7 @@ PanelWindow {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
WlrLayershell.layer: WlrLayer.Overlay
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
// -1 = ignore exclusive zones so this covers the full screen including the bar
|
WlrLayershell.exclusiveZone: 0
|
||||||
WlrLayershell.exclusiveZone: -1
|
|
||||||
WlrLayershell.namespace: "nova-traymenu"
|
WlrLayershell.namespace: "nova-traymenu"
|
||||||
|
|
||||||
anchors.top: true
|
anchors.top: true
|
||||||
|
|
@ -46,7 +45,7 @@ PanelWindow {
|
||||||
Math.round(menuWindow.anchorX - menuStack.width / 2),
|
Math.round(menuWindow.anchorX - menuStack.width / 2),
|
||||||
menuWindow.width - menuStack.width
|
menuWindow.width - menuStack.width
|
||||||
))
|
))
|
||||||
y: M.Theme.barHeight
|
y: 0
|
||||||
|
|
||||||
width: menuStack.width
|
width: menuStack.width
|
||||||
height: menuStack.height
|
height: menuStack.height
|
||||||
|
|
@ -59,7 +58,7 @@ PanelWindow {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: M.Theme.base01
|
color: M.Theme.base01
|
||||||
opacity: M.Theme.barOpacity
|
opacity: Math.max(M.Theme.barOpacity, 0.85)
|
||||||
topLeftRadius: 0
|
topLeftRadius: 0
|
||||||
topRightRadius: 0
|
topRightRadius: 0
|
||||||
bottomLeftRadius: M.Theme.radius
|
bottomLeftRadius: M.Theme.radius
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ Clock 1.0 Clock.qml
|
||||||
Volume 1.0 Volume.qml
|
Volume 1.0 Volume.qml
|
||||||
Tray 1.0 Tray.qml
|
Tray 1.0 Tray.qml
|
||||||
TrayMenu 1.0 TrayMenu.qml
|
TrayMenu 1.0 TrayMenu.qml
|
||||||
|
ThemedIcon 1.0 ThemedIcon.qml
|
||||||
Battery 1.0 Battery.qml
|
Battery 1.0 Battery.qml
|
||||||
Mpris 1.0 Mpris.qml
|
Mpris 1.0 Mpris.qml
|
||||||
Network 1.0 Network.qml
|
Network 1.0 Network.qml
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue