New theme

This commit is contained in:
Krad
2021-10-11 09:22:31 +08:00
parent dbe852a060
commit 38dcd38e02
4 changed files with 72 additions and 28 deletions

View File

@@ -19,7 +19,8 @@ ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
"QWidget#broadcast_widget{border:2px solid #515151; border-radius: 20px}"
"QLabel#lbl_protocol{font-size:32px; margin:0; color:silver}"
"QLabel#lbl_title,QLabel#lbl_ptitle{font-size:20px;margin:0; border-bottom:1px solid silver}"
"QLabel#lbl_end{font-size:32px;margin:0; border-top:1px solid #0078d8}"
"QLabel#lbl_end{font-size:20px;margin:0; border-top:1px solid #0078d8}"
"QLabel#lbl_e{font-size:20px;}"
"";
this->setStyleSheet(this->styleSheet().append(style));
QHBoxLayout* layout =new QHBoxLayout();
@@ -37,13 +38,8 @@ ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
ADD_TOOL_BTN(Left,":/icons/left.png");
ADD_TOOL_BTN(Right,":/icons/right.png");
QButtonGroup* group = new QButtonGroup(this);
// btnLeft->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
// btnLeft->setText("Left");
btnLeft->setCheckable(true);
btnLeft->setChecked(true);
// btnRight->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
// btnRight->setText("Right");
btnRight->setCheckable(true);
group->addButton(btnRight);
group->addButton(btnLeft);
@@ -74,10 +70,30 @@ ScanFormWidget::ScanFormWidget(QWidget *parent) : TabFormWidget(parent) {
contentLayout->addWidget(broadcast_widget);
param_widget->setObjectName("param_widget");
QVBoxLayout* paramLayout =new QVBoxLayout(param_widget);
QLabel* lblPreview = new QLabel(this);
lblPreview->setText("Preview Parameters");
lblPreview->setObjectName("lbl_title");
paramLayout->addWidget(lblPreview);
QLabel* lbl_e = new QLabel(this);
lbl_e->setWordWrap(true);
lbl_e->setObjectName("lbl_e");
lbl_e->setText("some settings\n\nparameters\n");
paramLayout->addWidget(lbl_e);
QLabel* lbl_end = new QLabel(this);
lbl_end->setObjectName("lbl_end");
paramLayout->addWidget(lbl_end);
QLabel* lblParams = new QLabel(this);
lblParams->setText("Scan Parameters");
lblParams->setObjectName("lbl_title");
paramLayout->addWidget(lblParams);
QLabel* lbl_e2 = new QLabel(this);
lbl_e2->setWordWrap(true);
lbl_e2->setObjectName("lbl_e");
lbl_e2->setText("some settings\n\nparameters\n");
paramLayout->addWidget(lbl_e2);
QLabel* lbl_end2 = new QLabel(this);
lbl_end2->setObjectName("lbl_end");
paramLayout->addWidget(lbl_end2);
paramLayout->addSpacerItem(new QSpacerItem(20,20,QSizePolicy::Minimum,QSizePolicy::Expanding));
contentLayout->addWidget(param_widget);