Use a better colour for labels in the edit tag dialog on dark themes. Fixes #4377

This commit is contained in:
David Sansome 2014-06-07 12:48:32 +10:00
parent 53be1e1f65
commit bfc941bb7f
1 changed files with 2 additions and 2 deletions

View File

@ -108,10 +108,10 @@ EditTagDialog::EditTagDialog(Application* app, QWidget* parent)
// Set the colour of all the labels on the summary page
const bool light = palette().color(QPalette::Base).value() > 128;
const QColor color = palette().color(QPalette::Dark);
const QColor color = palette().color(QPalette::WindowText);
QPalette summary_label_palette(palette());
summary_label_palette.setColor(
QPalette::WindowText, light ? color.darker(150) : color.lighter(125));
QPalette::WindowText, light ? color.lighter(150) : color.darker(150));
for (QLabel* label : ui_->summary_tab->findChildren<QLabel*>()) {
if (label->property("field_label").toBool()) {