Fixed #51: lighter red for higher contrast

This commit is contained in:
Jordan Sherer 2018-12-20 20:55:55 -05:00
parent db5969fdc4
commit 5c9aee4b3f
2 changed files with 13 additions and 13 deletions

View File

@ -3016,7 +3016,7 @@ void MainWindow::createStatusBar() //createStatusBar
{ {
tx_status_label.setAlignment (Qt::AlignHCenter); tx_status_label.setAlignment (Qt::AlignHCenter);
tx_status_label.setMinimumSize (QSize {150, 18}); tx_status_label.setMinimumSize (QSize {150, 18});
tx_status_label.setStyleSheet ("QLabel{background-color: #00ff00}"); tx_status_label.setStyleSheet ("QLabel{background-color: #22ff22}");
tx_status_label.setFrameStyle (QFrame::Panel | QFrame::Sunken); tx_status_label.setFrameStyle (QFrame::Panel | QFrame::Sunken);
statusBar()->addWidget (&tx_status_label); statusBar()->addWidget (&tx_status_label);
@ -4757,11 +4757,11 @@ void MainWindow::guiUpdate()
m_nsendingsh=0; m_nsendingsh=0;
if(s[4]==64) m_nsendingsh=1; if(s[4]==64) m_nsendingsh=1;
if(m_nsendingsh==1 or m_currentMessageType==7) { if(m_nsendingsh==1 or m_currentMessageType==7) {
tx_status_label.setStyleSheet("QLabel{background-color: #ff0000}"); tx_status_label.setStyleSheet("QLabel{background-color: #ff2222; color:#000; }");
} else if(m_nsendingsh==-1 or m_currentMessageType==6) { } else if(m_nsendingsh==-1 or m_currentMessageType==6) {
tx_status_label.setStyleSheet("QLabel{background-color: #ff0000}"); tx_status_label.setStyleSheet("QLabel{background-color: #ff2222; color:#000; }");
} else { } else {
tx_status_label.setStyleSheet("QLabel{background-color: #ff0000}"); tx_status_label.setStyleSheet("QLabel{background-color: #ff2222; color:#000; }");
} }
if(m_tune) { if(m_tune) {
tx_status_label.setText("Tx: TUNE"); tx_status_label.setText("Tx: TUNE");
@ -4780,12 +4780,12 @@ void MainWindow::guiUpdate()
tx_status_label.setStyleSheet ("QLabel{background-color: #000000; color:#ffffff}"); tx_status_label.setStyleSheet ("QLabel{background-color: #000000; color:#ffffff}");
tx_status_label.setText ("Inactive watchdog"); tx_status_label.setText ("Inactive watchdog");
} else { } else {
tx_status_label.setStyleSheet("QLabel{background-color: #00ff00}"); tx_status_label.setStyleSheet("QLabel{background-color: #22ff22}");
QString t; QString t;
t="Receiving"; t="Receiving";
if(m_mode=="MSK144") { if(m_mode=="MSK144") {
int npct=int(100.0*m_fCPUmskrtd/0.298667); int npct=int(100.0*m_fCPUmskrtd/0.298667);
if(npct>90) tx_status_label.setStyleSheet("QLabel{background-color: #ff0000}"); if(npct>90) tx_status_label.setStyleSheet("QLabel{background-color: #ff2222; color:#000; }");
t.sprintf("Receiving %2d%%",npct); t.sprintf("Receiving %2d%%",npct);
} }
tx_status_label.setText (t); tx_status_label.setText (t);

View File

@ -591,7 +591,7 @@ QPushButton:checked {
} }
QPushButton:checked { QPushButton:checked {
background-color:#00ff00; background-color:#22FF22;
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">
@ -701,7 +701,7 @@ QPushButton:checked {
} }
QPushButton:checked { QPushButton:checked {
background-color:#ff0000; background-color:#FF2222;
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">
@ -1371,12 +1371,12 @@ QTextEdit[transmitting=&quot;true&quot;] {
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">QPushButton:checked { <string notr="true">QPushButton:checked {
background-color: #00ff00; background-color: #22FF22;
color:#555; color:#222;
} }
QPushButton[transmitting=&quot;true&quot;]{ QPushButton[transmitting=&quot;true&quot;]{
background:#ff0000; background:#FF2222;
color:#555; color:#222;
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">
@ -1800,7 +1800,7 @@ QPushButton[state=&quot;warning&quot;] {
background-color: orange; background-color: orange;
} }
QPushButton[state=&quot;ok&quot;] { QPushButton[state=&quot;ok&quot;] {
background-color: #00ff00; background-color: #22ff22;
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">