fix: update Sound Input, Wi-Fi Networks, and Bluetooth device highlights to follow Theme.accent instead of hardcoded neon green
This commit is contained in:
parent
9f42bd9fc5
commit
59ce4ec1ac
@ -1189,8 +1189,8 @@ GlassPanel {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 28
|
Layout.preferredHeight: 28
|
||||||
radius: 5
|
radius: 5
|
||||||
color: Qt.rgba(80/255, 250/255, 123/255, 0.15)
|
color: Qt.rgba(Theme.accent.r, Theme.accent.g, Theme.accent.b, 0.18)
|
||||||
border.color: Theme.green
|
border.color: Theme.accent
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
@ -1199,11 +1199,11 @@ GlassPanel {
|
|||||||
anchors.rightMargin: 8
|
anchors.rightMargin: 8
|
||||||
spacing: 6
|
spacing: 6
|
||||||
|
|
||||||
Rectangle { width: 6; height: 6; radius: 3; color: Theme.green }
|
Rectangle { width: 6; height: 6; radius: 3; color: Theme.accent }
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.name
|
text: modelData.name
|
||||||
color: Theme.green
|
color: Theme.accent
|
||||||
font.pixelSize: 10
|
font.pixelSize: 10
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@ -1551,8 +1551,8 @@ GlassPanel {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 24
|
Layout.preferredHeight: 24
|
||||||
radius: 4
|
radius: 4
|
||||||
color: modelData.isActive ? (Theme.isDark ? Qt.rgba(80/255, 250/255, 123/255, 0.15) : Qt.rgba(80/255, 250/255, 123/255, 0.22)) : (srcItemMouse.containsMouse ? Theme.surface : "transparent")
|
color: modelData.isActive ? Qt.rgba(Theme.accent.r, Theme.accent.g, Theme.accent.b, 0.18) : (srcItemMouse.containsMouse ? Theme.surface : "transparent")
|
||||||
border.color: modelData.isActive ? (Theme.isDark ? Theme.green : "#15803d") : "transparent"
|
border.color: modelData.isActive ? Theme.accent : "transparent"
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
@ -1563,12 +1563,12 @@ GlassPanel {
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 6; height: 6; radius: 3
|
width: 6; height: 6; radius: 3
|
||||||
color: modelData.isActive ? (Theme.isDark ? Theme.green : "#15803d") : Theme.comment
|
color: modelData.isActive ? Theme.accent : Theme.comment
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.name
|
text: modelData.name
|
||||||
color: modelData.isActive ? (Theme.isDark ? Theme.green : "#15803d") : Theme.fg
|
color: modelData.isActive ? Theme.accent : Theme.fg
|
||||||
font.pixelSize: 10
|
font.pixelSize: 10
|
||||||
font.weight: modelData.isActive ? Font.Bold : Font.Normal
|
font.weight: modelData.isActive ? Font.Bold : Font.Normal
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@ -2120,7 +2120,9 @@ GlassPanel {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 26
|
Layout.preferredHeight: 26
|
||||||
radius: 5
|
radius: 5
|
||||||
color: modelData.inUse ? Qt.rgba(80/255, 250/255, 123/255, 0.15) : (netItemMouse.containsMouse ? Theme.currentLine : "transparent")
|
color: modelData.inUse ? Qt.rgba(Theme.accent.r, Theme.accent.g, Theme.accent.b, 0.18) : (netItemMouse.containsMouse ? Theme.currentLine : "transparent")
|
||||||
|
border.color: modelData.inUse ? Theme.accent : "transparent"
|
||||||
|
border.width: 1
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@ -2137,7 +2139,7 @@ GlassPanel {
|
|||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.ssid
|
text: modelData.ssid
|
||||||
color: modelData.inUse ? Theme.green : Theme.fg
|
color: modelData.inUse ? Theme.accent : Theme.fg
|
||||||
font.pixelSize: 10
|
font.pixelSize: 10
|
||||||
font.weight: modelData.inUse ? Font.Bold : Font.Normal
|
font.weight: modelData.inUse ? Font.Bold : Font.Normal
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@ -2146,7 +2148,7 @@ GlassPanel {
|
|||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.inUse ? "Connected" : modelData.signal + "%"
|
text: modelData.inUse ? "Connected" : modelData.signal + "%"
|
||||||
color: modelData.inUse ? Theme.green : Theme.comment
|
color: modelData.inUse ? Theme.accent : Theme.comment
|
||||||
font.pixelSize: 9
|
font.pixelSize: 9
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user