mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05: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:
parent
5cc48497b8
commit
0c0adbdaab
@ -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("");
|
||||
|
Loading…
Reference in New Issue
Block a user