1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-23 13:33:50 +03:00

provide default scheme file for !shown cases

--when the colorizer informs the applets to paint
themselves based on the current plasma theme some
of them (e.g. Window Buttons) may still need access
to that color palette through the schemeFile variable.
To support also this case Latte provides the default
theme scheme file at all cases.
This commit is contained in:
Michail Vourlakos 2018-12-09 15:35:25 +02:00
parent c81e97f24d
commit 50ea2e1f8b

View File

@ -87,8 +87,8 @@ Loader{
readonly property color buttonFocusColor: theme.buttonFocusColor
readonly property string scheme: {
if (applyTheme===theme) {
return applyTheme.defaultTheme.schemeFile;
if (applyTheme===theme || !mustBeShown) {
return themeExtended.defaultTheme.schemeFile;
}
return applyTheme.schemeFile;