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.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)

View file

@ -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