diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-02-17 01:16:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-02-17 01:16:38 +0000 |
commit | 53cba99042fa967e2a93da9f8db806fe2d035543 (patch) | |
tree | 9780d3b87dfc6bdebc6b7b7d15af1ecb813c6853 /kde-apps/konsole/files | |
parent | 71deace00d1a2b091313fe137ab7092418c6f87c (diff) |
gentoo resync : 17.02.2020
Diffstat (limited to 'kde-apps/konsole/files')
-rw-r--r-- | kde-apps/konsole/files/konsole-19.12.2-darkbackground-detect.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/kde-apps/konsole/files/konsole-19.12.2-darkbackground-detect.patch b/kde-apps/konsole/files/konsole-19.12.2-darkbackground-detect.patch new file mode 100644 index 000000000000..990bad142c3d --- /dev/null +++ b/kde-apps/konsole/files/konsole-19.12.2-darkbackground-detect.patch @@ -0,0 +1,27 @@ +From e5b2ada1a6f06e0eea76af1f26ff4c0c4aad8497 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Manuel=20R=C3=BCger?= <manuel@rueg.eu> +Date: Thu, 23 Jan 2020 11:00:06 +0100 +Subject: ColorScheme: Fix DarkBackground Detection + +Luminance is a value between 0 and 100. + +https://bugs.kde.org/show_bug.cgi?id=416638 +--- + src/ColorScheme.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/ColorScheme.cpp b/src/ColorScheme.cpp +index 1693c22..5d6b408 100644 +--- a/src/ColorScheme.cpp ++++ b/src/ColorScheme.cpp +@@ -403,7 +403,7 @@ bool ColorScheme::hasDarkBackground() const + const double g = backgroundColor().greenF(); + const double b = backgroundColor().blueF(); + rgb2hsluv(r, g, b, &h, &s, &l); +- return l < 0.5; ++ return l < 50; + } + + void ColorScheme::setOpacity(qreal opacity) +-- +cgit v1.1 |