mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-06 00:54:00 +00:00
fix text config buttons color
the check was incorrect, it is windowTEXT, not background
This commit is contained in:
@@ -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(""));
|
||||
|
||||
Reference in New Issue
Block a user