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
+2 -2
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("");