/* * * 标题 :样式表-黑色 * * 说明 : 该文件是用于实现Qt开发过程中,使用qss换肤效果,以下url加载图片路径,均为资源路径。 * */ *{ font-size: 16px; font-family: "Microsoft YaHei"; } /**********主界面**********/ QWidget#frmMain, QWidget#frmMessageBox{ border:1px solid #656565; border-radius:0px; background-color: #434343; } /**********边框**********/ .QFrame{ border:1px solid rgb(213,227,251,255);/*#282828;*/ border-radius:5px; } /**********自定义标题栏背景**********/ QWidget#wgtTitleBar{ background: rgba(0,0,0,255);/*rgba(24,27,36,255);*/ } QWidget#centralWidget, QWidget#scrollAreaWidgetContents, QWidget#WidgetSetting, QWidget#WidgetAdjustImage{ background: rgba(222,225,230,255); } QWidget#LeftWidget, QWidget#RightWidget, QWidget#widgetState{ background: rgba(40,45,54,255); } QPlainTextEdit{ background: rgba(222,225,230,255); font-size: 18px; font-weight: bold; color: rgb(0,72,255,255); } /**********自定义标题栏标签**********/ QLabel#lblTitle{ font-size: 22px; font-weight: bold; border-radius:0px; color: #FFFFFF; background-color:rgba(0,0,0,0); border-style:none; } QLabel#lblSystemIcon { border-image:url(:/skin/image/white/all_logo_1.png); } QLabel#labelSpeed{ font-size: 18px; font-weight: bold; color: rgb(0,72,255,255); } QLabel#labelTimeDate, QLabel#labelVersion { color: #FFFFFF; } /**********标签**********/ QLabel { color: #000000; } /**********输入框 & 文本编辑框**********/ QLineEdit, QTextEdit { color: rgb(0,72,255,255);/*#51ACFA;*/ font-weight: bold; font-size: 18px; border: 0px; padding: 2px; background: #FFFFFF;/*#262626;*/ selection-background-color: #0F7DBE; border: 1px solid rgb(149,168,207,255);/*#282828;*/ } QLineEdit:hover, QTextEdit:hover, QLineEdit:focus, QTextEdit:focus{ /*border: 1px solid #51ACFA;*/ } QLineEdit:read-only, QTextEdit:read-only { selection-color: #FFFFFF; selection-background-color: #0F7DBE; } QLineEdit:disabled, QTextEdit:disabled { color: #909090; background: #696969; border: 0px; } QLineEdit[echoMode="2"] { lineedit-password-character: 9679; } /**********分组框**********/ .QGroupBox{ font: bold; color: #000000; border: 2px solid #FFFFFF;/*#3C3f4A;*/ margin-top: 44px; background: rgba(255,255,255,255);/*rgba(24,26,37,255);*/ } .QGroupBox::title { subcontrol-origin: margin; padding: 10px 10px 10px 10px; border: 2px solid #FFFFFF;/*#3C3f4A;*/ border-left: 3px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #51A2FE, stop: 1 #2A81E4); /*border-right: 2px solid qlineargradient(x1: 1, y1: 0, x2: 1, y2: 1, stop: 0 #51A2FE, stop: 1 #2A81E4);*/ subcontrol-position: left top; /* position at the left top */ left: 0px; background-color: rgba(213,227,251,255); /*padding-left: 2000px;*/ padding-right: 2000px; } /**********按钮**********/ .QPushButton{ color: #000000;/*#F0F0F0;*/ width: 100px; height: 35px; font-size: 16px; border-image: url(:/skin/image/white/all_bt_control_4_nor.png); } .QPushButton:hover{ border-image: url(:/skin/image/white/all_bt_control_4_hover.png); } .QPushButton:pressed{ color: #F0F0F0; border-image: url(:/skin/image/white/all_bt_control_4_pre.png); } .QPushButton:disabled{ color: #345D83; border-image: url(:/skin/image/white/all_bt_control_4_dis.png); } /*up*/ QPushButton#pushButtonTRWavePlaceUp{ width: 41px; height: 54px; border-image: url(:/skin/image/white/bt_up_nor.png);} QPushButton#pushButtonTRWavePlaceUp:hover{ border-image: url(:/skin/image/white/bt_up_hover.png);} QPushButton#pushButtonTRWavePlaceUp:pressed{ border-image: url(:/skin/image/white/bt_up_pre.png);} QPushButton#pushButtonTRWavePlaceUp:disabled{ border-image: url(:/skin/image/white/bt_up_dis.png);} /*down*/ QPushButton#pushButtonTRWavePlaceDown{ width: 41px; height: 54px; border-image: url(:/skin/image/white/bt_down_nor.png);} QPushButton#pushButtonTRWavePlaceDown:hover{ border-image: url(:/skin/image/white/bt_down_hover.png);} QPushButton#pushButtonTRWavePlaceDown:pressed{ border-image: url(:/skin/image/white/bt_down_pre.png);} QPushButton#pushButtonTRWavePlaceDown:disabled{ border-image: url(:/skin/image/white/bt_down_dis.png);} /*left*/ QPushButton#pushButtonTRWavePlaceLeft{ width: 41px; height: 54px; border-image: url(:/skin/image/white/bt_left_nor.png);} QPushButton#pushButtonTRWavePlaceLeft:hover{ border-image: url(:/skin/image/white/bt_left_hover.png);} QPushButton#pushButtonTRWavePlaceLeft:pressed{ border-image: url(:/skin/image/white/bt_left_pre.png);} QPushButton#pushButtonTRWavePlaceLeft:disabled{ border-image: url(:/skin/image/white/bt_left_dis.png);} /*right*/ QPushButton#pushButtonTRWavePlaceRight{ width: 41px; height: 54px; border-image: url(:/skin/image/white/bt_right_nor.png);} QPushButton#pushButtonTRWavePlaceRight:hover{ border-image: url(:/skin/image/white/bt_right_hover.png);} QPushButton#pushButtonTRWavePlaceRight:pressed{ border-image: url(:/skin/image/white/bt_right_pre.png);} QPushButton#pushButtonTRWavePlaceRight:disabled{ border-image: url(:/skin/image/white/bt_right_dis.png);} /* 方形- ----------------------------------------------*/ /* QPushButton#pushButtonTVLightS{ width: 41px; height: 54px; border-image: url(:/skin/image/white/video_bt_inputLeft_nor.png);} QPushButton#pushButtonTVLightS:hover{ border-image: url(:/skin/image/white/video_bt_inputLeft_hover.png);} QPushButton#pushButtonTVLightS:pressed{ border-image: url(:/skin/image/white/video_bt_inputLeft_pre.png);} QPushButton#pushButtonTVLightS:disabled{ border-image: url(:/skin/image/white/video_bt_inputLeft_dis.png);} */ /* 方形+ ----------------------------------------------*/ /* QPushButton#pushButtonTVLightA{ width: 41px; height: 54px; border-image: url(:/skin/image/white/video_bt_inputRight_nor.png);} QPushButton#pushButtonTVLightA:hover{ border-image: url(:/skin/image/white/video_bt_inputRight_hover.png);} QPushButton#pushButtonTVLightA:pressed{ border-image: url(:/skin/image/white/video_bt_inputRight_pre.png);} QPushButton#pushButtonTVLightA:disabled{ border-image: url(:/skin/image/white/video_bt_inputRight_dis.png);} */ /* 1 ----------------------------------------------*/ QPushButton#pushButtonLeftUp{ width: 76px; height: 75px; border-image: url(:/skin/image/white/video_bt_control_upLeft_nor.png);} QPushButton#pushButtonLeftUp:hover{ border-image: url(:/skin/image/white/video_bt_control_upLeft_hover.png);} QPushButton#pushButtonLeftUp:pressed{ border-image: url(:/skin/image/white/video_bt_control_upLeft_pre.png);} QPushButton#pushButtonLeftUp:disabled{ border-image: url(:/skin/image/white/video_bt_control_upLeft_dis.png);} /* 2 ----------------------------------------------*/ QPushButton#pushButtonUp{ width: 62px; height: 75px; border-image: url(:/skin/image/white/video_bt_control_up_nor.png);} QPushButton#pushButtonUp:hover{ border-image: url(:/skin/image/white/video_bt_control_up_hover.png);} QPushButton#pushButtonUp:pressed{ border-image: url(:/skin/image/white/video_bt_control_up_pre.png);} QPushButton#pushButtonUp:disabled{ border-image: url(:/skin/image/white/video_bt_control_up_dis.png);} /* 3 ----------------------------------------------*/ QPushButton#pushButtonRightUp{ width: 75px; height: 75px; border-image: url(:/skin/image/white/video_bt_control_upRight_nor.png);} QPushButton#pushButtonRightUp:hover{ border-image: url(:/skin/image/white/video_bt_control_upRight_hover.png);} QPushButton#pushButtonRightUp:pressed{ border-image: url(:/skin/image/white/video_bt_control_upRight_pre.png);} QPushButton#pushButtonRightUp:disabled{ border-image: url(:/skin/image/white/video_bt_control_upRight_dis.png);} /* 4 ----------------------------------------------*/ QPushButton#pushButtonLeft{ width: 76px; height: 62px; border-image: url(:/skin/image/white/video_bt_control_left_nor.png);} QPushButton#pushButtonLeft:hover{ border-image: url(:/skin/image/white/video_bt_control_left_hover.png);} QPushButton#pushButtonLeft:pressed{ border-image: url(:/skin/image/white/video_bt_control_left_pre.png);} QPushButton#pushButtonLeft:disabled{ border-image: url(:/skin/image/white/video_bt_control_left_dis.png);} /* 5 ----------------------------------------------*/ QPushButton#pushButtonCenter{ width: 62px; height: 62px; border-image: url(:/skin/image/white/video_bt_control_center_nor.png);} QPushButton#pushButtonCenter:hover{ border-image: url(:/skin/image/white/video_bt_control_center_hover.png);} QPushButton#pushButtonCenter:pressed{ border-image: url(:/skin/image/white/video_bt_control_center_pre.png);} QPushButton#pushButtonCenter:disabled{ border-image: url(:/skin/image/white/video_bt_control_center_dis.png);} /* 6 ----------------------------------------------*/ QPushButton#pushButtonRight{ width: 75px; height: 62px; border-image: url(:/skin/image/white/video_bt_control_right_nor.png);} QPushButton#pushButtonRight:hover{ border-image: url(:/skin/image/white/video_bt_control_right_hover.png);} QPushButton#pushButtonRight:pressed{ border-image: url(:/skin/image/white/video_bt_control_right_pre.png);} QPushButton#pushButtonRight:disabled{ border-image: url(:/skin/image/white/video_bt_control_right_dis.png);} /* 7 ----------------------------------------------*/ QPushButton#pushButtonLeftDown{ width: 76px; height: 75px; border-image: url(:/skin/image/white/video_bt_control_downLeft_nor.png);} QPushButton#pushButtonLeftDown:hover{ border-image: url(:/skin/image/white/video_bt_control_downLeft_hover.png);} QPushButton#pushButtonLeftDown:pressed{ border-image: url(:/skin/image/white/video_bt_control_downLeft_pre.png);} QPushButton#pushButtonLeftDown:disabled{ border-image: url(:/skin/image/white/video_bt_control_downLeft_dis.png);} /* 8 ----------------------------------------------*/ QPushButton#pushButtonDown{ width: 76px; height: 75px; border-image: url(:/skin/image/white/video_bt_control_down_nor.png);} QPushButton#pushButtonDown:hover{ border-image: url(:/skin/image/white/video_bt_control_down_hover.png);} QPushButton#pushButtonDown:pressed{ border-image: url(:/skin/image/white/video_bt_control_down_pre.png);} QPushButton#pushButtonDown:disabled{ border-image: url(:/skin/image/white/video_bt_control_down_dis.png);} /* 9 ----------------------------------------------*/ QPushButton#pushButtonRightDown{ width: 76px; height: 75px; border-image: url(:/skin/image/white/video_bt_control_downRight_nor.png);} QPushButton#pushButtonRightDown:hover{ border-image: url(:/skin/image/white/video_bt_control_downRight_hover.png);} QPushButton#pushButtonRightDown:pressed{ border-image: url(:/skin/image/white/video_bt_control_downRight_pre.png);} QPushButton#pushButtonRightDown:disabled{ border-image: url(:/skin/image/white/video_bt_control_downRight_dis.png);} /*****************标题栏按钮*******************/ QPushButton#btnMenu {image: url(:/skin/image/white/window_menu.png);} QPushButton#btnMinMenu { width: 38px; height: 38px; image: url(:/skin/image/white/all_ic_min_nor.png);} QPushButton#btnMaxMenu {image: url(:/skin/image/white/all_ic_small__nor.png);} QPushButton#btnMaxMenu[maximizeProperty="maximize"] {image: url(:/skin/image/white/all_ic_small__nor.png);} QPushButton#btnMaxMenu[maximizeProperty="restore"] {image: url(:/skin/image/white/all_ic_small__nor.png);} QPushButton#btnMenu { width: 38px; height: 38px; image: url(:/skin/image/white/all_ic_skin_nor.png);} QPushButton#btnCloseMenu { width: 38px; height: 38px; image: url(:/skin/image/white/all_ic_close_nor.png);} QPushButton#btnMenu,QPushButton#btnMinMenu,QPushButton#btnMaxMenu,QPushButton#btnCloseMenu{ border-radius:0px; color: #F0F0F0; background-color: rgba(0,0,0,0); border-style:none; } QPushButton#btnMenu:hover,QPushButton#btnMinMenu:hover,QPushButton#btnMaxMenu:hover{ background-color: #909090; } QPushButton#btnMenu:pressed,QPushButton#btnMinMenu:pressed,QPushButton#btnMaxMenu:pressed{ padding: 1px -1px -1px 1px; } QPushButton#btnCloseMenu:hover{ background-color: #909090; } QPushButton#btnCloseMenu:pressed{ padding: 1px -1px -1px 1px; } QPushButton#btnMenu:menu-indicator { image:none; } /**********复选框**********/ QCheckBox { color: #FFFFFF; spacing: 2px; } QCheckBox::indicator { width: 24px; height: 24px; } QCheckBox::indicator:unchecked { image: url(:/skin/image/white/all_bt_CheckBox_nor.png); } QCheckBox::indicator:unchecked:hover { image: url(:/skin/image/white/all_bt_CheckBox_hover.png); } QCheckBox::indicator:unchecked:pressed { image: url(:/skin/image/white/all_checkBox2_nor.png); } QCheckBox::indicator:checked { image: url(:/skin/image/white/all_checkBox2_nor.png); } QCheckBox::indicator:checked:hover { image: url(:/skin/image/white/all_checkBox_choose_hover.png); } QCheckBox::indicator:checked:pressed { image: url(:/skin/image/white/all_bt_CheckBox_nor.png); } QCheckBox::indicator:checked:disabled { color: #909090; image: url(:/skin/image/white/all_checkBox2_dis.png); } QCheckBox::indicator:unchecked:disabled { color: #909090; image: url(:/skin/image/white/all_bt_CheckBox_dis.png); } QCheckBox:disabled { color: #909090; } /* Power */ QCheckBox#checkBoxIRPower1::indicator:unchecked , QCheckBox#checkBoxIRPower2::indicator:unchecked , QCheckBox#checkBoxTVPower::indicator:unchecked , QCheckBox#checkBoxPlatformPower::indicator:unchecked , QCheckBox#checkBoxLaserPower::indicator:unchecked {width: 72px;height: 54px;image: url(:/skin/image/white/video_bt_switch_close.png);} QCheckBox#checkBoxIRPower1::indicator:unchecked:hover , QCheckBox#checkBoxIRPower2::indicator:unchecked:hover , QCheckBox#checkBoxTVPower::indicator:unchecked:hover , QCheckBox#checkBoxPlatformPower::indicator:unchecked:hover , QCheckBox#checkBoxLaserPower::indicator:unchecked:hover {image: url(:/skin/image/white/video_bt_switch_close_hover.png);} QCheckBox#checkBoxIRPower1::indicator:unchecked:pressed , QCheckBox#checkBoxIRPower2::indicator:unchecked:pressed , QCheckBox#checkBoxTVPower::indicator:unchecked:pressed , QCheckBox#checkBoxPlatformPower::indicator:unchecked:pressed , QCheckBox#checkBoxLaserPower::indicator:unchecked:pressed {image: url(:/skin/image/white/video_bt_switch_open.png);} QCheckBox#checkBoxIRPower1::indicator:checked , QCheckBox#checkBoxIRPower2::indicator:checked , QCheckBox#checkBoxTVPower::indicator:checked , QCheckBox#checkBoxPlatformPower::indicator:checked , QCheckBox#checkBoxLaserPower::indicator:checked {width: 72px;height: 54px;image: url(:/skin/image/white/video_bt_switch_open.png);} QCheckBox#checkBoxIRPower1::indicator:checked:hover , QCheckBox#checkBoxIRPower2::indicator:checked:hover , QCheckBox#checkBoxTVPower::indicator:checked:hover , QCheckBox#checkBoxPlatformPower::indicator:checked:hover , QCheckBox#checkBoxLaserPower::indicator:checked:hover {image: url(:/skin/image/white/video_bt_switch_open_hover.png);} QCheckBox#checkBoxIRPower1::indicator:checked:pressed , QCheckBox#checkBoxIRPower2::indicator:checked:pressed , QCheckBox#checkBoxTVPower::indicator:checked:pressed , QCheckBox#checkBoxPlatformPower::indicator:checked:pressed , QCheckBox#checkBoxLaserPower::indicator:checked:pressed {image: url(:/skin/image/white/video_bt_switch_close.png);} QCheckBox#checkBoxIRPower1::indicator:checked:disabled , QCheckBox#checkBoxIRPower2::indicator:checked:disabled , QCheckBox#checkBoxTVPower::indicator:checked:disabled , QCheckBox#checkBoxPlatformPower::indicator:checked:disabled , QCheckBox#checkBoxLaserPower::indicator:checked:disabled {color: #909090;image: url(:/skin/image/white/video_bt_switch_open_dis.png);} QCheckBox#checkBoxIRPower1::indicator:unchecked:disabled , QCheckBox#checkBoxIRPower2::indicator:unchecked:disabled , QCheckBox#checkBoxTVPower::indicator:unchecked:disabled , QCheckBox#checkBoxPlatformPower::indicator:unchecked:disabled , QCheckBox#checkBoxLaserPower::indicator:unchecked:disabled {color: #909090;image: url(:/skin/image/white/video_bt_switch_close_hover.png);} /**********单选框**********/ QRadioButton { color: #FFFFFF; spacing: 2px; } QRadioButton::indicator { width: 24px; height: 24px; } QRadioButton::indicator::unchecked { image: url(:/skin/image/white/all_radio_nor.png); } QRadioButton::indicator::unchecked:hover { image: url(:/skin/image/white/all_radio_hover.png); } QRadioButton::indicator::unchecked:pressed { image: url(:/skin/image/white/all_radio_choose_nor.png); } QRadioButton::indicator::checked { image: url(:/skin/image/white/all_radio_choose_nor.png); } QRadioButton::indicator::checked:hover { image: url(:/skin/image/white/all_radio_choose_hover.png); } QRadioButton::indicator::checked:pressed { image: url(:/skin/image/white/all_radio_nor.png); } QRadioButton::indicator:checked:disabled { color: #909090; image: url(:/skin/image/white/all_radio_choose_dis.png); } QRadioButton::indicator:unchecked:disabled { color: #909090; image: url(:/skin/image/white/all_radio_dis.png); } QRadioButton:disabled { color: #909090; } /**********下拉列表 & 日期编辑 & 时间编辑 & 日期时间编辑**********/ QComboBox,QDateEdit,QTimeEdit,QDateTimeEdit{ font-weight: bold; font-size: 18px; color: rgb(0,72,255,255);/*#51ACFA;*/ font-weight: bold; font-size: 18px; background: #FFFFFF;/*#313131;*/ padding: 1px 10px 1px 5px; border: 1px solid #282828; /*selection-background-color: #0F7DBE;*/ } QComboBox:disabled, QDateEdit:disabled, QTimeEdit:disabled, QDateTimeEdit:disabled{ color: #909090; background: #696969; border: 0px; } QComboBox:hover, QDateEdit:hover,QTimeEdit:hover, QDateTimeEdit:hover, QComboBox:focus, QDateEdit:focus, QTimeEdit:focus, QDateTimeEdit:focus{ /*border: 1px solid #51ACFA;*/ } QComboBox::drop-down,QDateEdit::drop-down { subcontrol-origin: padding; subcontrol-position: top right; width: 20px; border: 0px; } QComboBox::down-arrow,QDateEdit::down-arrow { width: 16px; image: url(:/skin/image/white/all_slide_down_nor.png); } QComboBox::down-arrow:hover,QDateEdit::down-arrow:hover { image: url(:/skin/image/white/all_slide_down_hover.png); } QComboBox::down-arrow:pressed,QDateEdit::down-arrow:pressed { image: url(:/skin/image/white/all_slide_down_pre.png); } QComboBox::down-arrow:disabled,QDateEdit::down-arrow:disabled { image: url(:/skin/image/white/all_slide_down_dis.png); } QComboBox QAbstractItemView { border: 1px solid #282828; color: #FFFFFF; background: #313131; selection-color: #51ACFA; selection-background-color: #262626; } QComboBox QAbstractItemView::item { min-height: 20px; } /**********菜单栏**********/ /*QMenuBar { background-color: #F2F2F2; } QMenuBar::item { color: #1A1A1A; spacing: 3px; padding: 2px 8px; background: transparent; border: 2px solid transparent; } QMenuBar::item:selected { background: transparent; } QMenuBar::item:pressed { color: #50A3F0; border-bottom: 2px solid #50A3F0; }*/ /**********菜单**********/ QMenu { color: #FFFFFF; background: #313131; border: 1px solid #282828; } QMenu::item { padding: 6px 15px 6px 25px; } QMenu::indicator:unchecked { border-image: url(:/skin/image/white/checkbox_unchecked.png); left: 5px; } QMenu::indicator:checked { border-image: url(:/skin/image/white/checkbox_checked.png); left: 5px; } QMenu::item:hover, QMenu::item:selected { color: #51ACFA; background-color: #535353; } QMenu::item:disabled { color: #909090;; } QMenu::separator { height: 1px; background: #B1B1B1; } QMenu::right-arrow { padding: 2px 0 0 5px; } /**********进度条**********/ QProgressBar { text-align: center; color: #FFFFFF; border-radius: 0px; background: #313131; border: 1px solid #282828; } QProgressBar::chunk { width: 5px; background-color: #4088C5; } /**********滑动条**********/ QSlider::groove:horizontal,QSlider::add-page:horizontal { background: #313131; height: 6px; border-radius: 3px; } QSlider::sub-page:horizontal { height: 6px; border-radius: 3px; background-color: #4088C5; } QSlider::handle:horizontal { width: 10px; height: 30px; margin-top: -8px; margin-bottom: -8px; border-radius: 5px; /*width: 12px; margin-top: -3px; margin-bottom: -3px; border-radius: 6px;*/ /*background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,stop:0.6 #4088C5, stop:0.778409 #FFFFFF);*/ image: url(:/skin/image/white/all_slide_button_nor.png); } QSlider::handle:horizontal:hover { width: 10px; height: 30px; /*background: qradialgradient(spread: pad, cx: 0.5, cy: 0.5, radius: 0.5, fx: 0.5, fy: 0.5, stop: 0.6 #51ACFA,stop:0.778409 #FFFFFF);*/ image: url(:/skin/image/white/all_slide_button_pre.png); } QSlider::groove:vertical,QSlider::sub-page:vertical { background: #313131; width: 6px; border-radius: 3px; } QSlider::add-page:vertical { width: 6px; border-radius: 3px; background-color: #4088C5; } QSlider::handle:vertical { height: 12px; margin-left: -3px; margin-right: -3px; border-radius: 6px; background: qradialgradient(spread: pad, cx: 0.5, cy: 0.5, radius: 0.5, fx: 0.5, fy: 0.5, stop: 0.6 #4088C5, stop:0.778409 #FFFFFF); } QSlider::handle:vertical:hover { background: qradialgradient(spread: pad, cx: 0.5, cy: 0.5, radius: 0.5, fx: 0.5, fy: 0.5, stop: 0.6 #51ACFA,stop:0.778409 #FFFFFF); } /**********滚动条-水平**********/ QScrollBar:horizontal { height:10px; background-color: #313131; padding-left: 10px; padding-right: 10px; border-radius: 5px; } QScrollBar::handle:horizontal { height:10px; border-radius: 5px; margin: 0px -10px 0px -10px; background: #666666; } QScrollBar::handle:horizontal:hover { height:10px; background: #909090; } QScrollBar::add-line:horizontal { height:0px; width:0px; } QScrollBar::sub-line:horizontal { height:10px; width:10px; subcontrol-position: left; subcontrol-origin: margin; background-color: transparent; } QScrollBar::add-page:horizontal,QScrollBar::sub-page:horizontal { height:10px; background-color: transparent; } /**********滚动条-垂直**********/ QScrollBar:vertical { width:10px; background-color: #313131; padding-top: 10px; padding-bottom: 10px; border-radius: 5px; } QScrollBar::handle:vertical { width:10px; border-radius: 5px; margin: -10px 0px -10px 0px; background: #666666; } QScrollBar::handle:vertical:hover { width:10px; background: #909090; } QScrollBar::add-line:vertical { height:0px; width:0px; } QScrollBar::sub-line:vertical { height:10px; width:10px; subcontrol-position: top; subcontrol-origin: margin; background-color: transparent; } QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical { width:10px; background-color: transparent; } /**********滚动区域**********/ QScrollArea { border: 0px ; /*background-color: rgba(24,26,37,255);*/ background: transparent; } /**********树形表 & 列表 & 表格**********/ QTreeView,QListView,QTableView { color: #51ACFA; border: 1px solid #424242; selection-background-color: #FFFFFF; selection-color: #FFFFFF; background-color: #191919; alternate-background-color: #3A3A3A; outline: #282828; } QTableView::item:selected, QListView::item:selected, QTreeView::item:selected { color: #FFFFFF; background: #424242; } QTableView::item:hover, QListView::item:hover, QTreeView::item:hover { color: #FFFFFF; background: #424242; } QTableView::item, QListView::item, QTreeView::item { margin: 0px; } QTableView::item:disabled, QListView::item:disabled, QTreeView::item:disabled { color: #909090; background: none; border: none; } QTableView QTableCornerButton::section { background: #424242; } QTableView::indicator:unchecked, QListView::indicator:unchecked, QTreeView::indicator:unchecked{ image: url(:/skin/image/white/checkbox_unchecked.png); } QTableView::indicator:unchecked:hover, QListView::indicator:unchecked:hover, QTreeView::indicator:unchecked:hover { image: url(:/skin/image/white/checkbox_unchecked_hover.png); } QTableView::indicator:unchecked:pressed, QListView::indicator:unchecked:pressed, QTreeView::indicator:unchecked:pressed { image: url(:/skin/image/white/checkbox_unchecked_pressed.png); } QTableView::indicator:checked, QListView::indicator:checked, QTreeView::indicator:checked { image: url(:/skin/image/white/checkbox_checked.png); } QTableView::indicator:checked:hover, QListView::indicator:checked:hover, QTreeView::indicator:checked:hover { image: url(:/skin/image/white/checkbox_checked_hover.png); } QTableView::indicator:checked:pressed, QListView::indicator:checked:pressed, QTreeView::indicator:checked:pressed { image: url(:/skin/image/white/checkbox_checked_pressed.png); } /**********表头**********/ QHeaderView { background: #424242;} QHeaderView::section { padding:3px; margin:0px; color: #FFFFFF; border: 1px solid #282828; background: #424242; } QHeaderView::section:horizontal { padding:3px; margin:0px; color: #FFFFFF; border: 1px solid #282828; border-bottom: 1px solid #487191; background: #424242; } QTabWidget::pane { /* The tab widget frame */ border: 0px solid #282828; border-radius: 0px; background: rgba(222,225,230,255);/*rgba(40,45,54,255);*/ top: -1px; } /**********页签项**********/ QTabBar::tab { font-size: 20px; font: bold; border-bottom-left-radius:0px; border-bottom-right-radius:0px; color: #000000; min-width: 120px; min-height: 35px; padding: 3px 8px 3px 8px; margin:1px 2px 0px 0px; background: #FFFFFF;/*#363636;*/ border: 1px solid transparent;/*1px solid #282828;*/ } QTabBar::tab:selected, QTabBar::tab:hover { color: #51ACFA; background: #FFFFFF; border-bottom: 1px solid transparent; } /**********状态栏**********/ QStatusBar::item { border: 1px solid #282828; } /**********微调器**********/ QSpinBox, QDoubleSpinBox { color: #51ACFA; border: 1px solid #282828; padding: 2px; border: 0px; background: #262626; selection-background-color: #0F7DBE; } QSpinBox:disabled, QDoubleSpinBox:disabled { color: #909090; background: #696969; border: 0px; } QSpinBox:hover, QDoubleSpinBox:hover, QSpinBox:focus, QDoubleSpinBox:focus{ /*border: 1px solid #51ACFA;*/ } QSpinBox::up-button, QDoubleSpinBox::up-button, QDateEdit::up-button, QTimeEdit::up-button, QDateTimeEdit::up-button { subcontrol-origin: border; subcontrol-position: top right; width: 16px; background: transparent; border-top-right-radius: 3px; } QSpinBox::up-arrow, QDoubleSpinBox::up-arrow, QDateEdit::up-arrow, QTimeEdit::up-arrow, QDateTimeEdit::up-arrow { image: url(:/skin/image/white/arrow_up.png); width: 7px; height: 7px; } QSpinBox::up-arrow:hover, QDoubleSpinBox::up-arrow:hover, QDateEdit::up-arrow:hover, QTimeEdit::up-arrow:hover, QDateTimeEdit::up-arrow:hover { image: url(:/skin/image/white/arrow_up_hover.png); } QSpinBox::up-arrow:pressed, QDoubleSpinBox::up-arrow:pressed, QDateEdit::up-arrow:pressed, QTimeEdit::up-arrow:pressed, QDateTimeEdit::up-arrow:pressed { image: url(:/skin/image/white/arrow_up_pressed.png); } QSpinBox::up-arrow:disabled, QDoubleSpinBox::up-arrow:disabled, QDateEdit::up-arrow:disabled, QTimeEdit::up-arrow:disabled, QDateTimeEdit::up-arrow:disabled { image: url(:/skin/image/white/arrow_up_disabled.png); } QSpinBox::up-button:disabled, QSpinBox::up-button:off, QDoubleSpinBox::up-button:disabled, QDoubleSpinBox::up-button:off, QDateEdit::up-button:disabled, QDateEdit::up-button:off, QTimeEdit::up-button:disabled, QTimeEdit::up-button:off, QDateTimeEdit::up-button:disabled, QDateTimeEdit::up-button:off { background: transparent; } QSpinBox::down-button, QDoubleSpinBox::down-button, QDateEdit::down-button, QTimeEdit::down-button, QDateTimeEdit::down-button { subcontrol-origin: border; subcontrol-position: bottom right; width: 16px; background: transparent; border-bottom-right-radius: 3px; } QSpinBox::down-arrow, QDoubleSpinBox::down-arrow, QDateEdit::down-arrow, QTimeEdit::down-arrow, QDateTimeEdit::down-arrow { image: url(:/skin/image/white/arrow_down.png); width: 7px; height: 7px; } QSpinBox::down-arrow:hover, QDoubleSpinBox::down-arrow:hover, QDateEdit::down-arrow:hover, QTimeEdit::down-arrow:hover, QDateTimeEdit::down-arrow:hover { image: url(:/skin/image/white/arrow_down_hover.png); } QSpinBox::down-arrow:pressed, QDoubleSpinBox::down-arrow:pressed, QDateEdit::down-arrow:pressed, QTimeEdit::down-arrow:pressed, QDateTimeEdit::down-arrow:pressed { image: url(:/skin/image/white/arrow_down_pressed.png); } QSpinBox::down-arrow:disabled, QDoubleSpinBox::down-arrow:disabled, QDateEdit::down-arrow:disabled, QTimeEdit::down-arrow:disabled, QDateTimeEdit::down-arrow:disabled { image: url(:/skin/image/white/arrow_down_disabled.png); } QSpinBox::down-button:disabled, QSpinBox::down-button:off, QDoubleSpinBox::down-button:disabled, QDoubleSpinBox::down-button:off, QDateEdit::down-button:disabled, QDateEdit::down-button:off, QTimeEdit::down-button:disabled, QTimeEdit::down-button:off, QDateTimeEdit::down-button:disabled, QDateTimeEdit::down-button:off { /* off state when value in min */ background: transparent; } /**********工具箱**********/ QToolBox::tab { border: 1px solid #282828; background: #535353; border-radius: 0px; } QToolBox::tab:selected { background: #363636; } /**********浮动窗口**********/ QDockWidget { color: #FFFFFF; titlebar-close-icon: url(:/skin/image/white/all_ic_close_nor.png); titlebar-normal-icon: url(:/skin/image/white/window_restore.png); } QDockWidget::title { text-align: left; background: #656565; padding: 5px; border:1px solid #282828; } QDockWidget::close-button, QDockWidget::float-button { background: transparent; padding: 0px; icon-size: 14px; } QDockWidget::close-button:hover, QDockWidget::float-button:hover { background: #909090; border: 0px; } QDockWidget::close-button:pressed, QDockWidget::float-button:pressed { padding: 1px 0px -1px 1px; } QDockWidget::close-button { subcontrol-position: top right; subcontrol-origin: margin; position: absolute; top: 0px; right: 5px; bottom: 0px; width: 12px; } QDockWidget::float-button { subcontrol-position: top right; subcontrol-origin: margin; position: absolute; top: 0px; right: 25px; bottom: 0px; width: 14px; }