fix background color.

This commit is contained in:
Muhammet Şükrü Demir 2024-12-04 22:37:30 +03:00
parent d48cbade77
commit efabb31d59
3 changed files with 5 additions and 1 deletions

View File

@ -222,8 +222,9 @@ QucsActiveFilter::QucsActiveFilter(QWidget *parent)
QSize sz;
QString s1 = ":/images/bitmaps/AFR.svg";
imgAFR = new QSvgWidget(s1);
imgAFR->setStyleSheet("background-color: white;");
sz = gpbPar->size(); // take left box size as reference size
sz *= 0.6;
sz *= 0.75;
imgAFR->setFixedSize(sz);
vl1->addWidget(imgAFR);
vl1->setAlignment(imgAFR, Qt::AlignHCenter);
@ -234,6 +235,7 @@ QucsActiveFilter::QucsActiveFilter(QWidget *parent)
gpbSCH->setLayout(vl2);
s1 = ":/images/bitmaps/cauer.svg";
sch_pic = new QSvgWidget(s1);
sch_pic->setStyleSheet("background-color: white;");
sz = gpbFunc->size(); // take lefbox size as reference size
sz *= 0.95;
sch_pic->setFixedSize(sz);

View File

@ -97,6 +97,7 @@ QucsAttenuator::QucsAttenuator()
topoGrid->addWidget(ComboTopology, 1,0,1,2);
pixTopology = new QLabel(TopoGroup);//====================Pixmap for Topology
pixTopology->setStyleSheet("background-color: white;");
pixTopology->setPixmap(QPixmap((":/bitmaps/att_pi.png")));
topoGrid->addWidget(pixTopology,2,0,3,2);

View File

@ -280,6 +280,7 @@ QucsPowerCombiningTool::QucsPowerCombiningTool()
QString s1 = ":/bitmaps/Wilkinson_idealTL.svg";
QGridLayout * imgLayout = new QGridLayout();
imgWidget = new QSvgWidget(s1);
imgWidget->setStyleSheet("background-color: white;");
sz = imgWidget->size();
imgWidget->setFixedSize(.6*sz);
imgLayout->addWidget(imgWidget);