From 26af3014a520c707ab252fe81f3b1ff2ac197dc8 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 22 Nov 2018 17:03:59 +0100 Subject: [PATCH] SoapySDR support: make checkboxes more visible --- plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp | 3 +++ plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp | 3 +++ sdrgui/soapygui/arginfogui.ui | 4 ++++ sdrgui/soapygui/complexfactorgui.ui | 6 +++++- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp index cdd528ce7..07d67a66a 100644 --- a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp +++ b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp @@ -225,6 +225,7 @@ void SoapySDROutputGui::createGlobalGainControl() { m_autoGain = new QCheckBox(this); m_autoGain->setText(QString("AGC")); + m_autoGain->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}"); layout->addWidget(m_autoGain); connect(m_autoGain, SIGNAL(toggled(bool)), this, SLOT(autoGainChanged(bool))); @@ -280,6 +281,7 @@ void SoapySDROutputGui::createCorrectionsControl() m_autoDCCorrection = new QCheckBox(this); m_autoDCCorrection->setText(QString("Auto DC corr")); m_autoDCCorrection->setToolTip(QString("Automatic hardware DC offset correction")); + m_autoDCCorrection->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}"); layout->addWidget(m_autoDCCorrection); connect(m_autoDCCorrection, SIGNAL(toggled(bool)), this, SLOT(autoDCCorrectionChanged(bool))); @@ -304,6 +306,7 @@ void SoapySDROutputGui::createCorrectionsControl() m_autoIQCorrection = new QCheckBox(this); m_autoIQCorrection->setText(QString("Auto IQ corr")); m_autoIQCorrection->setToolTip(QString("Automatic hardware IQ imbalance correction")); + m_autoIQCorrection->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}"); layout->addWidget(m_autoIQCorrection); connect(m_autoIQCorrection, SIGNAL(toggled(bool)), this, SLOT(autoIQCorrectionChanged(bool))); diff --git a/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp b/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp index b96f3bb71..baac02b5a 100644 --- a/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp +++ b/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp @@ -226,6 +226,7 @@ void SoapySDRInputGui::createGlobalGainControl() { m_autoGain = new QCheckBox(this); m_autoGain->setText(QString("AGC")); + m_autoGain->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}"); layout->addWidget(m_autoGain); connect(m_autoGain, SIGNAL(toggled(bool)), this, SLOT(autoGainChanged(bool))); @@ -282,6 +283,7 @@ void SoapySDRInputGui::createCorrectionsControl() m_autoDCCorrection = new QCheckBox(this); m_autoDCCorrection->setText(QString("Auto DC corr")); m_autoDCCorrection->setToolTip(QString("Automatic hardware DC offset correction")); + m_autoDCCorrection->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}"); layout->addWidget(m_autoDCCorrection); connect(m_autoDCCorrection, SIGNAL(toggled(bool)), this, SLOT(autoDCCorrectionChanged(bool))); @@ -307,6 +309,7 @@ void SoapySDRInputGui::createCorrectionsControl() m_autoIQCorrection = new QCheckBox(this); m_autoIQCorrection->setText(QString("Auto IQ corr")); m_autoIQCorrection->setToolTip(QString("Automatic hardware IQ imbalance correction")); + m_autoIQCorrection->setStyleSheet("QCheckBox::indicator::unchecked {background: rgb(79,79,79);} QCheckBox::indicator::checked {background: rgb(255, 157, 38);}"); layout->addWidget(m_autoIQCorrection); connect(m_autoIQCorrection, SIGNAL(toggled(bool)), this, SLOT(autoIQCorrectionChanged(bool))); diff --git a/sdrgui/soapygui/arginfogui.ui b/sdrgui/soapygui/arginfogui.ui index 62fd6dd1f..523d6e140 100644 --- a/sdrgui/soapygui/arginfogui.ui +++ b/sdrgui/soapygui/arginfogui.ui @@ -50,6 +50,10 @@ + + QCheckBox::indicator::unchecked {background: rgb(79,79,79);} +QCheckBox::indicator::checked {background: rgb(255, 157, 38);} + diff --git a/sdrgui/soapygui/complexfactorgui.ui b/sdrgui/soapygui/complexfactorgui.ui index 37d3d9175..d697b951f 100644 --- a/sdrgui/soapygui/complexfactorgui.ui +++ b/sdrgui/soapygui/complexfactorgui.ui @@ -31,7 +31,7 @@ 0 0 301 - 48 + 58 @@ -56,6 +56,10 @@ Qt::RightToLeft + + QCheckBox::indicator::unchecked {background: rgb(79,79,79);} +QCheckBox::indicator::checked {background: rgb(255, 157, 38);} + Auto