Fix widget foreground when forcing the background colour

This is  required so as  to maintain good contrast  between foreground
and background  elements when  the widget  colour palette  is changed,
e.g. when using a lights out style sheet.
This commit is contained in:
Bill Somerville 2020-10-01 12:58:09 +01:00
parent 5cc48497b8
commit 0c0adbdaab
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -6675,8 +6675,8 @@ void MainWindow::chk_FST4_freq_range()
int diff=ui->sbF_High->value() - ui->sbF_Low->value();
if(diff<100 or diff>maxDiff) {
ui->sbF_Low->setStyleSheet("QSpinBox { background-color: red; }");
ui->sbF_High->setStyleSheet("QSpinBox { background-color: red; }");
ui->sbF_Low->setStyleSheet("QSpinBox { color: white; background-color: red; }");
ui->sbF_High->setStyleSheet("QSpinBox { color: white; background-color: red; }");
} else {
ui->sbF_Low->setStyleSheet("");
ui->sbF_High->setStyleSheet("");