mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-13 03:08:49 -04:00
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:
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user