* { font-family: "思源黑体M", "Source Han Sans", "Microsoft YaHei", sans-serif; /* 确保字体的兼容性 */ font-size: 14px; font-weight: normal; outline: 0px; } /*登录*/ Login QWidget#widget_2 { border-radius: 10px; image: url(:/images/login.png); } Login QWidget#widget { border-radius: 20px; background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6164D6, stop: 1 #6164D6); /* 第一层渐变 */ } Login QPushButton { color:#FFFFFF; border-radius: 8px; background: #9294FF; } Login QLineEdit#userNameLineEdit, Login QLineEdit#passLineEdit { color:#FFFFFF; border-radius: 8px; padding-left:82px; border: 1px solid #9294FF; background: rgba(111, 113, 223, 0.2); } Login QLabel#label_user { image: url(:/images/login_user.png); } Login QLabel#label_pass { image: url(:/images/login_pass.png); } Login QFrame#line, Login QFrame#line_2 { background: #9294FF; } /*主界面*/ MainWnd QWidget#TabSideBar { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEF0F8, stop: 1 #E6E7F9); } MainWnd QWidget#centralwidget { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #E8EAFA, stop: 1 #D0D1EB); } MainWnd QFrame#line, OriginalWnd QFrame#line_2, QFrame#line_3, Demo001_3 QFrame#line_2, Demo001_2 QFrame#line_16, Demo001_1 QFrame#line_2 { border:none; background-color: rgba(186, 189, 220, 0.6); } MainWnd QWidget#TabSideBar QToolButton { color: #1D2087; font-weight: bold; background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F8FBFF, stop: 1 #E7ECF3); border-radius:6px; } /*侧边栏按钮*/ QWidget#TabSideBar>QToolButton::hover,QWidget#TabSideBar>QToolButton::checked { border:none; color:#FFFFFF; background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B); } MainWnd QToolButton { padding-top: 8px; } QWidget#TabSideBar>QToolButton#tabHomeBtn { qproperty-icon:url(:/images/light/home.png); } QWidget#TabSideBar>QToolButton#tabProductionBtn { qproperty-icon:url(:/images/light/Productionn assistance.png); } QWidget#TabSideBar>QToolButton#tabProgramBtn { qproperty-icon:url(:/images/light/Program.png); } QWidget#TabSideBar>QToolButton#tabMessageBtn { qproperty-icon:url(:/images/light/Message.png); } QWidget#TabSideBar>QToolButton#tabModuleBtn { qproperty-icon:url(:/images/light/Module.png); } QWidget#TabSideBar>QToolButton#tabDispositionBtn { qproperty-icon:url(:/images/light/Disposition.png); } QWidget#TabSideBar>QToolButton#tabDiagnosisBtn { qproperty-icon:url(:/images/light/Diagnosis.png); } QWidget#TabSideBar>QToolButton#tabSystemBtn { qproperty-icon:url(:/images/light/System.png); } QWidget#TabSideBar>QToolButton#tabHelpBtn { qproperty-icon:url(:/images/light/Help.png); } /*顶部*/ QWidget#Toptitlebar { border-radius: 6px; background: #5C63BE; color: #FFFFFF; } QWidget#Toptitlebar QLable#label_4 { color: #FFFFFF; } OriginalWnd QWidget#Toptitlebar QPushButton#CalibrationButton { color: #FFFFFF; border-radius: 4px; background: #4AA2FF; } QWidget#Toptitlebar QPushButton#pushButton_2 { background-color: transparent; image: url(:/images/two.png); } QWidget#Toptitlebar QPushButton#pushButton_3 { background-color: transparent; image: url(:/images/one.png); } /*初始界面*/ OriginalWnd QWidget#widget_2, OriginalWnd QWidget#widget { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1F4FD, stop: 1 #E5E4F6); border-radius: 10px; } OriginalWnd QWidget#widget QToolButton#toolButton { border-radius: 6px; background: #F02962; color: #FFFFFF; padding-bottom: 13px; padding-left: 28px; } OriginalWnd QWidget#widget QToolButton#toolButton_2 { border-radius: 6px; background: #4AB832; color: #FFFFFF; padding-bottom: 13px; padding-left: 28px; } OriginalWnd QWidget#widget QPushButton#ChartButton { border-radius: 6px; background: #CBD0FF; image: url(:/images/light/Demo001_1.png); } OriginalWnd QWidget#widget QPushButton#DoubleImageButton { border-radius: 6px; background: #CBD0FF; image: url(:/images/light/Demo001_2.png); } OriginalWnd QWidget#widget QPushButton#SingleImageButton { border-radius: 6px; background: #CBD0FF; image: url(:/images/light/Demo001_3.png); } /* Demo001_3 */ QComboBox { border:1px solid #BABBDC; border-radius:6px; background:#FFFFFF; } QComboBox::down-arrow { image: url(:/images/drop.png); width: 30px; height:30px; } QComboBox::drop-down { width:20px; border:none; padding-right:5px; } Demo001_3 QWidget#centralwidget, Demo001_2 QWidget#centralwidget, Demo001_1 QWidget#Leftwidget, Demo001_1 QWidget#Rightwidget { border-radius: 10px; background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1F4FD, stop: 1 #E5E4F6); } Group QPushButton#GroupButton { image: url(:/images/unknown_1.png); border-radius: 6px; background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B); } Demo001_3 QPushButton#LiveButton, Demo001_2 QPushButton#LeftLiveButton, Demo001_2 QPushButton#RightLiveButton, Demo001_1 QPushButton#LiveButton { color: #FFFFFF; border-radius: 6px; background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #949FE8,stop:1 #2D309B); } Demo001_3 QWidget#widget_6, Demo001_3 QWidget#widget_7, Demo001_3 QWidget#widget_8, Demo001_2 QWidget#widget_6, Demo001_2 QWidget#widget_7, Demo001_2 QWidget#widget_8, Demo001_1 QWidget#widget_6, Demo001_1 QWidget#widget_7, Demo001_1 QWidget#widget_8 { background: #D6D8ED; } Demo001_3 QLineEdit, Demo001_2 QLineEdit, Demo001_1 QLineEdit { border-radius: 6px; border: 1px solid #BABBDC; } Demo001_3 QWidget#BackGround, Demo001_2 QWidget#LeftBackGround, Demo001_2 QWidget#RightBackGround, Demo001_1 QWidget#BackGround { background: #FFFFFF; border: 1px solid #BABBDC; border-radius: 0px; } Demo001_3 QLabel#label_4, Demo001_2 QLabel#label_4, Demo001_1 QLabel#label_4 { image: url(:/images/unknown_2.png); } Demo001_3 QLabel#label_5, Demo001_2 QLabel#label_5, Demo001_1 QLabel#label_5 { image: url(:/images/unknown_2_2.png); } Demo001_3 QLabel#label_6, Demo001_2 QLabel#label_6, Demo001_1 QLabel#label_6 { image: url(:/images/unknown_3_1.png); } Demo001_3 QLabel#label_7, Demo001_2 QLabel#label_7, Demo001_1 QLabel#label_7 { image: url(:/images/unknown_3_2.png); } Demo001_3 QLabel#label_8, Demo001_2 QLabel#label_11, Demo001_1 QLabel#label_11 { image: url(:/images/unknown_4_1.png); } Demo001_3 QLabel#label_9, Demo001_2 QLabel#label_12, Demo001_1 QLabel#label_12 { image: url(:/images/unknown_4_2.png); } /* 工具栏 */ Demo001_3 QWidget#Toolbar, Demo001_2 QWidget#LeftToolbar, Demo001_2 QWidget#RightToolbar, Demo001_1 QWidget#Toolbar { border-radius: 6px; background: #CBD0FF; } Demo001_3 QWidget#Toolbar QPushButton, Demo001_2 QWidget#LeftToolbar QPushButton, Demo001_2 QWidget#RightToolbar QPushButton, Demo001_1 QWidget#Toolbar QPushButton { border-radius: 6px; background: #CBD0FF; border:none; } Demo001_3 QFrame#line, Demo001_3 QFrame#line_3, Demo001_3 QFrame#line_4, Demo001_3 QFrame#line_5, Demo001_3 QFrame#line_6, Demo001_2 QFrame#line_1, Demo001_2 QFrame#line_3, Demo001_2 QFrame#line_4, Demo001_2 QFrame#line_5, Demo001_2 QFrame#line_6, Demo001_2 QFrame#line_11, Demo001_2 QFrame#line_12, Demo001_2 QFrame#line_13, Demo001_2 QFrame#line_14, Demo001_2 QFrame#line_15, Demo001_1 QFrame#line, Demo001_1 QFrame#line_3, Demo001_1 QFrame#line_4, Demo001_1 QFrame#line_5, Demo001_1 QFrame#line_6 { border:none; background-color: rgba(78, 81, 206, 0.5); } Demo001_3 QPushButton#pushButton_2, Demo001_3 QLabel#label_Percentage, Demo001_2 QPushButton#pushButton_2, Demo001_2 QLabel#Leftlabel_Percentage, Demo001_2 QPushButton#pushButton_4, Demo001_2 QLabel#Rightlabel_Percentage, Demo001_1 QPushButton#pushButton_2, Demo001_1 QLabel#label_Percentage { color: #4E51CE; } Demo001_3 QPushButton#ZoomUpButton, Demo001_2 QPushButton#LeftZoomUpButton, Demo001_2 QPushButton#RightZoomUpButton, Demo001_1 QPushButton#ZoomUpButton { image: url(:/images/light/zoom up.png); } Demo001_3 QPushButton#ZoomOutButton, Demo001_2 QPushButton#LeftZoomOutButton, Demo001_2 QPushButton#RightZoomOutButton, Demo001_1 QPushButton#ZoomOutButton { image: url(:/images/light/zoom out.png); } Demo001_3 QPushButton#RulerButton, Demo001_2 QPushButton#LeftRulerButton, Demo001_2 QPushButton#RightRulerButton, Demo001_1 QPushButton#RulerButton { image: url(:/images/light/ruler.png); } Demo001_3 QPushButton#PenButton, Demo001_2 QPushButton#LeftPenButton, Demo001_2 QPushButton#RightPenButton, Demo001_1 QPushButton#PenButton { image: url(:/images/light/pen.png); } /* 为垂直滑块设置样式 */ QSlider::groove:vertical { height: 56px; width: 3px; background: rgba(78, 81, 206, 0.25); } QSlider::sub-page:vertical { height: 56px; width: 3px; background: rgba(78, 81, 206, 0.25); } QSlider::handle:vertical { border-image: url(:/images/slider.png); height: 6px; margin: 0px -5px 0px -5px; border-radius: 4px; } QScrollArea { background-color: transparent; border: none; } QScrollArea QWidget { background-color: transparent; } QScrollBar { background:transparent; width:10px; height:10px; border-radius:5px; border-style: solid; } QScrollBar::handle { background: #B5B9ED; border-radius: 5px; } QScrollBar::sub-page { background:transparent; border:none; } QScrollBar::add-page { background:transparent; border:none; } QScrollBar::up-arrow { background:transparent; border-top-left-radius:5px; border-top-right-radius:5px; } QScrollBar::down-arrow { background:transparent; border-bottom-left-radius:5px; border-bottom-right-radius:5px; } QScrollBar::sub-line { background:transparent; border-radius: 5px; } <<<<<<< HEAD ======= >>>>>>> 111219a (GO 添加了另外两个界面的逻辑和风格化实现) QScrollBar::add-line { background:transparent; border-radius: 5px; }