style improve

This commit is contained in:
xueyan hu
2021-12-24 15:42:37 +08:00
parent ace08b9f44
commit d36fc118f8
2 changed files with 2 additions and 260 deletions

View File

@@ -216,7 +216,7 @@ void MainWindow::changeEvent(QEvent* event)
void MainWindow::loadStyleSheet(const QString& sheetName)
{
QFile file(":/StyleSheet/" + sheetName + ".qss");
QFile file(":/stylesheet/" + sheetName + ".qss");
file.open(QFile::ReadOnly);
if (file.isOpen())
{

View File

@@ -1,259 +1 @@
*{
background-color:#3c3c3c;
color:white;
margin:0;
font-size:16px;
}
QTabBar::tab
{
height:60px;
width:300px;
font-size: 25px;
background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,\
stop: 0 #333333, stop: 1.0 #555555);
border: 2px solid #505050;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
min-width: 8ex;
padding: 2px;
}
QTabBar::tab:selected, QTabBar::tab:hover
{
border-top:5px solid #4a88c7;
background: #505050;
}
QTabWidget::pane
{
margin:0
}
QLineEdit
{
min-height:36px;
max-height:36px;
border:1px solid silver
}
QLineEdit:enabled
{
background-color: #515151
}
QDateEdit
{
min-height:36px;max-height:36px; border:1px solid silver
}
QDateEdit:enabled
{
background-color: #515151
}
/**QTextEdit
{background-attachment: scroll;
}**/
QTextEdit:enabled
{background-color: #515151
}
QComboBox
{text-align:center;min-height:36px;max-height:36px; border:1px solid silver
}
QComboBox:enabled
{background-color: #515151
}
QComboBox::drop-down
{width:20px
}
QComboBox QAbstractItemView
{min-width:120px;
}
QComboBox QAbstractItemView::item
{min-height:60px;max-height:60px; border:1px solid white;
}
//QScrollBar:vertical
{min-width: 50px;
}
QLabel
{color:white; font-weight:bold; font-size:16px;
}
QLabel#sliderPickerLabel
{color:silver;padding:0;background:#505050;font-weight:normal;font-size:50px;
}
QWidget#topbarWidget
{min-height:36px;max-height:36px;
}
QWidget#contentWidget
{border-top:1px solid #515151;
}
QWidget#commandWidget
{min-height:123px;max-height:123px;border-top:1px solid #515151; border-bottom:1px solid #323232;
}
QLabel#logo
{min-width:30px;max-width:30px
}
QLabel#company
{min-width:150px;max-width:150px;
}
QLabel#systemMsgBar
{min-width:500px;
}
QLabel#warn
{color:#CCCC00;background:transparent;font-size:20px;
}
QWidget QWidget#statusBarWidget
{min-width:300px;
}
QWidget QToolButton
{border:none;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;
}
QToolButton#btn_main
{border:2px solid #0078d8;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;
}
QWidget QToolButton:disabled
{color:#606060
}
QWidget QToolButton:hover
{background:#505050;
}
QWidget QToolButton:checked
{border:5px solid darkorange;padding:0px;
}
QWidget#editcmdWidget
{min-height:83px;max-height:83px;
}
QWidget#verSpaceLine
{ border-right:1px solid #0078d8;
}
QWidget#topBottomLine
{ border-top:2px solid #0078d8;border-bottom:2px solid #0078d8;background:transparent
}
//蒙版Dialog
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#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#slider_one
{border:1px solid silver; border-radius:8px
}
QWidget#formWidget QLabel#endline
{border-bottom:1px solid silver
}
QWidget#formWidget QLabel#title
{font-size:30px; border-bottom:1px solid #3078d8
}
QListView
{border:none;margin:5px; font-weight:bold
}
QListView::item
{background:#4c5052;min-height:30px; border:1px solid silver; border-radius:5px
}
QListView::item:selected
{background:#365880; font-weight:bold;color:white
}
QHeaderView::section
{background-color:#595959;
min-height:50px;max-height:50px;
font-weight:Bold; font-size:16px; border:1px solid #323232;
}
QHeaderView::section:horizontal
{border-bottom: 1px solid rgb(0,170,255);
}
QHeaderView::section:vertical
{min-height:36px;max-height:36px;
}
QWidget#edit_patient
{min-width:300px;max-width:300px;
}
QTableView
{border:none
}
QTableView
{alternate-background-color: #595959;selection-color:white;selection-background-color:#0078d8
}
QToolButton#sexBtn
{min-width:120px;max-width:120px;font-size:20px;padding:2px;
}
QToolButton#sexBtn:disabled
{color:silver
}
QWidget#sexpanelwidget
{border:1px solid silver;
}
QWidget#sexpanelwidget:enabled
{background-color: #515151;
}
QToolButton#sexBtn:checked
{border:2px solid darkorange;padding:0px;
}
*{background-color:#3c3c3c; color:white;margin:0;font-size:16px;}