mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-17 09:05:19 -04:00
Add a color gradient for the Max Drift combo box.
This commit is contained in:
parent
fd0336f234
commit
f3be4b47fa
@ -1121,9 +1121,10 @@ void MainWindow::on_actionAlso_Q65_30x_toggled(bool b)
|
|||||||
|
|
||||||
void MainWindow::on_sbMaxDrift_valueChanged(int n)
|
void MainWindow::on_sbMaxDrift_valueChanged(int n)
|
||||||
{
|
{
|
||||||
if(n>0) {
|
if(n==0) ui->sbMaxDrift->setStyleSheet("");
|
||||||
ui->sbMaxDrift->setStyleSheet("QSpinBox { background-color: #ff6666; }");
|
if(n>0 and n<=5) ui->sbMaxDrift->setStyleSheet("QSpinBox { background-color: #ffff82; }");
|
||||||
} else {
|
if(n>5 and n<=20) ui->sbMaxDrift->setStyleSheet("QSpinBox { background-color: #ffff00; }");
|
||||||
ui->sbMaxDrift->setStyleSheet("");
|
if(n>20 and n<=30) ui->sbMaxDrift->setStyleSheet("QSpinBox { background-color: #ffb828; }");
|
||||||
}
|
if(n>30 and n<=40) ui->sbMaxDrift->setStyleSheet("QSpinBox { background-color: #ffc0cb; }");
|
||||||
|
if(n>40) ui->sbMaxDrift->setStyleSheet("QSpinBox { background-color: #ff8585; }");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user