Style change for gui form dialog

This commit is contained in:
Krad
2021-11-11 14:12:00 +08:00
parent 3acd67058a
commit 61bcba36cd

View File

@@ -22,7 +22,6 @@ MainWindow::MainWindow(QWidget* parent) :
"background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,\"\n"
"stop: 0 #333333, stop: 1.0 #555555);"
"border: 2px solid #505050;\n"
// "border-bottom-color: #323232; /* same as the pane color */\n"
"border-bottom-left-radius: 50%;\n"
"border-bottom-right-radius: 50%;\n"
"min-width: 8ex;\n"
@@ -63,10 +62,15 @@ MainWindow::MainWindow(QWidget* parent) :
"QDialog QWidget#innerWidget{ background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,"
"stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray);"
"border-radius:20px;border:5px solid #0078d8; }"
"QDialog QWidget QWidget{ background:transparent;color:#3078d8}"
"QDialog QWidget QWidget QLabel{ font-size:30px}"
// "QLabel#lbl_progressicon{min-width:75px;max-width:75px;}"
"#spacer_1, #spacer_2{min-width:2px;max-width:2px;margin-top:6px;margin-bottom:6px;border-right:1px solid #0078d8;}"//green with 2
"QDialog#MessageDialog QWidget QWidget{ background:transparent;color:#3078d8}"
"QDialog#MessageDialog QWidget QWidget QLabel{ font-size:30px}"
"#spacer_1, #spacer_2{min-width:2px;max-width:2px;margin-top:6px;margin-bottom:6px;border-right:1px solid #0078d8;}"
//FormDialog
"QPushButton{border:1px solid silver ;padding-left:50px;padding-right:50px; border-radius:5px; min-height:28px; max-height:28px; background:#4c5052}"
"QPushButton#btnOK{background:#365880; font-weight:bold}"
"QDialog#formDialog{border:3px solid silver; border-radius:8px}"
"QWidget#formWidget QLabel#endline{border-bottom:1px solid silver}"
"QWidget#formWidget QLabel#title{font-size:30px; }"
;
this->setStyleSheet(style);
ui->setupUi(this);