From ca6188bf46adf9c6fbb29b2138c0df81bc21ce16 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos <mvourlakos@gmail.com> Date: Thu, 5 Apr 2018 21:31:49 +0300 Subject: [PATCH] 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. --- containment/package/contents/ui/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containment/package/contents/ui/main.qml b/containment/package/contents/ui/main.qml index dcce83b77..b5866149d 100644 --- a/containment/package/contents/ui/main.qml +++ b/containment/package/contents/ui/main.qml @@ -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{}