*{ color:#9d9d9d; font-size: 12px; font-family: "Arial"; } /* 按钮 */ QPushButton, QToolButton { border:0px solid #808080; background: #4c4d4e; border-radius: 1px; min-width: 50px; min-height: 25px; color: #e2e2e2; } QPushButton:hover, QToolButton:hover { background: #545557; color: #ffffff; } QPushButton:pressed, QToolButton:pressed { background: #48494a; color: #ffffff; } QPushButton:checked, QToolButton:checked { background: #354040; color: #e2e2e2; } QPushButton:disabled, QToolButton:disabled { background: #48494a; color: #7a7d7f; } QPushButton:default, QToolButton:default { background: #4c4d4e; color: #e2e2e2; } QPushButton:default:hover, QToolButton:default:hover { background: #545557; color: #ffffff; } QPushButton:default:pressed, QToolButton:default:pressed { background: #48494a; color: #ffffff; } QPushButton:default:disabled, QToolButton:default:disabled { background: #48494a; color: #7a7d7f; } /* 下拉框 */ QComboBox { border: 1 solid #373839; selection-background-color: #797c81; selection-color: black; max-height: 24px; min-height: 24px; background: #373839; padding: 0px 5px 0px 5px; border-radius: 1px; color: #e5e5e5; padding-left: 11px; } QComboBox:focus { border: 1 solid #ff2d2d; color: #e5e5e5; } QComboBox:disabled { background: #373839; color: #9d9d9d; } QComboBox QAbstractItemView::item { height:38; } QComboBox:on, QComboBox:hover, QComboBox QAbstractItemView::item:selected { color: #e5e5e5; background-color: #373839; } QComboBox QAbstractItemView::item:hover{ background-color: #373839; color: #ffffff; } QComboBox QAbstractItemView { outline: 0px; border-top: 1px solid black; border-bottom: 1px solid black; selection-background-color: #797c81; selection-color: #ffffff; background-color: #2a2b2c; padding-left:0px; } QComboBox::drop-down { subcontrol-origin: padding; subcontrol-position: top right; margin-top: 5px; margin-right: 5px; border: 0; background-color:transparent; padding-right: -4px; } QComboBox::down-arrow { image: url(Skins/Default/MVSDKGuiQt/Icon_ComboBox_ArrowDown_Normal.png) } QComboBox::down-arrow:hover { image: url(Skins/Default/MVSDKGuiQt/Icon_ComboBox_ArrowDown_Hover.png) } QComboBox::down-arrow:pressed { image: url(Skins/Default/MVSDKGuiQt/Icon_ComboBox_ArrowDown_Pressed.png) } QComboBox::down-arrow:disabled { image: url(Skins/Default/MVSDKGuiQt/Icon_ComboBox_ArrowDown_Disable.png) } /* SpinBox */ QDoubleSpinBox, QSpinBox { min-height: 24px; padding-right: 0px; border: 1 solid #242424; background: #373839; color: #e5e5e5; } QDoubleSpinBox:focus, QSpinBox:focus{ border: 1 solid #ff2d2d; } QDoubleSpinBox:disabled, QSpinBox:disabled{ background: #373839; color: #9d9d9d; } QDoubleSpinBox::up-button, QSpinBox::up-button { subcontrol-origin: border; subcontrol-position: top right; width: 18px; border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Up_Normal.png); margin: 1; margin-bottom: 2px; padding:0px; } QDoubleSpinBox::up-button:hover, QSpinBox::up-button:hover { border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Up_Hover.png); } QDoubleSpinBox::up-button:pressed, QSpinBox::up-button:pressed { border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Up_Pressed.png); } QDoubleSpinBox::up-button:disabled, QSpinBox::up-button:disabled { border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Up_Disable.png); } QDoubleSpinBox::down-button, QSpinBox::down-button { subcontrol-origin: border; subcontrol-position: bottom right; width: 18px; border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Down_Normal.png); margin: 1; margin-top: 2px; padding:0px; } QDoubleSpinBox::down-button:hover, QSpinBox::down-button:hover { border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Down_Hover.png); } QDoubleSpinBox::down-button:pressed, QSpinBox::down-button:pressed { border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Down_Pressed.png); } QDoubleSpinBox::down-button:disabled, QSpinBox::down-button:disabled { border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Down_Disable.png); } /* 复选框 */ QCheckBox{ spacing: 8px; color: #e2e2e2; } QCheckBox:hover { color: rgb(255,255,255); } QCheckBox::indicator:unchecked { image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Unchecked_Normal.png); } QCheckBox::indicator:unchecked:hover { image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Unchecked_Hover.png); } QCheckBox::indicator:unchecked:disabled{ image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Unchecked_Disable.png); } QCheckBox::indicator:unchecked:pressed { image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Unchecked_Hover.png); } QCheckBox::indicator:checked{ image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Checked_Pressed.png); } QCheckBox::indicator:checked:hover { image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Checked_Pressed.png); } QCheckBox::indicator:checked:disabled { image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Checked_Pressed.png); } QCheckBox::indicator:checked:pressed { image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Checked_Pressed.png); } /* 单选框 */ QRadioButton::indicator::unchecked { image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Unchecked_Normal.png); } QRadioButton::indicator::unchecked:hover { image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Unchecked_Hover.png); } QRadioButton::indicator::unchecked:pressed { image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Unchecked_Hover.png); } QRadioButton::indicator::unchecked:disabled { image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Unchecked_Disable.png); } QRadioButton::indicator::checked { image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Checked_Normal.png); } QRadioButton::indicator::checked:hover { image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Checked_Hover.png); } QRadioButton::indicator::checked:pressed { image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Checked_Pressed.png); } QRadioButton::indicator::checked:disabled { image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Checked_Disable.png); } QRadioButton { color:#9d9d9d; } QRadioButton:hover { color:#ffffff; } QRadioButton:disabled { color:#7a7d7f; } /* 单行文本框 */ QLineEdit { min-height: 26px; background-color: #373839; selection-background-color: #797c81; selection-color: #FFFFFF; border-radius: 1px; color: #e5e5e5; padding-left: 11px; } QLineEdit:focus { background-color: #373839; border-radius: 1px; border: 1px solid #ff2d2d; color: #e5e5e5; } QLineEdit:disabled { background-color: #373839; border-radius: 1px; border: 1px solid #242424; color: #9d9d9d; } /* 菜单 */ QMenu{ background-color: #2D2E30; margin: 0px; border: 1px solid #171717; border-radius: 2px; } QMenu::item { background-color: #2D2E30; color: #9D9D9D; min-height: 32px; padding: 2px 30px 2px 25px; border: 0px solid transparent; /* reserve space for selection border */ } QMenu::item:selected { background: #373839; color: #FFFFFF; } QMenu::item:hover { background: #373839; color: #FFFFFF; } QMenu::item:disabled { color: #737373; } QMenu::separator { height: 1px; background: #1C1C1C; } QMenu::indicator { left: 5px; } QMenu::right-arrow { image: url(Skins/Default/MVSDKGuiQt/Icon_MenuItem_ArrowRight_Normal.png); margin-right: 9px; } /* 滑动条 */ QSlider::groove:horizontal { border: 0px solid #4A708B; background: rgb(40, 41, 43); height: 6px; border-radius: 3px; padding-left:0px; padding-right:0px; } QSlider::sub-page:horizontal { background: rgb(104, 104, 106); border: 0px solid #4A708B; height: 6px; border-radius: 3px; } QSlider::add-page:horizontal { background: rgb(60, 61, 62); border: 0px solid rgb(226, 226, 226); height: 6px; border-radius: 3px; } QSlider::handle:horizontal { background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5, stop:0.0 rgba(135, 135, 135, 255), stop:0.7 rgba(135, 135, 135, 255), stop:0.9 rgba(34, 35, 36, 40)); width: 16px; margin-top: -5px; margin-bottom: -5px; border-radius: 8px; } QSlider::handle:horizontal:hover { background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5, stop:0.0 rgba(255, 45, 45, 255), stop:0.7 rgba(255, 45, 45, 255), stop:0.9 rgba(34, 35, 36, 40)); width: 16px; margin-top: -5px; margin-bottom: -5px; border-radius: 8px; } QSlider::handle:horizontal:pressed { background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5, stop:0.0 rgba(255, 45, 45, 255), stop:0.7 rgba(255, 45, 45, 255), stop:0.9 rgba(34, 35, 36, 40)); width: 16px; margin-top: -5px; margin-bottom: -5px; border-radius: 8px; } QSlider::sub-page:horizontal:disabled { background: rgb(60,61,62); border-color: rgb(60,61,62); border: 0px solid rgb(226, 226, 226); border-radius: 3px; } QSlider::add-page:horizontal:disabled { background: rgb(60,61,62); border-color: rgb(60,61,62); border: 0px solid rgb(60,61,62); border-radius: 3px; } QSlider::handle:horizontal:disabled { background: rgb(82, 82, 83); width: 12px; margin-top: -3px; margin-bottom: -3px; border-radius: 6px; } /* 水平滚动条 */ QScrollBar:horizontal { border: 0px solid white; background: transparent; height: 6px; margin: 0 0 0 0; } QScrollBar::handle:horizontal { background: #555555; min-width: 6px; border-radius: 3px; } QScrollBar::add-line:horizontal { border: 0px solid white; background: transparent; width: 0px; subcontrol-position: right; subcontrol-origin: margin; } QScrollBar::sub-line:horizontal { border: 0px solid white; background: transparent; width: 0px; subcontrol-position: left; subcontrol-origin: margin; } QScrollBar::sub-page:horizontal { background: transparent; } QScrollBar::add-page:horizontal { background: transparent; } /* 垂直滚动条 */ QScrollBar:vertical { border: 0px solid white; background: transparent; width: 6px; margin: 0 0 0 0; } QScrollBar::handle:vertical { background: #555555; min-height: 6px; border-radius: 3px; } QScrollBar::add-line:vertical { border: 0px solid white; background: transparent; height: 0px; subcontrol-position: bottom; subcontrol-origin: margin; } QScrollBar::sub-line:vertical { border: 0px solid white; background: transparent; height: 0px; subcontrol-position: top; subcontrol-origin: margin; } QScrollBar::sub-page:vertical { background: transparent; } QScrollBar::add-page:vertical { background: transparent; } /* 树 */ QTreeView { outline: 0; } QTreeView::item:hover { background-color: rgba(66,66,67,44%); } QTreeView::item:selected { background-color: rgba(66,66,67,76%); } QTreeView::branch:has-siblings:!adjoins-item { } QTreeView::branch { image: none; } QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings { border-image: none; image: url(Skins/Default/MVSDKGuiQt/Btn_Common_TreeUnfold_Normal.png); } QTreeView::branch:closed:has-children:hover { border-image: none; image: url(Skins/Default/MVSDKGuiQt/Btn_Common_TreeUnfold_Hover.png); } QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-children:has-siblings { border-image: none; image: url(Skins/Default/MVSDKGuiQt/Btn_Common_TreeFold_Normal.png); } QTreeView::branch:open:has-children:hover { border-image: none; image: url(Skins/Default/MVSDKGuiQt/Btn_Common_TreeFold_Hover.png); } /* ToolTip */ QToolTip { padding-left: 5px; padding-right: 5px; border-radius: 1px; opacity: 255; background: #646668; color: #ffffff; } /* 等待对话框 */ CWaitDialog { background: #ffffff; border: 1px solid #b9bfc8; } CWaitDialog QFrame#frameTitle { min-height: 36px; background: #ffffff; border-bottom: 1px solid #b9bfc8; margin-left: 1px; margin-top: 1px; margin-right: 1px; } CWaitDialog QLabel#waitLabel { min-width: 100px; min-height: 60px; } CWaitDialog QLabel#lbTitle { color: 3333333; min-width: 32px; } CWaitDialog QLabel#labTitleBar { padding: 0 6; min-width: 32px; } CWaitDialog QLabel#textLabel { font-size: 14px; margin-left:30; margin-right: 30; color:#333333; } CWaitGifForm QFrame#frame { background: #ffffff; min-height:0; max-height:100000; } CWaitGifForm QLabel{ background: transparent; color: #d3d3d3; } /* 标题栏 */ CCommonTitleBar QWidget { background-color: #ffffff; } QWidget#widGlobol { font-size: 16px; color:#333333; } CCommonTitleBar QToolButton { max-height: 24; max-width: 24; min-height: 24; min-width: 24; border-image: url("Skins/Default/MVSDKGuiQt/Btn_Common_WinClose_Normal.png"); } CCommonTitleBar QToolButton:hover { border-image: url("Skins/Default/MVSDKGuiQt/Btn_Common_WinClose_Hover.png"); } CCommonTitleBar QToolButton:pressed { border-image: url("Skins/Default/MVSDKGuiQt/Btn_Common_WinClose_Pressed.png"); } /*CCommonTitleBar QLabel#lbTitle { font-size: 16px; color: #ffffff; background-color: #2f2f30; min-width: 0px; max-width: 10000px; }*/ /* 弹框提示框 */ CCommonMessageBox { border: 1 solid #b9bfc8; min-width: 492; min-height: 382; } CCommonMessageBox QFrame#mainFrame { min-width: 492; background: #ffffff; margin: 1px; } CCommonMessageBox QLabel#lbIcon { margin-top: 20px; margin-bottom: 16px; min-width: 280; min-height: 200; max-width: 280; max-height: 200; } CCommonMessageBox QLabel#lbMsg { margin-top: 0px; margin-bottom: 0px; margin-left: 46px; margin-right: 46px; min-height: 0px; min-width: 0px; max-height:10000px; max-width:10000px; } CCommonMessageBox QTextEdit#textEdit { margin-top: 0px; margin-bottom: 0px; margin-left: 46px; margin-right: 46px; background: transparent; border: 0px; min-height:45; selection-background-color: #797c81; selection-color: #FFFFFF; min-height: 0px; min-width: 0px; max-height:40; max-width:10000px; } CCommonMessageBox QTextEdit#textEdit:focus { border: 0px; } CCommonMessageBox QLabel#lbIcon[icon="0"] { image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsInfo.png); } CCommonMessageBox QLabel#lbIcon[icon="1"] { image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsInfo.png); } CCommonMessageBox QLabel#lbIcon[icon="2"] { image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsWarning.png); } CCommonMessageBox QLabel#lbIcon[icon="3"] { image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsError.png); } CCommonMessageBox QLabel#lbIcon[icon="4"] { image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsConfirm.png); } CCommonMessageBox QFrame#line { background-color: #b9bfc8; max-height: 1; min-height: 1; min-width: 492px; border: 0px; margin-bottom: 9px; margin-top: 32px; } CCommonMessageBox QFrame#line_2 { background-color: #b9bfc8; max-height: 1; min-height: 1; border: 0px; } CCommonMessageBox QPushButton{ min-height: 30px; max-height: 30px; height: 30px; min-width: 80px; outline: none; background-color: #ffffff; border-radius: 3px; border: 1px solid #b9bfc8; color: #333333; } CCommonMessageBox QPushButton:hover { outline: none; color: #333333; background-color: #f0f2f3; } CCommonMessageBox QPushButton:pressed { outline: none; color: #333333; background-color: #f0f2f3; } CCommonMessageBox QPushButton:disabled { outline: none; color: #cbcbcb; background-color: #ffffff; } CCommonMessageBox QPushButton:default { background: #ffffff; color: #333333; } CCommonMessageBox QPushButton:default:hover { outline: none; color: #333333; background-color: #f0f2f3; } CCommonMessageBox QPushButton:default:pressed { outline: none; color: #333333; background-color: #f0f2f3; } CCommonMessageBox QPushButton:default:disabled { outline: none; color: #cbcbcb; background-color: #ffffff; } /* */ QSplitter:handle:vertical { background:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(69, 70, 70, 255), stop:1 rgba(0, 0, 0, 255)); } QSplitter:handle:horizontal { background:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(69, 70, 70, 255), stop:1 rgba(0, 0, 0, 255)); } /* QFrame默认边框为0,规避不同操作系统显示不一致问题 */ QFrame { border:0px solid #000000; }