Fix top panel on dark themes

Use PlasmaCore.IconItem rather than Kirigami.Icon
This commit is contained in:
Aleix Pol 2021-08-27 23:02:44 +02:00 committed by Aleix Pol Gonzalez
parent 60f48d729c
commit 9a0d71fcf1
2 changed files with 4 additions and 8 deletions

View file

@ -66,8 +66,7 @@ Item {
anchors.right: parent.right
anchors.top: parent.top
Kirigami.Icon {
color: PlasmaCore.Theme.textColor
PlasmaCore.IconItem {
Layout.alignment: Qt.AlignVCenter
Layout.leftMargin: PlasmaCore.Units.smallSpacing
Layout.preferredWidth: Math.round(PlasmaCore.Units.gridUnit * 1.75)
@ -84,9 +83,7 @@ Item {
to: maximumScreenBrightness
}
Kirigami.Icon {
color: PlasmaCore.Theme.textColor
isMask: true
PlasmaCore.IconItem {
Layout.alignment: Qt.AlignVCenter
Layout.rightMargin: PlasmaCore.Units.smallSpacing
Layout.preferredWidth: Math.round(PlasmaCore.Units.gridUnit * 1.75)

View file

@ -48,9 +48,8 @@ ColumnLayout {
}
}
Kirigami.Icon {
PlasmaCore.IconItem {
id: icon
color: PlasmaCore.Theme.textColor
anchors.centerIn: parent
implicitWidth: Math.round(parent.width * 0.6)
implicitHeight: width