diff --git a/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp b/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp index 433ebb37a..4513b2bda 100644 --- a/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp +++ b/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp @@ -69,8 +69,7 @@ BladeRF2MIMOGui::BladeRF2MIMOGui(DeviceUISet *deviceUISet, QWidget* parent) : setAttribute(Qt::WA_DeleteOnClose, true); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#BladeRF2MIMOGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#BladeRF2MIMOGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplemimo/bladerf2mimo/readme.md"; m_sampleMIMO = (BladeRF2MIMO*) m_deviceUISet->m_deviceAPI->getSampleMIMO(); diff --git a/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp b/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp index 5c6e9227c..f8c9d1d79 100644 --- a/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp +++ b/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp @@ -71,8 +71,7 @@ LimeSDRMIMOGUI::LimeSDRMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) : setAttribute(Qt::WA_DeleteOnClose, true); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#LimeSDRMIMOGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#LimeSDRMIMOGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplemimo/limesdrmimo/readme.md"; m_limeSDRMIMO = (LimeSDRMIMO*) m_deviceUISet->m_deviceAPI->getSampleMIMO(); diff --git a/plugins/samplemimo/metismiso/metismisogui.cpp b/plugins/samplemimo/metismiso/metismisogui.cpp index e359fae7a..1dc7aaf60 100644 --- a/plugins/samplemimo/metismiso/metismisogui.cpp +++ b/plugins/samplemimo/metismiso/metismisogui.cpp @@ -59,8 +59,7 @@ MetisMISOGui::MetisMISOGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#MetisMISOGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#MetisMISOGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplemimo/metismiso/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, 0, m_absMaxFreq); diff --git a/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp b/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp index cd4e12f49..e95a61e65 100644 --- a/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp +++ b/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp @@ -71,8 +71,7 @@ PlutoSDRMIMOGUI::PlutoSDRMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) : setAttribute(Qt::WA_DeleteOnClose, true); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#PlutoSDRMIMOGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#PlutoSDRMIMOGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplemimo/plutosdrmimo/readme.md"; m_sampleMIMO = (PlutoSDRMIMO*) m_deviceUISet->m_deviceAPI->getSampleMIMO(); diff --git a/plugins/samplemimo/testmi/testmigui.cpp b/plugins/samplemimo/testmi/testmigui.cpp index f5052d6b4..1d4ece70a 100644 --- a/plugins/samplemimo/testmi/testmigui.cpp +++ b/plugins/samplemimo/testmi/testmigui.cpp @@ -64,8 +64,7 @@ TestMIGui::TestMIGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#TestMIGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#TestMIGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplemimo/testmi/readme.md"; ui->spectrumSource->addItem("0"); ui->spectrumSource->addItem("1"); diff --git a/plugins/samplemimo/testmosync/testmosyncgui.cpp b/plugins/samplemimo/testmosync/testmosyncgui.cpp index 68d1be442..abd91236b 100644 --- a/plugins/samplemimo/testmosync/testmosyncgui.cpp +++ b/plugins/samplemimo/testmosync/testmosyncgui.cpp @@ -53,8 +53,7 @@ TestMOSyncGui::TestMOSyncGui(DeviceUISet *deviceUISet, QWidget* parent) : setAttribute(Qt::WA_DeleteOnClose, true); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#TestMOSyncGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#TestMOSyncGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplemimo/testmosync/readme.md"; m_sampleMIMO = (TestMOSync*) m_deviceUISet->m_deviceAPI->getSampleMIMO(); diff --git a/plugins/samplemimo/xtrxmimo/xtrxmimogui.cpp b/plugins/samplemimo/xtrxmimo/xtrxmimogui.cpp index 1aaab21f3..d31c970ea 100644 --- a/plugins/samplemimo/xtrxmimo/xtrxmimogui.cpp +++ b/plugins/samplemimo/xtrxmimo/xtrxmimogui.cpp @@ -68,8 +68,7 @@ XTRXMIMOGUI::XTRXMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) : setAttribute(Qt::WA_DeleteOnClose, true); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#XTRXMIMOGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#XTRXMIMOGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplemimo/xtrxmimo/readme.md"; m_xtrxMIMO = (XTRXMIMO*) m_deviceUISet->m_deviceAPI->getSampleMIMO(); diff --git a/plugins/samplesink/audiooutput/audiooutputgui.cpp b/plugins/samplesink/audiooutput/audiooutputgui.cpp index 8e680df1e..cd8c5caf8 100644 --- a/plugins/samplesink/audiooutput/audiooutputgui.cpp +++ b/plugins/samplesink/audiooutput/audiooutputgui.cpp @@ -45,8 +45,7 @@ AudioOutputGui::AudioOutputGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#AudioOutputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#AudioOutputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/audiooutput/readme.md"; connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware())); diff --git a/plugins/samplesink/bladerf1output/bladerf1outputgui.cpp b/plugins/samplesink/bladerf1output/bladerf1outputgui.cpp index 8d4218202..bc88fa575 100644 --- a/plugins/samplesink/bladerf1output/bladerf1outputgui.cpp +++ b/plugins/samplesink/bladerf1output/bladerf1outputgui.cpp @@ -48,8 +48,7 @@ Bladerf1OutputGui::Bladerf1OutputGui(DeviceUISet *deviceUISet, QWidget* parent) ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#Bladerf1OutputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#Bladerf1OutputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "/plugins/samplesink/bladerf1output/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000); diff --git a/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp b/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp index 52585235e..19377ef2b 100644 --- a/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp +++ b/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp @@ -51,8 +51,7 @@ BladeRF2OutputGui::BladeRF2OutputGui(DeviceUISet *deviceUISet, QWidget* parent) ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#BladeRF2OutputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#BladeRF2OutputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/bladerf2output/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); m_sampleSink->getFrequencyRange(f_min, f_max, step, scale); diff --git a/plugins/samplesink/fileoutput/fileoutputgui.cpp b/plugins/samplesink/fileoutput/fileoutputgui.cpp index 9a52e7a06..37c443db6 100644 --- a/plugins/samplesink/fileoutput/fileoutputgui.cpp +++ b/plugins/samplesink/fileoutput/fileoutputgui.cpp @@ -56,8 +56,7 @@ FileOutputGui::FileOutputGui(DeviceUISet *deviceUISet, QWidget* parent) : setAttribute(Qt::WA_DeleteOnClose, true); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#FileOutputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#FileOutputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/fileoutput/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); diff --git a/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp b/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp index 6700e804a..1bd613033 100644 --- a/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp +++ b/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp @@ -50,8 +50,7 @@ HackRFOutputGui::HackRFOutputGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#HackRFOutputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#HackRFOutputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/hackrfoutput/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, 0U, 7250000U); diff --git a/plugins/samplesink/limesdroutput/limesdroutputgui.cpp b/plugins/samplesink/limesdroutput/limesdroutputgui.cpp index 9acb4ed60..77c709329 100644 --- a/plugins/samplesink/limesdroutput/limesdroutputgui.cpp +++ b/plugins/samplesink/limesdroutput/limesdroutputgui.cpp @@ -47,8 +47,7 @@ LimeSDROutputGUI::LimeSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#LimeSDROutputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#LimeSDROutputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/limesdroutput/readme.md"; float minF, maxF; diff --git a/plugins/samplesink/localoutput/localoutputgui.cpp b/plugins/samplesink/localoutput/localoutputgui.cpp index a1c376e97..7eb1035d8 100644 --- a/plugins/samplesink/localoutput/localoutputgui.cpp +++ b/plugins/samplesink/localoutput/localoutputgui.cpp @@ -64,8 +64,7 @@ LocalOutputGui::LocalOutputGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#LocalOutputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#LocalOutputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/localoutput/readme.md"; connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &))); diff --git a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp index 5140da0ff..fff366918 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp +++ b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp @@ -50,8 +50,7 @@ PlutoSDROutputGUI::PlutoSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent) ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#PlutoSDROutputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#PlutoSDROutputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/plutosdroutput/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); updateFrequencyLimits(); diff --git a/plugins/samplesink/remoteoutput/remoteoutputgui.cpp b/plugins/samplesink/remoteoutput/remoteoutputgui.cpp index 3fb588ca4..13c3b809d 100644 --- a/plugins/samplesink/remoteoutput/remoteoutputgui.cpp +++ b/plugins/samplesink/remoteoutput/remoteoutputgui.cpp @@ -69,8 +69,7 @@ RemoteOutputSinkGui::RemoteOutputSinkGui(DeviceUISet *deviceUISet, QWidget* pare ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#RemoteOutputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#RemoteOutputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/remoteoutput/readme.md"; connect(&(m_deviceUISet->m_deviceAPI->getMasterTimer()), SIGNAL(timeout()), this, SLOT(tick())); diff --git a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp index 427c2af74..c664ac5bc 100644 --- a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp +++ b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp @@ -61,8 +61,7 @@ SoapySDROutputGui::SoapySDROutputGui(DeviceUISet *deviceUISet, QWidget* parent) m_sampleSink = (SoapySDROutput*) m_deviceUISet->m_deviceAPI->getSampleSink(); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding); - getContents()->setStyleSheet(QString(tr("#SoapySDROutputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#SoapySDROutputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/soapysdroutput/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); diff --git a/plugins/samplesink/testsink/testsinkgui.cpp b/plugins/samplesink/testsink/testsinkgui.cpp index c9e99b719..471f6561d 100644 --- a/plugins/samplesink/testsink/testsinkgui.cpp +++ b/plugins/samplesink/testsink/testsinkgui.cpp @@ -53,8 +53,7 @@ TestSinkGui::TestSinkGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); setMinimumSize(m_MinimumWidth, m_MinimumHeight); - getContents()->setStyleSheet(QString(tr("#TestSinkGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#TestSinkGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/testsink/readme.md"; m_sampleSink = (TestSinkOutput*) m_deviceUISet->m_deviceAPI->getSampleSink(); diff --git a/plugins/samplesink/usrpoutput/usrpoutputgui.cpp b/plugins/samplesink/usrpoutput/usrpoutputgui.cpp index aaa57aa14..a67c3eaaa 100644 --- a/plugins/samplesink/usrpoutput/usrpoutputgui.cpp +++ b/plugins/samplesink/usrpoutput/usrpoutputgui.cpp @@ -48,8 +48,7 @@ USRPOutputGUI::USRPOutputGUI(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#USRPOutputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#USRPOutputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/usrpoutput/readme.md"; float minF, maxF; diff --git a/plugins/samplesink/xtrxoutput/xtrxoutputgui.cpp b/plugins/samplesink/xtrxoutput/xtrxoutputgui.cpp index 2a034d5ad..f5b8a79c2 100644 --- a/plugins/samplesink/xtrxoutput/xtrxoutputgui.cpp +++ b/plugins/samplesink/xtrxoutput/xtrxoutputgui.cpp @@ -49,8 +49,7 @@ XTRXOutputGUI::XTRXOutputGUI(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#XTRXOutputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#XTRXOutputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesink/xtrxoutput/readme.md"; float minF, maxF, stepF; diff --git a/plugins/samplesource/airspy/airspygui.cpp b/plugins/samplesource/airspy/airspygui.cpp index 09b22bb81..291563abd 100644 --- a/plugins/samplesource/airspy/airspygui.cpp +++ b/plugins/samplesource/airspy/airspygui.cpp @@ -49,8 +49,7 @@ AirspyGui::AirspyGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#AirspyGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#AirspyGui { background-color: rgb(64, 64, 64); }"); ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); updateFrequencyLimits(); diff --git a/plugins/samplesource/airspyhf/airspyhfgui.cpp b/plugins/samplesource/airspyhf/airspyhfgui.cpp index 3426f0f10..6a0803b75 100644 --- a/plugins/samplesource/airspyhf/airspyhfgui.cpp +++ b/plugins/samplesource/airspyhf/airspyhfgui.cpp @@ -48,8 +48,7 @@ AirspyHFGui::AirspyHFGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#AirspyHFGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#AirspyHFGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/airspyhf/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); updateFrequencyLimits(); diff --git a/plugins/samplesource/audioinput/audioinputgui.cpp b/plugins/samplesource/audioinput/audioinputgui.cpp index c0ae6373e..273a5050e 100644 --- a/plugins/samplesource/audioinput/audioinputgui.cpp +++ b/plugins/samplesource/audioinput/audioinputgui.cpp @@ -45,8 +45,7 @@ AudioInputGui::AudioInputGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#AudioInputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#AudioInputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/audioinput/readme.md"; connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware())); diff --git a/plugins/samplesource/bladerf1input/bladerf1inputgui.cpp b/plugins/samplesource/bladerf1input/bladerf1inputgui.cpp index 9c4051878..17c948c0d 100644 --- a/plugins/samplesource/bladerf1input/bladerf1inputgui.cpp +++ b/plugins/samplesource/bladerf1input/bladerf1inputgui.cpp @@ -50,8 +50,7 @@ Bladerf1InputGui::Bladerf1InputGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#Bladerf1InputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#Bladerf1InputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/bladerf1input/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000); diff --git a/plugins/samplesource/bladerf2input/bladerf2inputgui.cpp b/plugins/samplesource/bladerf2input/bladerf2inputgui.cpp index d96c48b2a..fea4b1505 100644 --- a/plugins/samplesource/bladerf2input/bladerf2inputgui.cpp +++ b/plugins/samplesource/bladerf2input/bladerf2inputgui.cpp @@ -53,8 +53,7 @@ BladeRF2InputGui::BladeRF2InputGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#Bladerf2InputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#Bladerf2InputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/bladerf2input/readme.md"; m_sampleSource->getFrequencyRange(f_min, f_max, step, scale); diff --git a/plugins/samplesource/fcdpro/fcdprogui.cpp b/plugins/samplesource/fcdpro/fcdprogui.cpp index 638f570da..692165e14 100644 --- a/plugins/samplesource/fcdpro/fcdprogui.cpp +++ b/plugins/samplesource/fcdpro/fcdprogui.cpp @@ -46,8 +46,7 @@ FCDProGui::FCDProGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#FCDProGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#FCDProGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/fcdpro/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); updateFrequencyLimits(); diff --git a/plugins/samplesource/fcdproplus/fcdproplusgui.cpp b/plugins/samplesource/fcdproplus/fcdproplusgui.cpp index 3630fd7f4..76d3f6737 100644 --- a/plugins/samplesource/fcdproplus/fcdproplusgui.cpp +++ b/plugins/samplesource/fcdproplus/fcdproplusgui.cpp @@ -47,8 +47,7 @@ FCDProPlusGui::FCDProPlusGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#FCDProPlusGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#FCDProPlusGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/fcdproplus/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); diff --git a/plugins/samplesource/fileinput/fileinputgui.cpp b/plugins/samplesource/fileinput/fileinputgui.cpp index 13130ca3b..e59153aeb 100644 --- a/plugins/samplesource/fileinput/fileinputgui.cpp +++ b/plugins/samplesource/fileinput/fileinputgui.cpp @@ -58,8 +58,7 @@ FileInputGUI::FileInputGUI(DeviceUISet *deviceUISet, QWidget* parent) : setAttribute(Qt::WA_DeleteOnClose, true); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#FileInputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#FileInputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/fileinput/readme.md"; ui->crcLabel->setStyleSheet("QLabel { background:rgb(79,79,79); }"); diff --git a/plugins/samplesource/hackrfinput/hackrfinputgui.cpp b/plugins/samplesource/hackrfinput/hackrfinputgui.cpp index 6f6adcf02..a692cbce5 100644 --- a/plugins/samplesource/hackrfinput/hackrfinputgui.cpp +++ b/plugins/samplesource/hackrfinput/hackrfinputgui.cpp @@ -51,8 +51,7 @@ HackRFInputGui::HackRFInputGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#HackRFInputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#HackRFInputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/hackrfinput/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, 0U, 7250000U); diff --git a/plugins/samplesource/kiwisdr/kiwisdrgui.cpp b/plugins/samplesource/kiwisdr/kiwisdrgui.cpp index c6444f519..2ca20b58f 100644 --- a/plugins/samplesource/kiwisdr/kiwisdrgui.cpp +++ b/plugins/samplesource/kiwisdr/kiwisdrgui.cpp @@ -69,8 +69,7 @@ KiwiSDRGui::KiwiSDRGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#KiwiSDRGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#KiwiSDRGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/kiwisdr/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, 0, 9999999); diff --git a/plugins/samplesource/limesdrinput/limesdrinputgui.cpp b/plugins/samplesource/limesdrinput/limesdrinputgui.cpp index b515535c5..0a8c5ea4e 100644 --- a/plugins/samplesource/limesdrinput/limesdrinputgui.cpp +++ b/plugins/samplesource/limesdrinput/limesdrinputgui.cpp @@ -51,8 +51,7 @@ LimeSDRInputGUI::LimeSDRInputGUI(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#LimeSDRInputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#LimeSDRInputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/limesdrinput/readme.md"; float minF, maxF; diff --git a/plugins/samplesource/localinput/localinputgui.cpp b/plugins/samplesource/localinput/localinputgui.cpp index cab4d3e22..c7d087c6d 100644 --- a/plugins/samplesource/localinput/localinputgui.cpp +++ b/plugins/samplesource/localinput/localinputgui.cpp @@ -77,8 +77,7 @@ LocalInputGui::LocalInputGui(DeviceUISet *deviceUISet, QWidget* parent) : m_startingTimeStampms = 0; ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#LocalInputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#LocalInputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/localinput/readme.md"; connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &))); diff --git a/plugins/samplesource/perseus/perseusgui.cpp b/plugins/samplesource/perseus/perseusgui.cpp index 9176fc0a1..917d12a76 100644 --- a/plugins/samplesource/perseus/perseusgui.cpp +++ b/plugins/samplesource/perseus/perseusgui.cpp @@ -46,8 +46,7 @@ PerseusGui::PerseusGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#PerseusGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#PerseusGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/perseus/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); updateFrequencyLimits(); diff --git a/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp b/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp index 9c7b757ce..01cc68dda 100644 --- a/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp +++ b/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp @@ -51,8 +51,7 @@ PlutoSDRInputGui::PlutoSDRInputGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#PlutoSDRInputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#PlutoSDRInputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/plutosdrinput/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); updateFrequencyLimits(); diff --git a/plugins/samplesource/remoteinput/remoteinputgui.cpp b/plugins/samplesource/remoteinput/remoteinputgui.cpp index 40e0d6267..99022c146 100644 --- a/plugins/samplesource/remoteinput/remoteinputgui.cpp +++ b/plugins/samplesource/remoteinput/remoteinputgui.cpp @@ -74,8 +74,7 @@ RemoteInputGui::RemoteInputGui(DeviceUISet *deviceUISet, QWidget* parent) : m_startingTimeStampms = 0; ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#RemoteInputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#RemoteInputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/remoteinput/readme.md"; ui->remoteDeviceFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); diff --git a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp index cd8e7b588..37b273e2b 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp @@ -48,8 +48,7 @@ RTLSDRGui::RTLSDRGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#RTLSDRGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#RTLSDRGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/rtlsdr/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); updateFrequencyLimits(); diff --git a/plugins/samplesource/sdrplay/sdrplaygui.cpp b/plugins/samplesource/sdrplay/sdrplaygui.cpp index 9a82aec84..dd8ce5172 100644 --- a/plugins/samplesource/sdrplay/sdrplaygui.cpp +++ b/plugins/samplesource/sdrplay/sdrplaygui.cpp @@ -45,8 +45,7 @@ SDRPlayGui::SDRPlayGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#SDRPlayGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#SDRPlayGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/sdrplay/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, 10U, 12000U); diff --git a/plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp b/plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp index 691c8ce58..a66991a7b 100644 --- a/plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp +++ b/plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp @@ -45,8 +45,7 @@ SDRPlayV3Gui::SDRPlayV3Gui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#SDRPlayV3Gui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#SDRPlayV3Gui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/sdrplayv3/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); updateFrequencyLimits(); diff --git a/plugins/samplesource/sigmffileinput/sigmffileinputgui.cpp b/plugins/samplesource/sigmffileinput/sigmffileinputgui.cpp index 69ad7658c..07e165b06 100644 --- a/plugins/samplesource/sigmffileinput/sigmffileinputgui.cpp +++ b/plugins/samplesource/sigmffileinput/sigmffileinputgui.cpp @@ -64,8 +64,7 @@ SigMFFileInputGUI::SigMFFileInputGUI(DeviceUISet *deviceUISet, QWidget* parent) setAttribute(Qt::WA_DeleteOnClose, true); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding); - getContents()->setStyleSheet(QString(tr("#SigMFFileInputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#SigMFFileInputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/sigmffileinput/readme.md"; ui->fileNameText->setText(m_metaFileName); diff --git a/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp b/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp index 6e3337ed7..ecade848c 100644 --- a/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp +++ b/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp @@ -63,8 +63,7 @@ SoapySDRInputGui::SoapySDRInputGui(DeviceUISet *deviceUISet, QWidget* parent) : m_sampleSource = (SoapySDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding); - getContents()->setStyleSheet(QString(tr("#SoapySDRInputGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#SoapySDRInputGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/soapysdrinput/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); diff --git a/plugins/samplesource/testsource/testsourcegui.cpp b/plugins/samplesource/testsource/testsourcegui.cpp index a97f72de4..dda83fc7d 100644 --- a/plugins/samplesource/testsource/testsourcegui.cpp +++ b/plugins/samplesource/testsource/testsourcegui.cpp @@ -56,8 +56,7 @@ TestSourceGui::TestSourceGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#TestSourceGui { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#TestSourceGui { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/testsource/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, 0, 9999999); diff --git a/plugins/samplesource/usrpinput/usrpinputgui.cpp b/plugins/samplesource/usrpinput/usrpinputgui.cpp index 77ee8fb0e..5b7830843 100644 --- a/plugins/samplesource/usrpinput/usrpinputgui.cpp +++ b/plugins/samplesource/usrpinput/usrpinputgui.cpp @@ -52,8 +52,7 @@ USRPInputGUI::USRPInputGUI(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#USRPInputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#USRPInputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/usrpinput/readme.md"; float minF, maxF; diff --git a/plugins/samplesource/xtrxinput/xtrxinputgui.cpp b/plugins/samplesource/xtrxinput/xtrxinputgui.cpp index 63f4096dd..2a137e6db 100644 --- a/plugins/samplesource/xtrxinput/xtrxinputgui.cpp +++ b/plugins/samplesource/xtrxinput/xtrxinputgui.cpp @@ -52,8 +52,7 @@ XTRXInputGUI::XTRXInputGUI(DeviceUISet *deviceUISet, QWidget* parent) : ui->setupUi(getContents()); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - getContents()->setStyleSheet(QString(tr("#XTRXInputGUI { border: 1px solid %1 }") - .arg(palette().highlight().color().darker(115).name()))); + getContents()->setStyleSheet("#XTRXInputGUI { background-color: rgb(64, 64, 64); }"); m_helpURL = "plugins/samplesource/xtrxinput/readme.md"; float minF, maxF, stepF; diff --git a/sdrgui/device/devicegui.cpp b/sdrgui/device/devicegui.cpp index b0a24260f..2b5d2cc5f 100644 --- a/sdrgui/device/devicegui.cpp +++ b/sdrgui/device/devicegui.cpp @@ -42,6 +42,10 @@ DeviceGUI::DeviceGUI(QWidget *parent) : { qDebug("DeviceGUI::DeviceGUI: %p", parent); setWindowFlags(windowFlags() | Qt::FramelessWindowHint); + setObjectName("DeviceGUI"); + setStyleSheet(QString(tr("#DeviceGUI { border: 1px solid %1; background-color: %2; }") + .arg(palette().highlight().color().darker(115).name())) + .arg(palette().dark().color().darker(115).name())); m_indexLabel = new QLabel(); m_indexLabel->setFixedSize(32, 16); @@ -129,8 +133,8 @@ DeviceGUI::DeviceGUI(QWidget *parent) : m_showAllChannelsButton->setToolTip("Show all channels"); m_layouts = new QVBoxLayout(); - m_layouts->setContentsMargins(m_resizer.m_gripSize, 4, m_resizer.m_gripSize, 4); - m_layouts->setSpacing(2); + m_layouts->setContentsMargins(m_resizer.m_gripSize, m_resizer.m_gripSize, m_resizer.m_gripSize, m_resizer.m_gripSize); + m_layouts->setSpacing(0); m_topLayout = new QHBoxLayout(); m_topLayout->setContentsMargins(0, 0, 0, 0); @@ -148,6 +152,7 @@ DeviceGUI::DeviceGUI(QWidget *parent) : m_topLayout->addWidget(m_closeButton); m_centerLayout = new QHBoxLayout(); + m_centerLayout->setContentsMargins(0, 0, 0, 0); m_contents = new QWidget(); // Do not delete! Done in child's destructor with "delete ui" m_centerLayout->addWidget(m_contents); @@ -158,6 +163,7 @@ DeviceGUI::DeviceGUI(QWidget *parent) : m_bottomLayout->addWidget(m_statusLabel); m_sizeGripBottomRight = new QSizeGrip(this); m_sizeGripBottomRight->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + m_sizeGripBottomRight->setFixedHeight(20); // m_bottomLayout->addStretch(1); m_bottomLayout->addWidget(m_sizeGripBottomRight, 0, Qt::AlignBottom | Qt::AlignRight); diff --git a/sdrgui/device/devicegui.h b/sdrgui/device/devicegui.h index 69831084b..1417ca8a8 100644 --- a/sdrgui/device/devicegui.h +++ b/sdrgui/device/devicegui.h @@ -83,6 +83,7 @@ protected: void mouseReleaseEvent(QMouseEvent* event) override; void mouseMoveEvent(QMouseEvent* event) override; void resetContextMenuType() { m_contextMenuType = ContextMenuNone; } + int getAdditionalHeight() const { return 25 + 22; } DeviceType m_deviceType; int m_deviceSetIndex;