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.
pull/2/head
Michail Vourlakos 7 years ago
parent 2967eea11a
commit ca6188bf46

@ -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{}

Loading…
Cancel
Save