include/tools/color.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 3620fda235e8b02dea8e225215d53f4c64d1348e Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Jun 17 13:54:37 2021 +0200 Commit: Noel Grandin <noel.gran...@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.gran...@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. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits