From f2101a32960f7cc88d29f58420b4e9ff02e9cb55 Mon Sep 17 00:00:00 2001 From: hexyoungs Date: Sun, 27 Sep 2020 22:42:36 +0800 Subject: [PATCH] fix: #994 --- src/utils/colorutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/colorutils.cpp b/src/utils/colorutils.cpp index 8ba9f8ed..225c2e4b 100644 --- a/src/utils/colorutils.cpp +++ b/src/utils/colorutils.cpp @@ -28,7 +28,7 @@ bool ColorUtils::colorIsDark(const QColor& c) if (getColorLuma(c) <= 0.60) { isWhite = true; } - return isWhite; + return !isWhite; } QColor ColorUtils::contrastColor(const QColor& c)