Use grey text for disabled widgets

This commit is contained in:
Jon Beniston 2022-09-06 10:27:58 +01:00
parent 3bfca073fd
commit 5eee2f01ba
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo
palette.setColor(QPalette::LinkVisited, QColor(0,0xa0,0xa0).lighter());
palette.setColor(QPalette::Highlight, QColor(0xff, 0x8c, 0x00));
palette.setColor(QPalette::HighlightedText, Qt::black);
palette.setColor(QPalette::Disabled, QPalette::WindowText, Qt::gray);
palette.setColor(QPalette::Disabled, QPalette::Text, Qt::gray);
palette.setColor(QPalette::Disabled, QPalette::ButtonText, Qt::gray);
qApp->setPalette(palette);
#if 0