From ab787e997c927bf8e2684b2e1ac667a57f225102 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 24 Nov 2018 04:18:20 +0100 Subject: Dark theme GUI changes Add icons better suited for dark themes and don't draw an ellipse around the letter when calling Helper::icon and use the theme's text color to better match the desktop theme. Just be a good tenant and respect the user's choices where applicable. --- randomtab.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'randomtab.cpp') diff --git a/randomtab.cpp b/randomtab.cpp index 0b5f8d9..292ae98 100644 --- a/randomtab.cpp +++ b/randomtab.cpp @@ -101,9 +101,9 @@ void RandomTab::setupGui(){ connect(refreshB, &QPushButton::clicked, this, &RandomTab::refreshComboboxes); QPushButton *clearB = new QPushButton(QIcon(":/delete.png"), tr("Clear")); connect(clearB, &QPushButton::clicked, this, &RandomTab::clearAll); - QPushButton *goB = new QPushButton(QIcon(":/huge_bra.png"), tr("Go!")); + QPushButton *goB = new QPushButton(QIcon(":/huge_bra_light.png"), tr("Go!")); connect(goB, &QPushButton::clicked, this, &RandomTab::select); - QAction *goA = new QAction(QIcon(":/huge_bra.png"), tr("Go!"), this); + QAction *goA = new QAction(QIcon(":/huge_bra_light.png"), tr("Go!"), this); connect(goA, &QAction::triggered, this, &RandomTab::select); QGridLayout *actionL = new QGridLayout; actionL->addWidget(clearB, 0, 0); @@ -377,7 +377,7 @@ void RandomTab::select(){ fData << item; } fData[0]->setText(randomFilesQ.value(0).toString()); - fData[0]->setIcon(QIcon(":/huge_bra.png")); + fData[0]->setIcon(QIcon(":/huge_bra_light.png")); fData[1]->setTextAlignment(Qt::AlignRight | Qt::AlignVCenter); qint64 dbSize = randomFilesQ.value(1).toLongLong(); double mbSize = dbSize / 1024.0 / 1024.0; -- cgit v1.2.3-70-g09d2