Icons colored black in dark theme
Not sure if it belongs here or KIconThemes. When using org.kde.breeze style with a trivial application in Gnome or Sailfish OS, I get icons shown in black.
To reproduce:
- create kdeglobals in KDE environment with a dark theme (kdeglobals attached) kdeglobals
- use that in Sailfish OS or GNOME
- run a program with qmlscene5:
QT_QUICK_CONTROLS_STYLE=org.kde.breeze QT_QPA_SYSTEM_ICON_THEME=breeze-dark QT_LOGGING_RULES="kf.*=true" qmlscene5 Test.qml
QML:
import QtQuick 2.15
import QtQuick.Controls 2.15
import org.kde.kirigami 2.7 as Kirigami
Kirigami.ApplicationWindow {
pageStack.initialPage: Kirigami.Page {
Kirigami.Icon {
anchors.centerIn: parent
source: "document-save"
}
Label {
text: "HELLO"
}
}
}
Running the same with QT_QUICK_CONTROLS_STYLE=Plasma
colors icon in the center correctly. Running the same code in KDE environment, such as PostmarketOS Plasma Mobile, also shows icon correctly. For some reason, in GNOME and SFOS, Kirigami.Icon fails to be colored.
When adding debug printout in PlasmaDesktopTheme::iconFromTheme, shows that its called with
Loading icon: "go-next-symbolic" QColor(ARGB 1, 0.988235, 0.988235, 0.988235)
color set
Loading icon: "open-menu-symbolic" QColor(ARGB 0, 0, 0, 0)
Loading icon: "go-previous-symbolic" QColor(ARGB 0, 0, 0, 0)
Loading icon: "go-next-symbolic" QColor(ARGB 0, 0, 0, 0)
Loading icon: "open-menu-symbolic" QColor(ARGB 0, 0, 0, 0)
Loading icon: "document-save" QColor(ARGB 0, 0, 0, 0)
Loading icon: "go-up" QColor(ARGB 0, 0, 0, 0)