Commit 099e925c authored by Nicolas Fella's avatar Nicolas Fella Committed by Nate Graham

[kcm] Read text color from proper theme

theme refers to the plasma theme but since we're in a KCM we need the application theme

This results in the color being off when using mixed Plasma/apps themes


(cherry picked from commit 04ebefd2)
parent 18422620
......@@ -22,6 +22,7 @@
import QtQuick 2.4
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.5 as QQC2
import org.kde.kirigami 2.5 as Kirigami
import org.kde.plasma.private.volume 0.1
......@@ -79,11 +80,11 @@ RowLayout {
// and plasma-workspace:OSDItem.qml
color: {
if (displayValue <= 100) {
return theme.textColor
return Kirigami.Theme.textColor
} else if (displayValue > 100 && displayValue <= 125) {
return theme.neutralTextColor
return Kirigami.Theme.neutralTextColor
} else {
return theme.negativeTextColor
return Kirigami.Theme.negativeTextColor
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment