[Libreoffice-commits] core.git: include/tools
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 17 18:45:48 UTC 2021
include/tools/color.hxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 3620fda235e8b02dea8e225215d53f4c64d1348e
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Jun 17 13:54:37 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jun 17 20:44:53 2021 +0200
tweak tools::Color::IsDark so it triggers on Ubuntu
in dark mode, otherwise some of the UI elements e.g. the start centre
brand image, do not display the right version
Change-Id: I3bfdc597324b564a9dbd47174332bb5f21b6a052
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117383
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/include/tools/color.hxx b/include/tools/color.hxx
index ac361474c228..4c75f5852aab 100644
--- a/include/tools/color.hxx
+++ b/include/tools/color.hxx
@@ -311,7 +311,8 @@ public:
*/
bool IsDark() const
{
- return GetLuminance() <= 60;
+ // 62 is the number that means it also triggers on Ubuntu in dark mode
+ return GetLuminance() <= 62;
}
/** Comparison with luminance thresholds.
More information about the Libreoffice-commits
mailing list