1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-24 18:03:53 +03:00

remove transparency from Colorizer colors

--the plasma theme may have set for textColor
and backgroundColor, colors with transparency.
This can mess up the "Improve Visibility"
feature.
This commit is contained in:
Michail Vourlakos 2018-04-05 21:31:49 +03:00
parent 2967eea11a
commit ca6188bf46

View File

@ -1768,11 +1768,11 @@ DragDrop.DropArea {
var backAbs = Math.abs(themeBackgroundColorLuma - currentBackgroundLuminas);
if (textAbs > backAbs) {
return theme.textColor;
return Qt.rgba(theme.textColor.r, theme.textColor.g, theme.textColor.b , 1); //remove any transparency
}
}
return theme.backgroundColor;
return Qt.rgba(theme.backgroundColor.r, theme.backgroundColor.g, theme.backgroundColor.b, 1); //remove any transparency
}
sourceComponent: ColorizerManager{}