XSteam/res/qss/dark.qsst
2024-10-11 19:40:20 +08:00

420 lines
8.6 KiB
Plaintext

/*Zvo播放器深色主题样式QSS文件*/
$Button_Hover_BackGround_Color = ;
$m_QWidget_BackGround_Color = #1b1b1b;
/*备份字体颜色#ff9000*/
$m_QWidget_Font_Color = #F0F0F0F0;
QWidget{
background-color: $m_QWidget_BackGround_Color;
color:$m_QWidget_Font_Color;
font:10pt;
}
QPushButton#icoButton{
image:url(:/res/img/zvo.png);
border:none;
}
QPushButton#t_backButton{
image:url(:/res/img/dark/exit.png);
border:none;
}
/*播放列表控件样式*/
QPushButton#searchButton{
image:url(:/res/img/dark/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: rgb(72, 72, 73);
}
QComboBox:enabled {
color:$m_QWidget_Font_Color;
}
QComboBox:!enabled {
color: rgb(155, 155, 155);
}
QComboBox:enabled:hover, QComboBox:enabled:focus {
color: rgb(230, 230, 230);
background: rgb(68, 69, 73);
}
QComboBox::drop-down {
width: 20px;
border: none;
background: transparent;
}
QComboBox::drop-down:hover {
background: rgba(255, 255, 255, 30);
}
QComboBox::down-arrow:on {
top: 1px;
}
QComboBox QAbstractItemView {
border: 1px solid rgb(100, 100, 100);
background: rgb(68, 69, 73);
outline: none;
}
QComboBox QAbstractItemView::item {
height: 25px;
color: rgb(175, 175, 175);
}
QComboBox QAbstractItemView::item:selected {
background: rgba(255, 255, 255, 40);
color: rgb(230, 230, 230);
}
/*QTabWidget样式*/
QTabWidget{
background-color:transparent;
}
QTabWidget::pane{
border:2px;
}
QTabWidget::tab-bar{
border:2px;
alignment:left;
}
QTabBar::tab{
border: 1px solid gray;
border-radius: 5px;
border:2px;
background:$m_QWidget_BackGround_Color;
color:$m_QWidget_Font_Color;
min-width:20ex;
min-height:6ex;
}
QTabBar::tab:hover{
background:#006161;
color:$m_QWidget_Font_Color = #F0F0F0F0;
}
QTabBar::tab:selected{
border-color: black;
background:#9fa493;
color:$m_QWidget_Font_Color;
}
/*QTableView样式*/
QTableView
{
background: rgb(55,55,55);
}
QTableView{
selection-background-color:rgb(255,0,0);
background-color:rgb(50,50,50);
border:1px solid rgb(70,70,70);
color:rgb(200,200,200)
}
QTableView::item
{
background-color:$m_QWidget_BackGround_Color;
border:1px solid rgb(65,65,65);
color:$m_QWidget_Font_Color;
}
QTableView::item:hover
{
background-color: rgb(30,30,30);
color:rgb(31,163,246);
}
QTableView::item::selected
{
background-color: rgb(30,30,30);
color:rgb(31,163,246);
}
QHeaderView::section{
background-color:rgb(90,90,90);
color:rgb(200,200,200);
border:1px solid rgb(60,60,60);
border-bottom:1px solid rgb(70,70,70);
}
QHeaderView::section:hover
{
background-color:rgb(80,80,80);
}
/*滚动条样式*/
QScrollBar:vertical{
border: none;
background-color:$m_QWidget_BackGround_Color;
width:10px;
}
QScrollBar::handle:vertical{
background:#9fa480;
border-radius:4px;
}
QScrollBar::handle:vertical:hover{
background:#9fa493;
}
QScrollBar::add-line:vertical{
border: none;
height: 0px;
}
QScrollBar::sub-line:vertical{
border: none;
height: 0px;
}
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: 0px;
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: 7px;
margin-top:2px;
margin-bottom:2px;
}
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/dark/volume_open.png");
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
QPushButton#m_btnPlay{
image:url(":/res/img/dark/play.png");
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
QPushButton#m_btnClose{
image:url(":/res/img/dark/close.png");
border:none;
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
QPushButton#m_btnStop{
image:url(":/res/img/dark/stop.png");
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
QPushButton#m_btnPrev{
image:url(":/res/img/dark/prev.png");
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
QPushButton#m_btnNext{
image:url(":/res/img/dark/next.png");
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
QPushButton#m_btnEq{
image:url(":/res/img/dark/equalizer.png");
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
QPushButton#m_btnSet{
image:url(":/res/img/dark/setting.png");
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
QPushButton#m_btnMenuOpt{
image:url(":/res/img/dark/menu.png");
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
QPushButton#m_btnDown{
image:url(":/res/img/dark/download.png");
border:none;
max-width:$b_max_size;
max-height:$b_max_size;
}
/*播放器按钮-Hover*/
QPushButton#m_btnvolume:hover{
background: $Button_Hover_BackGround_Color;
}