From 7fd099fb737d625befa6f04dcfad1f6c74705e14 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 23 Nov 2018 14:17:09 +0100 Subject: Use palette colors where applicable Don't assume we know what color ought to use. Ask the palette where applicable, but keep the modified configuration options. --- randomtab.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'randomtab.cpp') diff --git a/randomtab.cpp b/randomtab.cpp index 93113b7..2907d86 100644 --- a/randomtab.cpp +++ b/randomtab.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -130,7 +131,8 @@ void RandomTab::setupGui(){ mContextMenu->addAction(goA); QGroupBox *miscBox = new QGroupBox(tr("Misc.")); - QPushButton *miscB = new QPushButton(Helper::icon(QColor(0, 0, 0, 0), Qt::black, QChar(0x26A4), true, false), tr("Global...")); + QColor brushColor = qApp->palette().color(QPalette::Text); + QPushButton *miscB = new QPushButton(Helper::icon(QColor(0, 0, 0, 0), brushColor, QChar(0x26A4), true, false), tr("Global...")); miscB->setMenu(SmGlobals::instance()->globalAction()->menu()); QHBoxLayout *miscL = new QHBoxLayout; miscL->addWidget(miscB); -- cgit v1.2.3-70-g09d2