From e285be84ffb2de01d1e195c698613895b058ca55 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 24 Apr 2022 02:48:10 +0200 Subject: [PATCH] Massive UI revamping (v7): Main spectrum: set the border on the outer side of the window. Part of #1213 --- sdrgui/mainspectrum/mainspectrumgui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdrgui/mainspectrum/mainspectrumgui.cpp b/sdrgui/mainspectrum/mainspectrumgui.cpp index d87da6e9e..f0424c16c 100644 --- a/sdrgui/mainspectrum/mainspectrumgui.cpp +++ b/sdrgui/mainspectrum/mainspectrumgui.cpp @@ -42,6 +42,10 @@ MainSpectrumGUI::MainSpectrumGUI(GLSpectrum *spectrum, GLSpectrumGUI *spectrumGU qDebug("MainSpectrumGUI::MainSpectrumGUI: %p", parent); setWindowFlags(windowFlags() | Qt::FramelessWindowHint); m_helpURL = "sdrgui/mainspectrum/readme.md"; + setObjectName("MainSpectrumGUI"); + setStyleSheet(QString(tr("#MainSpectrumGUI { border: 1px solid %1; background-color: %2; }") + .arg(palette().highlight().color().darker(115).name())) + .arg(palette().window().color().name())); setMinimumSize(m_MinimumWidth, m_MinimumHeight); @@ -118,6 +122,7 @@ MainSpectrumGUI::MainSpectrumGUI(GLSpectrum *spectrum, GLSpectrumGUI *spectrumGU m_bottomLayout->addWidget(m_statusLabel); m_sizeGripBottomRight = new QSizeGrip(this); m_sizeGripBottomRight->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + m_sizeGripBottomRight->setFixedHeight(10); //m_bottomLayout->addStretch(1); m_bottomLayout->addWidget(m_sizeGripBottomRight, 0, Qt::AlignBottom | Qt::AlignRight);