fix text config buttons color

the check was incorrect, it is windowTEXT, not background
This commit is contained in:
Alex P
2020-09-09 23:06:25 +03:00
committed by borgmanJeremy
parent 69b4afa394
commit 3514345b68

View File

@@ -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(""));