From 9a0d71fcf12ad908b2670618f4e7f09bc78f0463 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 27 Aug 2021 23:02:44 +0200 Subject: [PATCH] Fix top panel on dark themes Use PlasmaCore.IconItem rather than Kirigami.Icon --- .../package/contents/ui/quicksettings/BrightnessItem.qml | 9 +++------ .../panel/package/contents/ui/quicksettings/Delegate.qml | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/containments/panel/package/contents/ui/quicksettings/BrightnessItem.qml b/containments/panel/package/contents/ui/quicksettings/BrightnessItem.qml index 15d49f3b..6ced2915 100644 --- a/containments/panel/package/contents/ui/quicksettings/BrightnessItem.qml +++ b/containments/panel/package/contents/ui/quicksettings/BrightnessItem.qml @@ -65,9 +65,8 @@ Item { anchors.left: parent.left 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) diff --git a/containments/panel/package/contents/ui/quicksettings/Delegate.qml b/containments/panel/package/contents/ui/quicksettings/Delegate.qml index 6105e26b..18599cbc 100644 --- a/containments/panel/package/contents/ui/quicksettings/Delegate.qml +++ b/containments/panel/package/contents/ui/quicksettings/Delegate.qml @@ -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