mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Fix top panel on dark themes
Use PlasmaCore.IconItem rather than Kirigami.Icon
This commit is contained in:
parent
60f48d729c
commit
9a0d71fcf1
2 changed files with 4 additions and 8 deletions
|
|
@ -66,8 +66,7 @@ Item {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
||||||
Kirigami.Icon {
|
PlasmaCore.IconItem {
|
||||||
color: PlasmaCore.Theme.textColor
|
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
Layout.leftMargin: PlasmaCore.Units.smallSpacing
|
Layout.leftMargin: PlasmaCore.Units.smallSpacing
|
||||||
Layout.preferredWidth: Math.round(PlasmaCore.Units.gridUnit * 1.75)
|
Layout.preferredWidth: Math.round(PlasmaCore.Units.gridUnit * 1.75)
|
||||||
|
|
@ -84,9 +83,7 @@ Item {
|
||||||
to: maximumScreenBrightness
|
to: maximumScreenBrightness
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.Icon {
|
PlasmaCore.IconItem {
|
||||||
color: PlasmaCore.Theme.textColor
|
|
||||||
isMask: true
|
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
Layout.rightMargin: PlasmaCore.Units.smallSpacing
|
Layout.rightMargin: PlasmaCore.Units.smallSpacing
|
||||||
Layout.preferredWidth: Math.round(PlasmaCore.Units.gridUnit * 1.75)
|
Layout.preferredWidth: Math.round(PlasmaCore.Units.gridUnit * 1.75)
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,8 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.Icon {
|
PlasmaCore.IconItem {
|
||||||
id: icon
|
id: icon
|
||||||
color: PlasmaCore.Theme.textColor
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
implicitWidth: Math.round(parent.width * 0.6)
|
implicitWidth: Math.round(parent.width * 0.6)
|
||||||
implicitHeight: width
|
implicitHeight: width
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue