From 3514345b68bf6891fbf77e139b0fed65c5b4ee09 Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 9 Sep 2020 23:06:25 +0300 Subject: [PATCH] fix text config buttons color the check was incorrect, it is windowTEXT, not background --- src/tools/text/textconfig.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tools/text/textconfig.cpp b/src/tools/text/textconfig.cpp index 2d096e55..f4eb31c2 100644 --- a/src/tools/text/textconfig.cpp +++ b/src/tools/text/textconfig.cpp @@ -40,10 +40,9 @@ TextConfig::TextConfig(QWidget* parent) int index = fontsCB->findText(font().family()); fontsCB->setCurrentIndex(index); - QColor bgColor(palette().windowText().color()); - QString iconPrefix = ColorUtils::colorIsDark(bgColor) - ? PathInfo::whiteIconPath() - : PathInfo::blackIconPath(); + QString iconPrefix = ColorUtils::colorIsDark(palette().windowText().color()) + ? PathInfo::blackIconPath() + : PathInfo::whiteIconPath(); m_strikeOutButton = new QPushButton( QIcon(iconPrefix + "format_strikethrough.svg"), QLatin1String(""));