/*Zvo播放器深色主题样式QSS文件*/ $Button_Hover_BackGround_Color = #ffffff; $m_QWidget_BackGround_Color = #F3F3F3; $m_QWidget_Font_Color = #2F4F4F; QWidget{ background-color: $m_QWidget_BackGround_Color; color:$m_QWidget_Font_Color; } QWidget#m_QWidget{ border-radius:10px; } QToolButton{ margin-right:3px; margin-bottom:0px; border-radius:8px; font-family: "Microsoft YaHei"; font-weight: bold; font: bold 12px; } QPushButton{ margin-right:3px; margin-bottom:0px; border-radius:8px; font-family: "Microsoft YaHei"; font-weight: bold; font: bold 12px; } QPushButton#icoButton{ image:url(:/res/img/zvo.png); border:none; } QPushButton#t_backButton{ image:url(:/res/img/light/exit.png); border:none; } /*播放列表控件样式*/ QPushButton#searchButton{ image:url(:/res/img/light/search.png); border:none; width:15px; height:15px; } QPushButton:hover{ padding-left:1px; padding-top:1px; } /*播放器按钮-Pressed*/ QPushButton:pressed{ padding-left:2px; padding-top:2px; } QMenu { background-color : rgb(253,253,254); border-radius:15px; } QMenu::item { font-size:10pt; color: rgb(0,0,0); background-color:rgb(253,253,254); padding: 8px 25px 6px 10px; margin: 1px 1px; } QMenu::item:selected { background-color : rgb(236,236,237); } QMenu::icon:checked { background: rgb(253,253,254); position: absolute; top: 1px; right: 1px; bottom: 1px; left: 1px; } QMenu::icon:checked:selected { background-color : rgb(236,236,237); background-image: url(:/space_selected.png); } QMenu::separator { height: 2px; background: rgb(235,235,236); margin-left: 10px; margin-right: 10px; } QPushButton#searchButton,#t_backButton:hover{ padding-left:1px; padding-top:1px; } QPushButton#searchButton,#t_backButton:pressed{ padding-left:2px; padding-top:2px; } QLineEdit#search_QLineEdit{ background: $m_QWidget_BackGround_Color; color:$m_QWidget_Font_Color; border: 1px solid gray; border-radius: 2px; padding: 0 8px; selection-background-color: darkgray; } /*QComboBox样式*/ QComboBox { height: 25px; border-radius: 4px; border: 1px solid rgb(100, 100, 100); background: #f3f3f3; } QComboBox:enabled { color:#2f4f4f; } QComboBox:!enabled { color: rgb(155, 155, 155); } QComboBox::drop-down { width: 20px; border: none; } QComboBox::drop-down:hover { color:$Button_Hover_BackGround_Color; } QComboBox::down-arrow:on { top: 1px; } QComboBox QAbstractItemView { border: 1px solid rgb(100, 100, 100); background: #f3f3f3; outline: none; } QComboBox QAbstractItemView::item { height: 25px; color: $m_QWidget_Font_Color; } QComboBox QAbstractItemView::item:selected { color:$Button_Hover_BackGround_Color; background:rgb(0,120,215); } QComboBox QAbstractItemView::item:hover { color:$Button_Hover_BackGround_Color; background:rgb(0,120,215); } /*QTabWidget样式*/ QTabWidget{ background-color:transparent; } QTabWidget::pane{ border:0px; } QTabWidget::tab-bar{ alignment: center; border:1px rgb(255,255,255); } /*通用QTabBar样式*/ QTabBar::tab{ /*border: 1px solid gray;*/ border-radius: 3px; color:$m_QWidget_Font_Color; min-width:25ex; min-height:8ex; } QTabBar::tab:hover{ background:rgb(0,120,215); color:$Button_Hover_BackGround_Color; } QTabBar::tab:selected{ border-color: $m_QWidget_BackGround_Color; background:rgb(0,120,215); color:$Button_Hover_BackGround_Color; } /*标题栏QTabBar样式*/ QTabBar#MediaTitleBar::tab{ border-bottom: 0px; border-radius: 3px; color:$m_QWidget_Font_Color; min-width:50ex; height: 40px; } QTabBar#MediaTitleBar::tab:hover{ background:rgb(214,214,214); color:$m_QWidget_Font_Color; } QTabBar#MediaTitleBar::tab:selected{ border-color: $m_QWidget_BackGround_Color; background:rgb(214,214,214); color:$m_QWidget_Font_Color; } QTabBar#MediaTitleBar::close-button{ min-width:30px; min-height:30px; subcontrol-origin: padding; subcontrol-position: bottom right; border-image: url(:/res/img/light/close_little.png); } QTabBar#MediaTitleBar::close-button:hover{ background: rgb(192,192,192); } /*QTableView样式*/ QTableView{ selection-background-color:rgb(255,0,0); background:$m_QWidget_BackGround_Color; border:1px rgb(255,255,255); color:rgb(200,200,200) } QTableView::item { background-color:$m_QWidget_BackGround_Color; border:1px solid #2f4f4f; color:$m_QWidget_Font_Color; } QTableView::item:hover { color:$Button_Hover_BackGround_Color; background:rgb(0,120,215); } QTableView::item::selected { color:$Button_Hover_BackGround_Color; background:rgb(0,120,215); outline:0px; } QHeaderView::section{ color:#2f4f4f; background:#f3f3f3; border:1px solid #2f4f4f; border-bottom:1px solid #f3f3f3; } QHeaderView::section:hover { color:$Button_Hover_BackGround_Color; background:rgb(0,120,215); } /*滚动条样式*/ QScrollBar:vertical{ border: none; background-color:$m_QWidget_BackGround_Color; width:10px; } QScrollBar::handle:vertical{ background:rgb(0,120,215); border-radius:4px; } QScrollBar::handle:vertical:hover{ background:rgb(0,120,215); } QScrollBar::handle:vertical{ background:rgb(0,120,215); border-radius:4px; } QScrollBar::handle:vertical:hover{ background:rgb(0,120,255);; } QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical { background:$m_QWidget_BackGround_Color; border-radius:3px; } /*播放进度条*/ QSlider::groove:horizontal { border: 0px solid #bbb; } QSlider::sub-page:horizontal { background: rgb(235,97,0); border-radius: 3px; margin-top:8px; margin-bottom:8px; } QSlider::add-page:horizontal { background: rgb(255,255, 255); border: 0px solid #777; border-radius: 2px; margin-top:8px; margin-bottom:8px; } QSlider::handle:horizontal { background: rgb(255,153,102); border: 1px solid rgb(255,153,102); width: 14px; height:10px; border-radius: 8px; margin-top:3px; margin-bottom:3px; } QSlider::handle:horizontal:hover { background: rgb(255,128,6); border: 1px solid rgba(102,102,102,102); border-radius: 7px; } QSlider::sub-page:horizontal:disabled { background: #bbb; border-color: #999; } QSlider::add-page:horizontal:disabled { background: #eee; border-color: #999; } QSlider::handle:horizontal:disabled { background: #eee; border: 1px solid #aaa; border-radius: 4px; } /*------------------标题栏样式 最小化 最大化 关闭---------------------*/ /*标题栏变量参数值定义*/ $titleBar_QWidget_BackGround_Color = #ffffff; /*标题栏背景*/ QWidget#mediaTitle{ background-color: $titleBar_QWidget_BackGround_Color; margin-top:1px; margin-right:1px; margin-bottom:1px; margin-left:1px; } QPushButton#minimizeButton{ image:url(":/res/img/btn/btn_min.png"); border:none; width:20px; height:20px; } QPushButton#maximizeButton{ image:url(":/res/img/btn/btn_max.png"); border:none; width:20px; height:20px; } QPushButton#closeButton{ image:url(":/res/img/btn/btn_close.png"); border:none; width:20px; height:20px; } /*----------------------鼠标移动到按钮上---------------------------*/ QPushButton#minimizeButton:hover{ padding-left:1px; padding-top:1px; } QPushButton#maximizeButton:hover{ padding-left:1px; padding-top:1px; } QPushButton#closeButton:hover{ padding-left:1px; padding-top:1px; } /*----------------------鼠标按下到按钮上---------------------------*/ QPushButton#minimizeButton:pressed{ padding-left:2px; padding-top:2px; } QPushButton#maximizeButton:pressed{ padding-left:2px; padding-top:2px; } QPushButton#closeButton:pressed{ padding-left:1px; padding-top:1px; } /*------------------播放器面板样式---------------------*/ /*播放器面板变量参数值定义*/ $m_MediaPlayer_Slider_QWidget_Color = #c7fdff; $b_max_size = 25px; QWidget#m_MediaPlayerSliderQWidget{ background-color: $m_QWidget_BackGround_Color; } QWidget#m_videoWidget{ background-color:$m_QWidget_BackGround_Color; background-image:url(:/res/img/zvo.png); background-position:center; background-repeat:no-repeat; } /*播放器按钮-默认*/ QPushButton#m_btnvolume{ image:url(":/res/img/light/volume_open.png"); border:none; max-width:$b_max_size; max-height:$b_max_size; } QPushButton#m_btnPlay{ image:url(":/res/img/light/play.png"); border:none; max-width:$b_max_size; max-height:$b_max_size; } QPushButton#m_btnClose{ image:url(":/res/img/light/close.png"); border:none; border:none; max-width:$b_max_size; max-height:$b_max_size; } QPushButton#m_btnStop{ image:url(":/res/img/light/stop.png"); border:none; max-width:$b_max_size; max-height:$b_max_size; } QPushButton#m_btnPrev{ image:url(":/res/img/light/prev.png"); border:none; max-width:$b_max_size; max-height:$b_max_size; } QPushButton#m_btnNext{ image:url(":/res/img/light/next.png"); border:none; max-width:$b_max_size; max-height:$b_max_size; } QPushButton#m_btnEq{ image:url(":/res/img/light/equalizer.png"); border:none; max-width:$b_max_size; max-height:$b_max_size; } QPushButton#m_btnSet{ image:url(":/res/img/light/setting.png"); border:none; max-width:$b_max_size; max-height:$b_max_size; } QPushButton#m_btnMenuOpt{ image:url(":/res/img/light/menu.png"); border:none; max-width:$b_max_size; max-height:$b_max_size; } QPushButton#m_btnDown{ image:url(":/res/img/light/download.png"); border:none; max-width:$b_max_size; max-height:$b_max_size; } /*播放器按钮-Hover*/ QPushButton#m_btnvolume:hover{ background: $Button_Hover_BackGround_Color; }