From 5c9aee4b3f12234a8c2e7eb22a1649231fd78245 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Thu, 20 Dec 2018 20:55:55 -0500 Subject: [PATCH] Fixed #51: lighter red for higher contrast --- mainwindow.cpp | 12 ++++++------ mainwindow.ui | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 854cbe0..a733c16 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3016,7 +3016,7 @@ void MainWindow::createStatusBar() //createStatusBar { tx_status_label.setAlignment (Qt::AlignHCenter); 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); statusBar()->addWidget (&tx_status_label); @@ -4757,11 +4757,11 @@ void MainWindow::guiUpdate() m_nsendingsh=0; if(s[4]==64) m_nsendingsh=1; 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) { - tx_status_label.setStyleSheet("QLabel{background-color: #ff0000}"); + tx_status_label.setStyleSheet("QLabel{background-color: #ff2222; color:#000; }"); } else { - tx_status_label.setStyleSheet("QLabel{background-color: #ff0000}"); + tx_status_label.setStyleSheet("QLabel{background-color: #ff2222; color:#000; }"); } if(m_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.setText ("Inactive watchdog"); } else { - tx_status_label.setStyleSheet("QLabel{background-color: #00ff00}"); + tx_status_label.setStyleSheet("QLabel{background-color: #22ff22}"); QString t; t="Receiving"; if(m_mode=="MSK144") { 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); } tx_status_label.setText (t); diff --git a/mainwindow.ui b/mainwindow.ui index 4d30dba..c647882 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -591,7 +591,7 @@ QPushButton:checked { } QPushButton:checked { - background-color:#00ff00; + background-color:#22FF22; } @@ -701,7 +701,7 @@ QPushButton:checked { } QPushButton:checked { - background-color:#ff0000; + background-color:#FF2222; } @@ -1371,12 +1371,12 @@ QTextEdit[transmitting="true"] { QPushButton:checked { -background-color: #00ff00; -color:#555; +background-color: #22FF22; +color:#222; } QPushButton[transmitting="true"]{ -background:#ff0000; -color:#555; +background:#FF2222; +color:#222; } @@ -1800,7 +1800,7 @@ QPushButton[state="warning"] { background-color: orange; } QPushButton[state="ok"] { -background-color: #00ff00; +background-color: #22ff22; }