Help needed to edit Dark Theme (tooltip bckg color)

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
User avatar
Eyael
Posts: 66
Joined: Mon May 09, 2011 10:27 pm
Location: France
Contact:

Help needed to edit Dark Theme (tooltip bckg color)

Post by Eyael » Sun Feb 19, 2012 10:11 pm

Hi !

I'm using XnviewMP 0.39 on Windows XP SP3 and I've been able to edit the included Dark Theme style sheets to get exactly what I wanted except for the tooltip background color. Could someone be kind enough in helping in that matter if possible?
I have entered the following line :
QToolTip {background-color : green !important;} in both style_sheet.qss and style_sheet_win.qss, added the "important" tag as well but no matter the background stays pale yellow. The theme I'm using for my Windows OS does have green background for tooltips so there must be something I missed somewhere. Thanks for your help.

http://pix.toile-libre.org/upload/origi ... 689459.jpg
Windows XP Professional SP3 32 bit

User avatar
XnTriq
Moderator & Librarian
Posts: 5596
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Help needed to edit Dark Theme (tooltip bckg color)

Post by XnTriq » Mon Feb 20, 2012 2:30 am

I went to File » Theme » Dark theme, pasted the following text into the field below style_sheet.qss and confirmed with Apply and OK:

Code: Select all

QLabel {
background-color: transparent;
}
QToolTip {
background-color: green;
}
A new files was created: %ProgramFiles%\XnViewMP\style_sheet.qss

User avatar
Eyael
Posts: 66
Joined: Mon May 09, 2011 10:27 pm
Location: France
Contact:

Re: Help needed to edit Dark Theme (tooltip bckg color)

Post by Eyael » Mon Feb 20, 2012 3:27 pm

Thanks, but your suggestion did not change anything : the TOOLTIP background is still pale yellow even after restarting. :(
Windows XP Professional SP3 32 bit

User avatar
XnTriq
Moderator & Librarian
Posts: 5596
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Help needed to edit Dark Theme (tooltip bckg color)

Post by XnTriq » Mon Feb 20, 2012 3:45 pm

Have you tried to place style_sheet.qss in %AppData%\XnViewMP\?

<!--// EDIT //-->
  • It seems that style=1 has to be the last line in the [Start] section of xnview.ini.
<--// EDIT //-->

User avatar
Eyael
Posts: 66
Joined: Mon May 09, 2011 10:27 pm
Location: France
Contact:

Re: Help needed to edit Dark Theme (tooltip bckg color)

Post by Eyael » Mon Feb 20, 2012 5:37 pm

I'm editing using XnViewMP menu View - Theme - Dark Theme
This method is obviously correct since I have made various changes that were applied on restart. I just don't understand why it fails with tooltips! There must be something but what... :?
Have you tried to place style_sheet.qss in %AppData%\XnViewMP\?
Actually I have defined another folder to store my database and Xnview also stores the qss files there. Obviously it works this way otherwise my other changes would have not worked either. Those QSS do contain the lines I have changed.
It seems that style=1 has to be the last line in the [Start] section of xnview.ini.
It's exactly like you say in my ini file.
Windows XP Professional SP3 32 bit

User avatar
XnTriq
Moderator & Librarian
Posts: 5596
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Help needed to edit Dark Theme (tooltip bckg color)

Post by XnTriq » Mon Feb 20, 2012 6:00 pm

Could you post your style_sheet.qss or send me a PM, so I can have a look at it?

User avatar
Eyael
Posts: 66
Joined: Mon May 09, 2011 10:27 pm
Location: France
Contact:

Re: Help needed to edit Dark Theme (tooltip bckg color)

Post by Eyael » Mon Feb 20, 2012 6:12 pm

Here's my style_sheet.qss as I edited it :

Code: Select all

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
:disabled{
   color: #B4B4B4;
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QMainWindow{
	background-color: #191919;
}

QMainWindow::separator {
}

QMainWindow::separator:hover {
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QPushButton{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c);
    border: 1px solid #000000;
    color:#DCDCDC;
    padding: 1ex 2ex;
}

QPushButton::hover{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #787878);
    color:#FFFFFF;
}

QPushButton:pressed{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #5a5a5a);
}

QDialogButtonBox > QPushButton, QDialog > QPushButton, QWizard > QWidget > QPushButton{
    min-width: 5em;
    min-height: 1.4em;
}

QPushButton#m_pbFolderTpl, QPushButton#m_pbFilenameTpl, QPushButton#m_pbInfo, QPushButton#m_pbSoundPlay
{
   background-color:transparent;
   border: 0px solid red;

}

QPushButton[text="..."]{
    min-width: 1em;
}

QPushButton#m_pbAdvancedSetting{
   background-color:transparent;
   border:0px solid red;
   padding: 0ex 0ex;
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QDockWidget
{
   background-color: #464646;
   border-top: 1px solid orange;
   color:#dcdcdc;
}

QDockWidget::title
{
   background-color: #464646;
   border: 1px solid #000000;

   padding: 0.4em;
}

QDockWidget  .QWidget{
   background-color: #282828;
   color: #c8c8c8;
   border: 0px solid red;
}

QDockWidget QScrollArea{
    border: 0px solid #464646;
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QHeaderView::section{
   color: #DCDCDC;
}

QHeaderView::section{
   background-color: #282828;
   padding: 1ex;
}

QHeaderView::section:first{
   border-top: 0px solid #000000;
   border-right: 0px solid #000000;
   border-bottom: 1px solid #000000;
   border-left: 0px solid #000000;
}

QHeaderView::section:middle{
   border-top: 0px solid #000000;
   border-right: 0px solid #000000;
   border-bottom: 1px solid #000000;
   border-left: 1px solid #000000;
}

QHeaderView::section:last{
   border-top: 0px solid #000000;
   border-right: 0px solid #000000;
   border-bottom: 1px solid #000000;
   border-left: 1px solid #000000;
}

QHeaderView::section:hover{
     background-color:  qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #787878);
}

QHeaderView::section:pressed{
     background-color:  qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #787878);
}

 /* style the sort indicator */
QHeaderView::down-arrow {
    image: url("UI:arrow_down_V2.png");

    width: 10px;
    height: 10px;

    padding-right: 1ex;
}

QHeaderView::up-arrow {
    image: url("UI:arrow_up_V2.png");

    width: 10px;
    height: 10px;

    padding-right: 1ex;
}

QTreeView#UIGroup_TreeView QHeaderView::section:first{
    border-left: 1px solid #000000;
}


/*----------------------------------------------------------------------------*/
/*------------------------------------
QScrollBar{
    background-color:  #191919;
}

QScrollBar::add-page, QScrollBar::sub-page {
    background: none;
}

QScrollBar::horizontal{
    border: 1px solid #191919;
    border-left: 0px solid red;
    border-right: 0px solid red;

    margin: 0px 16px 0px 16px;
}

QScrollBar::vertical {
    border: 1px solid #191919;
    border-top: 0px solid red;
    border-bottom: 0px solid red;

    margin: 16px 0px 16px 0px;
}

QScrollBar::handle{
    background-color: #282828;
    border: 1px solid #000000;
}

QScrollBar::handle:horizontal{
    min-width: 15px;
}

QScrollBar::handle:vertical{
    min-height: 15px;
}

QScrollBar::handle:hover {
    background-color: #464646;
}

QScrollBar::handle:pressed {
    background-color: #828282;
}

QScrollBar::add-line:horizontal {
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #3c3c3c, stop:1 #5a5a5a);
    border: 1px solid #191919;
    border-left:0px;

    width: 15px;
    subcontrol-position: right;
    subcontrol-origin: margin;
}

QScrollBar::sub-line:horizontal{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #5a5a5a, stop:1 #3c3c3c);
    border: 1px solid #191919;
    border-right:0px;

    width: 15px;
    subcontrol-position: left;
    subcontrol-origin: margin;
}

QScrollBar::add-line:horizontal:hover{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #646464, stop:1 #969696);
}

QScrollBar::sub-line:horizontal:hover{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #969696, stop:1 #646464);
}

QScrollBar::add-line:horizontal:pressed{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #828282, stop:1 #b4b4b4);
}

QScrollBar::sub-line:horizontal:pressed{
    background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #b4b4b4, stop:1 #828282);
}

QScrollBar::add-line:vertical {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #3c3c3c, stop:1 #5a5a5a);
    border: 1px solid #191919;
    border-top:0px;

    height: 15px;
    subcontrol-position: bottom;
    subcontrol-origin: margin;
}

QScrollBar::sub-line:vertical{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c);
    border: 1px solid #191919;
    border-bottom:0px;

    height: 15px;
    subcontrol-position: top;
    subcontrol-origin: margin;
}

QScrollBar::add-line:vertical:hover{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #646464, stop:1 #969696);
}

QScrollBar::sub-line:vertical:hover{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #646464);
}

QScrollBar::add-line:vertical:pressed{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #828282, stop:1 #b4b4b4);
}

QScrollBar::sub-line:vertical:pressed{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #828282);
}

QScrollBar::left-arrow:horizontal{
    background-image: url("UI:arrow_left_V2.png");
    background-position: center;
}

QScrollBar::right-arrow{
    background-image: url("UI:arrow_right_V2.png");
    background-position: center;
}

QScrollBar::up-arrow:vertical{
    background-image: url("UI:arrow_up_V2.png");
    background-position: center;
}

QScrollBar::down-arrow:vertical{
    background-image: url("UI:arrow_down_V2.png");
    background-position: center;
}----------------------------------------*/


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QSplitter{
    background-color: transparent;
    border: 0px solid red;
}

QSplitter::handle{
    background-color: #282828;
    border: 0px solid green;
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QScrollArea {
    background-color: transparent;
    border: 0px solid red;
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QTreeView{
    background-color: #464646;
    alternate-background-color:  #464646;
    border: 1px solid #464646;
}

QTreeView:active{
    selection-background-color: #617627
 /*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #3c3c3c)*/;
}

QTreeView:!active{
    selection-background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #464646)*/ ;
}

QTreeView::item{
    color: #DCDCDC;
    border: 0px solid green;
}

QTreeView::item:alternate{
}

QTreeView::item:selected:!active{
    background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #464646)*/ ;
}

QTreeView::item:selected:active{
    background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #3c3c3c)*/ ;
}

QTreeView::item:hover{
    background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #3c3c3c)*/ ;
}

QTreeView::branch:closed:has-children:!has-siblings, QTreeView::branch:closed:has-children:has-siblings{
    image: url(UI:treeview_arrow_right.png);
}

QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-children:has-siblings{
    image: url(UI:treeview_arrow_down.png);
}

QTreeView::indicator{
    border: 0px solid red;
    width: 14px;
    height: 16px;
}

QTreeView::indicator:unchecked{
     image: url(UI:checkbox_unchecked.png);
 }

QTreeView::indicator:unchecked:disabled{
     image: url(UI:checkbox_unchecked_disabled.png);
 }

QTreeView::indicator:checked{
     image: url(UI:checkbox_checked.png);
 }

QTreeView::indicator:checked:disabled{
     image: url(UI:checkbox_checked_disabled.png);
}

QTreeView#UIGroup_TreeView{
    background-color: #282828;
    alternate-background-color:  #323232;
    border: 0px solid #000000;
}


QTreeView#UIGroup_TreeView:active{
    selection-background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(110, 110, 110), stop:1 #646464)*/;
}

QTreeView#UIGroup_TreeView:!active{
    selection-background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(80,80, 80), stop:1 #464646)*/;
}


QTreeView#UIGroup_TreeView::item:selected:!active{
    background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(80,80, 80), stop:1 #464646)*/ ;
}

QTreeView#UIGroup_TreeView::item:selected:active{
    background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(110, 110, 110), stop:1 #646464)*/;
}

QTreeView#UIGroup_TreeView::item:hover{
    background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(110, 110, 110), stop:1 #646464)*/;
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
MyThumbListView{
	background-color: #464646;
}

QListView{
	background-color: #282828;
    border: 0px solid #000000;
}

QListView::item{
    color: #b4b4b4;
}

QListView::item:alternate{
color : #dcdcdc;
 }

QListView::item:selected{
    color: #ffffff;
}

QListView::item:selected:!active{
    background-color: #617627
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #3c3c3c, stop:1 #3c3c3c)*/;
}

QListView::item:selected:active{
    background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c)*/;
 }

QListView::item:hover{
    background-color: #617627
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c)*/;
}

QListView#UIGroup_ListView{
    background-color: #282828;
    border: 0px solid #000000;
    selection-background-color: #3c3c3c;
}



/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QTableView{
    background-color: #191919;
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QMenuBar{
    background-color: #282828;
    /*background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #1e1e1e, stop:1 #3c3c3c);*/
    /*background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #646464);*/
}

QMenuBar::item{
    background-color: transparent;
    color: #dcdcdc;
}

QMenuBar::item:selected{
    background-color: #464646;
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #828282); */
    color: #dcdcdc;
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QMenu{
    background-color: #3c3c3c;
    color: #dcdcdc;
    border: 0px solid red;
    padding: 5px;
}

QMenu::item{
    background-color: transparent;
    border: 1px solid transparent;
    padding: 2px 25px 2px 20px;
}

QMenu::item:selected{
    background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #646464)*/;
    border: 1px solid transparent;
    color:#dcdcdc;
}

QMenu::separator{
   height: 1px;
   background-color: #464646;
   margin: 2px 25px 2px 20px;
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QDialog{
    background-color:  #191919;
    border: 0px solid #000000;
}

QDialog QWidget#qt_scrollarea_viewport > QWidget {
    border: 1px solid #000000;
}

QDialog WScrollArea{
   background-color: #464646;
  color: #dcdcdc;
}



/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QTabWidget::pane { /* The tab widget frame */
     border: 0px solid #000000;
     margin-top:-1px;
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/*enum QTabBar::Shape QTabBar::RoundedNorth=0, QTabBar::RoundedSouth=1 */
QTabBar{
    background-color: transparent;
    border:0px solid red;
}

QTabBar::tab{
    background-color: #282828;
    color: #c8c8c8;
    /*border: 1px solid #000000;*/
}

QTabBar[shape="0"]::tab{
	min-width:3em;
    padding: 1ex 3ex;
}

MyTabBar[shape="0"]::tab:selected{
    border-bottom-color: #617627;
}

QTabBar[shape="0"]::tab:selected{
	background-color:#464646;
    border-bottom-color:#617627 ;
}

MyTabWidget::tab-bar {
	left: 1px;
}

MyTabBar::tab:selected{
	color: #dcdcdc;
    background-color: #464646;
    /*border-left-color: green; */
    /*border: 2px solid #617627;*/
     border-top-left-radius: 4px;
     border-top-right-radius: 4px;
}

MyTabBar[shape="0"]::tab:selected{
	border-bottom-color: #617627;
}

MyTabWidget::pane{
	padding: 1px 0px;
}

QTabBar[shape="2"]::tab{
	min-height:3em;
    padding: 3ex 1ex;
}

QTabBar[shape="2"]::tab:selected{
	background-color: #464646;
    border-left:1px solid #617627;
}

/*
QTabBar::tab:first:selected{
    margin-left: 0px;
    margin-right: -2px;
}

QTabBar::tab:middle:selected{
    margin-left: 0px;
    margin-right: -2px;
 }

QTabBar::tab:last:selected{
    margin-left: 0px;
    margin-right: 0px;
}
*/

QTabBar[shape="0"]::tab:!selected{
    margin-top: 2px;
}

/*QTabBar::tab:first:!selected{
    border-left:1px solid #000000;
    border-right:1px solid #000000;
}

QTabBar::tab:middle:!selected{
    border-left:0px solid red;
    border-right:1px solid #000000;
}*/

QTabBar::tab:last:!selected{
    border-left:0px solid red;
    border-right:0px solid #000000;
}

QTabBar::tab:!selected:hover{
     background-color: #617627
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c)*/;
}

QTabBar[shape="1"]::tab:selected{
    border-top-color: #617627;
    margin-left: 0px;
    margin-right: -2px;
}

QTabBar[shape="1"]::tab:!selected{
    margin-bottom: 2px;
}

QTabBar[shape="0"]::tab:selected{
    border-top-color: #617627;
}

QTabBar[shape="1"]::tab:selected{
    border-bottom-color: #617627;
}

QTabBar[shape="2"]::tab:selected{
    border-left-color:#617627;
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QProgressBar{
    background-color:  qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c);
    border: 1px solid #000000;
}

QProgressBar::chunk{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(180, 180, 0, 100), stop:1 rgba(60, 60, 60, 60));
    border: 1px solid rgba(180, 180, 180, 200);
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QToolBar{
    border: 0px;
}

QToolBar:horizontal{
   background-color: #282828
/*qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #646464)*/;
}
QToolBar:vertical{
    background-color: #282828
/*qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #5a5a5a, stop:1 #3c3c3c)*/;
}

QToolBar:separator{
   background-color: #464646
/*qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #5a5a5a)*/;
   border-right: 0px solid #000000;
   border-bottom: 0px solid #000000;
   width:1px;
   height:1px;
   margin: 1px 5px;
}

QToolBar#UIPanosView_ToolBar{
    border-top: 1px solid #000000;
    border-bottom: 0px solid red;
}

QToolBar#UIGroupsView_ToolBar{
    border-top: 1px solid #000000;
    border-bottom: 0px solid red;
}

QToolBar#UIGroup_ToolBar{
    border-bottom: 0px solid #000000;
}

QToolBar#UIPano_ToolBar{
    border-bottom: 0px solid #000000;
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QSlider::groove:horizontal {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #8c8c8c);
    border: 1px solid #3c3c3c;
    height: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
}

QSlider::handle:horizontal {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #8c8c8c);

    border: 1px solid #3c3c3c;
    width: 8px;
    margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
    border-radius: 2px;
 }

QSlider::handle:horizontal:hover {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #dcdcdc, stop:1 #b4b4b4);
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QStatusBar{
    background-color: #282828
    color: #dcdcdc;
    border: 0px solid red;
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
DlgSettings QToolButton {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c);
    border: 1px solid #000000;
    color:#DCDCDC;
    /*padding: 1ex 2ex;*/
}

DlgSettings QTabWidget::pane {
	background-color: #3c3c3c;
}

DlgSettings QTabBar[shape="0"]::tab:selected {
	background-color: #3c3c3c;
	color: #dcdcdc;
	border-top:1px solid #617627;
}

QToolButton {
   background-color: transparent;
    border: 0px solid red;
    color:#dcdcdc;
}

QToolButton#m_tbClose{
    background-color: transparent;
}

QToolButton::hover{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #787878);
}

QToolButton::checked{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #969696);
}

QToolButton::pressed{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #5a5a5a);
}

QToolButton[popupMode="1"]{
    padding-right: 10px;
}

QToolButton::menu-button{
    border: 0px solid red;
}

QToolButton::menu-button:hover{
   background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #969696);
}

QToolButton::menu-button:pressed{

}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QLabel, QCheckBox, QRadioButton{
    color: #dcdcdc;
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QSpinBox, QDoubleSpinBox {
   background-color:  qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #969696);
   border: 1px solid #000000;
   padding:0px;

   selection-background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #5a5a5a);
   selection-color: #191919;
}


QSpinBox::up-button, QSpinBox::down-button, QDoubleSpinBox::up-button, QDoubleSpinBox::down-button {
     subcontrol-origin: border;
     width: 16px;
     border-width: 0px;
 }

QSpinBox::up-button, QDoubleSpinBox::up-button {
     subcontrol-position: top right;
}

QSpinBox::down-button, QDoubleSpinBox::down-button {
     subcontrol-position: bottom right;
}

QSpinBox::up-arrow, QDoubleSpinBox::up-arrow {
     border-image: url(UI:spinbox_up.png);
     height:7px;
 }

QSpinBox::down-arrow, QDoubleSpinBox::down-arrow {
     border-image: url(UI:spinbox_down.png);
     height:7px;
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QCheckBox::indicator:unchecked{
     image: url(UI:checkbox_unchecked.png);
 }

QCheckBox::indicator:unchecked:disabled{
     image: url(UI:checkbox_unchecked_disabled.png);
 }

QCheckBox::indicator:checked{
     image: url(UI:checkbox_checked.png);
 }

QCheckBox::indicator:checked:disabled{
     image: url(UI:checkbox_checked_disabled.png);
 }

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QRadioButton::indicator:unchecked{
     image: url(UI:radiobutton_unchecked.png);
 }

QRadioButton::indicator:unchecked:disabled{
     image: url(UI:radiobutton_unchecked_disabled.png);
 }

QRadioButton::indicator:checked{
     image: url(UI:radiobutton_checked.png);
 }

QRadioButton::indicator:checked:disabled{
     image: url(UI:radiobutton_checked_disabled.png);
 }

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QLineEdit{
   background-color:  qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #969696);
   border: 1px solid #000000;
   padding:0px;
   color:#000000;

   selection-background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #5a5a5a);
   selection-color: #000000;
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QComboBox{
     border: 1px solid #000000;
     padding: 0px 18px 0px 3px;
    color: #dcdcdc
 }

QComboBox:!editable, QComboBox::drop-down:editable{
     background-color:  #464646;
 }

QComboBox:editable{
     background-color:  #464646;

    selection-background-color: #282828;
    selection-color: #dcdcdc;
}

QComboBox:!editable:on, QComboBox::drop-down:editable:on{
     background-color:   #464646;
}

QComboBox::drop-down{
     subcontrol-origin: padding;
     subcontrol-position: top right;
     width: 15px;
     border: 0px;
}

QComboBox::down-arrow{
     image: url(UI:dropdown_arrow.png);
}


/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* fix group box */
QGroupBox{
    color: #c8c8c8;
    background-color: #464646;
    border: 1px solid #000000;

    margin-top: 1.1em; /* leave space at the top for the title */
    margin-bottom: 0.1em; /* leave space at the top for the title */

    font-weight: bold;
}

QGroupBox::title{
    border: 0px solid red;

    subcontrol-origin: margin;
    top: 0px;
}

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QTextEdit{
    background-color: #464646;
    color: #DCDCDC;
    border: 1px solid #000000;

   selection-background-color:  #3c3c3c ;
   selection-color: #dcdcdc;
}


/*----------------------------------------------------------------------------*/
/*------------------------------------------ ----------------------------------*/

QToolTip{
      background-color: #7E9639;
}

                                    

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QWizard{
}

QWizard .QWidget{
      background-color: #282828;
      color:#DCDCDC;
}

QWizard .QFrame{
      background-color: #282828;
      color:#DCDCDC;
}

QWizard  > .QWidget > .QLabel{
      background-color: #282828;
      color:#DCDCDC;
}

QWizard QListView{
      background-color: #3c3c3c;
      color:#DCDCDC;
}

QWizardPage .QFrame{
    background-color: transparent;
    border: 1px solid #000000;
}

SearchLineEdit{
	background-color: transparent;
	border: 1px solid #000000;
	padding: 0px;
}

SearchLineEdit>QLineEdit{
	background-color: #5a5a5a;
}

/*QProgressBar::chunk{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 167, 0, 128), stop:1 rgba(255, 167, 0, 0));
    border: 1px solid rgba(250, 167, 0, 255);
}*/
You did not ask but here's the style_sheet_win.qss as well :

Code: Select all

/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
QComboBox QAbstractItemView{
    background-color: #464646);
    border: 1px solid #000000;
   color:  #DCDCDC;

    selection-background-color:#617627;
    selection-color: #DCDCDC;
}
Windows XP Professional SP3 32 bit

User avatar
XnTriq
Moderator & Librarian
Posts: 5596
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Help needed to edit Dark Theme (tooltip bckg color)

Post by XnTriq » Mon Feb 20, 2012 7:30 pm

:mrgreen: There's a semicolon missing in line #747:
[color=green]style_sheet.qss[/color] wrote:QStatusBar {
background-color: #282828
; :bugfixed:
color: #dcdcdc;
border: 0px solid red;
}

User avatar
Eyael
Posts: 66
Joined: Mon May 09, 2011 10:27 pm
Location: France
Contact:

Re: Help needed to edit Dark Theme (Fixed)

Post by Eyael » Mon Feb 20, 2012 9:32 pm

THAAAANKS!!!! You're the greatest! I did look for missing brackets, that sort of things but totally missed that bloody semicolon. I've used PSPad which highlights all sorts of mistakes but not this one obviously. Hope my problem helps others who might encounter same trouble : look out for missing semicolons :mrgreen:
Windows XP Professional SP3 32 bit

User avatar
XnTriq
Moderator & Librarian
Posts: 5596
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Help needed to edit Dark Theme (tooltip bckg color)

Post by XnTriq » Tue Feb 21, 2012 8:30 pm

It's too bad we can't validate Qt stylesheets with CSS validators.
AFAIK, only Qt Designer is capable of that.

Reformatting the stylesheet helped me to find the error.

Code: Select all

:disabled {
color: #b4b4b4;
}
QMainWindow {
background-color: #191919;
}
QMainWindow::separator {
}
QMainWindow::separator:hover {
}
QPushButton {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c);
border: 1px solid #000000;
color: #dcdcdc;
padding: 1ex 2ex;
}
QPushButton::hover {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #787878);
color: #ffffff;
}
QPushButton:pressed {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #5a5a5a);
}
QDialogButtonBox > QPushButton,
QDialog > QPushButton,
QWizard > QWidget > QPushButton {
min-width: 5em;
min-height: 1.4em;
}
QPushButton#m_pbFolderTpl,
QPushButton#m_pbFilenameTpl,
QPushButton#m_pbInfo,
QPushButton#m_pbSoundPlay {
background-color: transparent;
border: 0px solid #ff0000;
}
QPushButton[text="..."] {
min-width: 1em;
}
QPushButton#m_pbAdvancedSetting {
background-color: transparent;
border: 0px solid #ff0000;
padding: 0ex 0ex;
}
QDockWidget {
background-color: #464646;
border-top: 1px solid orange;
color: #dcdcdc;
}
QDockWidget::title {
background-color: #464646;
border: 1px solid #000000;
padding: 0.4em;
}
QDockWidget .QWidget {
background-color: #282828;
color: #c8c8c8;
border: 0px solid #ff0000;
}
QDockWidget QScrollArea {
border: 0px solid #464646;
}
QHeaderView::section {
color: #dcdcdc;
}
QHeaderView::section {
background-color: #282828;
padding: 1ex;
}
QHeaderView::section:first {
border-top: 0px solid #000000;
border-right: 0px solid #000000;
border-bottom: 1px solid #000000;
border-left: 0px solid #000000;
}
QHeaderView::section:middle {
border-top: 0px solid #000000;
border-right: 0px solid #000000;
border-bottom: 1px solid #000000;
border-left: 1px solid #000000;
}
QHeaderView::section:last {
border-top: 0px solid #000000;
border-right: 0px solid #000000;
border-bottom: 1px solid #000000;
border-left: 1px solid #000000;
}
QHeaderView::section:hover {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #787878);
}
QHeaderView::section:pressed {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #787878);
}
/* style the sort indicator */
QHeaderView::down-arrow {
image: url("UI:arrow_down_V2.png");
width: 10px;
height: 10px;
padding-right: 1ex;
}
QHeaderView::up-arrow {
image: url("UI:arrow_up_V2.png");
width: 10px;
height: 10px;
padding-right: 1ex;
}
QTreeView#UIGroup_TreeView QHeaderView::section:first {
border-left: 1px solid #000000;
}
QScrollBar {
background-color: #191919;
}
QScrollBar::add-page,
QScrollBar::sub-page {
background: none;
}
QScrollBar::horizontal {
border: 1px solid #191919;
border-left: 0px solid #ff0000;
border-right: 0px solid #ff0000;
margin: 0px 16px 0px 16px;
}
QScrollBar::vertical {
border: 1px solid #191919;
border-top: 0px solid #ff0000;
border-bottom: 0px solid #ff0000;
margin: 16px 0px 16px 0px;
}
QScrollBar::handle {
background-color: #282828;
border: 1px solid #000000;
}
QScrollBar::handle:horizontal {
min-width: 15px;
}
QScrollBar::handle:vertical {
min-height: 15px;
}
QScrollBar::handle:hover {
background-color: #464646;
}
QScrollBar::handle:pressed {
background-color: #828282;
}
QScrollBar::add-line:horizontal {
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #3c3c3c, stop:1 #5a5a5a);
border: 1px solid #191919;
border-left: 0px;
width: 15px;
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal {
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #5a5a5a, stop:1 #3c3c3c);
border: 1px solid #191919;
border-right: 0px;
width: 15px;
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar::add-line:horizontal:hover {
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #646464, stop:1 #969696);
}
QScrollBar::sub-line:horizontal:hover {
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #969696, stop:1 #646464);
}
QScrollBar::add-line:horizontal:pressed {
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #828282, stop:1 #b4b4b4);
}
QScrollBar::sub-line:horizontal:pressed {
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #b4b4b4, stop:1 #828282);
}
QScrollBar::add-line:vertical {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #3c3c3c, stop:1 #5a5a5a);
border: 1px solid #191919;
border-top: 0px;
height: 15px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c);
border: 1px solid #191919;
border-bottom: 0px;
height: 15px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::add-line:vertical:hover {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #646464, stop:1 #969696);
}
QScrollBar::sub-line:vertical:hover {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #646464);
}
QScrollBar::add-line:vertical:pressed {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #828282, stop:1 #b4b4b4);
}
QScrollBar::sub-line:vertical:pressed {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #828282);
}
QScrollBar::left-arrow:horizontal {
background-image: url("UI:arrow_left_V2.png");
background-position: center;
}
QScrollBar::right-arrow {
background-image: url("UI:arrow_right_V2.png");
background-position: center;
}
QScrollBar::up-arrow:vertical {
background-image: url("UI:arrow_up_V2.png");
background-position: center;
}
QScrollBar::down-arrow:vertical {
background-image: url("UI:arrow_down_V2.png");
background-position: center;
}
QSplitter {
background-color: transparent;
border: 0px solid #ff0000;
}
QSplitter::handle {
background-color: #282828;
border: 0px solid #008000;
}
QScrollArea {
background-color: transparent;
border: 0px solid #ff0000;
}
QTreeView {
background-color: #464646;
alternate-background-color: #464646;
border: 1px solid #464646;
}
QTreeView:active {
selection-background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #3c3c3c); */
}
QTreeView:!active {
selection-background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #464646); */
}
QTreeView::item {
color: #dcdcdc;
border: 0px solid #008000;
}
QTreeView::item:alternate {
}
QTreeView::item:selected:!active {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #464646); */
}
QTreeView::item:selected:active {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #3c3c3c); */
}
QTreeView::item:hover {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #3c3c3c); */
}
QTreeView::branch:closed:has-children:!has-siblings,
QTreeView::branch:closed:has-children:has-siblings {
image: url(UI:treeview_arrow_right.png);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings {
image: url(UI:treeview_arrow_down.png);
}
QTreeView::indicator {
border: 0px solid #ff0000;
width: 14px;
height: 16px;
}
QTreeView::indicator:unchecked {
image: url(UI:checkbox_unchecked.png);
}
QTreeView::indicator:unchecked:disabled {
image: url(UI:checkbox_unchecked_disabled.png);
}
QTreeView::indicator:checked {
image: url(UI:checkbox_checked.png);
}
QTreeView::indicator:checked:disabled {
image: url(UI:checkbox_checked_disabled.png);
}
QTreeView#UIGroup_TreeView {
background-color: #282828;
alternate-background-color: #323232;
border: 0px solid #000000;
}
QTreeView#UIGroup_TreeView:active {
selection-background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(110, 110, 110), stop:1 #646464); */
}
QTreeView#UIGroup_TreeView:!active {
selection-background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(80,80, 80), stop:1 #464646); */
}
QTreeView#UIGroup_TreeView::item:selected:!active {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(80,80, 80), stop:1 #464646); */
}
QTreeView#UIGroup_TreeView::item:selected:active {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(110, 110, 110), stop:1 #646464); */
}
QTreeView#UIGroup_TreeView::item:hover {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(110, 110, 110), stop:1 #646464); */
}
MyThumbListView {
background-color: #464646;
}
QListView {
background-color: #282828;
border: 0px solid #000000;
}
QListView::item {
color: #b4b4b4;
}
QListView::item:alternate {
color : #dcdcdc;
}
QListView::item:selected {
color: #ffffff;
}
QListView::item:selected:!active {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #3c3c3c, stop:1 #3c3c3c); */
}
QListView::item:selected:active {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c); */
}
QListView::item:hover {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c); */
}
QListView#UIGroup_ListView {
background-color: #282828;
border: 0px solid #000000;
selection-background-color: #3c3c3c;
}
QTableView {
background-color: #191919;
}
QMenuBar {
background-color: #282828;
/* background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #1e1e1e, stop:1 #3c3c3c); */
/* background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #646464); */
}
QMenuBar::item {
background-color: transparent;
color: #dcdcdc;
}
QMenuBar::item:selected {
background-color: #464646;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #828282); */
color: #dcdcdc;
}
QMenu {
background-color: #3c3c3c;
color: #dcdcdc;
border: 0px solid #ff0000;
padding: 5px;
}
QMenu::item {
background-color: transparent;
border: 1px solid transparent;
padding: 2px 25px 2px 20px;
}
QMenu::item:selected {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #646464); */
border: 1px solid transparent;
color: #dcdcdc;
}
QMenu::separator {
height: 1px;
background-color: #464646;
margin: 2px 25px 2px 20px;
}
QDialog {
background-color: #191919;
border: 0px solid #000000;
}
QDialog QWidget#qt_scrollarea_viewport > QWidget {
border: 1px solid #000000;
}
QDialog WScrollArea {
background-color: #464646;
color: #dcdcdc;
}
QTabWidget::pane { /* The tab widget frame */
border: 0px solid #000000;
margin-top: -1px;
}
/* enum QTabBar::Shape QTabBar::RoundedNorth=0, QTabBar::RoundedSouth=1 */
QTabBar {
background-color: transparent;
border: 0px solid #ff0000;
}
QTabBar::tab {
background-color: #282828;
color: #c8c8c8;
/* border: 1px solid #000000; */
}
QTabBar[shape="0"]::tab {
min-width: 3em;
padding: 1ex 3ex;
}
MyTabBar[shape="0"]::tab:selected {
border-bottom-color: #617627;
}
QTabBar[shape="0"]::tab:selected {
background-color: #464646;
border-bottom-color: #617627 ;
}
MyTabWidget::tab-bar {
left: 1px;
}
MyTabBar::tab:selected {
color: #dcdcdc;
background-color: #464646;
/* border-left-color: #008000; */
/* border: 2px solid #617627; */
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
MyTabBar[shape="0"]::tab:selected {
border-bottom-color: #617627;
}
MyTabWidget::pane {
padding: 1px 0px;
}
QTabBar[shape="2"]::tab {
min-height: 3em;
padding: 3ex 1ex;
}
QTabBar[shape="2"]::tab:selected {
background-color: #464646;
border-left: 1px solid #617627;
}
/*
 * QTabBar::tab:first:selected {
 * margin-left: 0px;
 * margin-right: -2px;
 * }
 * QTabBar::tab:middle:selected {
 * margin-left: 0px;
 * margin-right: -2px;
 * }
 * QTabBar::tab:last:selected {
 * margin-left: 0px;
 * margin-right: 0px;
 * }
 */
QTabBar[shape="0"]::tab:!selected {
margin-top: 2px;
}
/*
 * QTabBar::tab:first:!selected {
 * border-left: 1px solid #000000;
 * border-right: 1px solid #000000;
 * }
 * QTabBar::tab:middle:!selected {
 * border-left: 0px solid #ff0000;
 * border-right: 1px solid #000000;
 * }
 */
QTabBar::tab:last:!selected {
border-left: 0px solid #ff0000;
border-right: 0px solid #000000;
}
QTabBar::tab:!selected:hover {
background-color: #617627;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c); */
}
QTabBar[shape="1"]::tab:selected {
border-top-color: #617627;
margin-left: 0px;
margin-right: -2px;
}
QTabBar[shape="1"]::tab:!selected {
margin-bottom: 2px;
}
QTabBar[shape="0"]::tab:selected {
border-top-color: #617627;
}
QTabBar[shape="1"]::tab:selected {
border-bottom-color: #617627;
}
QTabBar[shape="2"]::tab:selected {
border-left-color: #617627;
}
QProgressBar {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c);
border: 1px solid #000000;
}
QProgressBar::chunk {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(180, 180, 0, 100), stop:1 rgba(60, 60, 60, 60));
border: 1px solid rgba(180, 180, 180, 200);
}
QToolBar {
border: 0px;
}
QToolBar:horizontal {
background-color: #282828;
/* qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #646464); */
}
QToolBar:vertical {
background-color: #282828;
/* qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #5a5a5a, stop:1 #3c3c3c); */
}
QToolBar:separator {
background-color: #464646;
/* qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #5a5a5a); */
border-right: 0px solid #000000;
border-bottom: 0px solid #000000;
width: 1px;
height: 1px;
margin: 1px 5px;
}
QToolBar#UIPanosView_ToolBar {
border-top: 1px solid #000000;
border-bottom: 0px solid #ff0000;
}
QToolBar#UIGroupsView_ToolBar {
border-top: 1px solid #000000;
border-bottom: 0px solid #ff0000;
}
QToolBar#UIGroup_ToolBar {
border-bottom: 0px solid #000000;
}
QToolBar#UIPano_ToolBar {
border-bottom: 0px solid #000000;
}
QSlider::groove:horizontal {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #8c8c8c);
border: 1px solid #3c3c3c;
height: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
}
QSlider::handle:horizontal {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #8c8c8c);
border: 1px solid #3c3c3c;
width: 8px;
margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
border-radius: 2px;
}
QSlider::handle:horizontal:hover {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #dcdcdc, stop:1 #b4b4b4);
}
QStatusBar {
background-color: #282828;
color: #dcdcdc;
border: 0px solid #ff0000;
}
DlgSettings QToolButton {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #3c3c3c);
border: 1px solid #000000;
color: #dcdcdc;
/* padding: 1ex 2ex; */
}
DlgSettings QTabWidget::pane {
background-color: #3c3c3c;
}
DlgSettings QTabBar[shape="0"]::tab:selected {
background-color: #3c3c3c;
color: #dcdcdc;
border-top: 1px solid #617627;
}
QToolButton {
background-color: transparent;
border: 0px solid #ff0000;
color: #dcdcdc;
}
QToolButton#m_tbClose {
background-color: transparent;
}
QToolButton::hover {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:1 #787878);
}
QToolButton::checked {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #969696);
}
QToolButton::pressed {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #5a5a5a);
}
QToolButton[popupMode="1"] {
padding-right: 10px;
}
QToolButton::menu-button {
border: 0px solid #ff0000;
}
QToolButton::menu-button:hover {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #969696);
}
QToolButton::menu-button:pressed {
}
QLabel,
QCheckBox,
QRadioButton {
color: #dcdcdc;
}
QSpinBox,
QDoubleSpinBox {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #969696);
border: 1px solid #000000;
padding: 0px;
selection-background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #5a5a5a);
selection-color: #191919;
}
QSpinBox::up-button,
QSpinBox::down-button,
QDoubleSpinBox::up-button,
QDoubleSpinBox::down-button {
subcontrol-origin: border;
width: 16px;
border-width: 0px;
}
QSpinBox::up-button,
QDoubleSpinBox::up-button {
subcontrol-position: top right;
}
QSpinBox::down-button,
QDoubleSpinBox::down-button {
subcontrol-position: bottom right;
}
QSpinBox::up-arrow,
QDoubleSpinBox::up-arrow {
border-image: url(UI:spinbox_up.png);
height: 7px;
}
QSpinBox::down-arrow,
QDoubleSpinBox::down-arrow {
border-image: url(UI:spinbox_down.png);
height: 7px;
}
QCheckBox::indicator:unchecked {
image: url(UI:checkbox_unchecked.png);
}
QCheckBox::indicator:unchecked:disabled {
image: url(UI:checkbox_unchecked_disabled.png);
}
QCheckBox::indicator:checked {
image: url(UI:checkbox_checked.png);
}
QCheckBox::indicator:checked:disabled {
image: url(UI:checkbox_checked_disabled.png);
}
QRadioButton::indicator:unchecked {
image: url(UI:radiobutton_unchecked.png);
}
QRadioButton::indicator:unchecked:disabled {
image: url(UI:radiobutton_unchecked_disabled.png);
}
QRadioButton::indicator:checked {
image: url(UI:radiobutton_checked.png);
}
QRadioButton::indicator:checked:disabled {
image: url(UI:radiobutton_checked_disabled.png);
}
QLineEdit {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #969696);
border: 1px solid #000000;
padding: 0px;
color: #000000;
selection-background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #787878, stop:1 #5a5a5a);
selection-color: #000000;
}
QComboBox {
border: 1px solid #000000;
padding: 0px 18px 0px 3px;
color: #dcdcdc
}
QComboBox:!editable,
QComboBox::drop-down:editable {
background-color: #464646;
}
QComboBox:editable {
background-color: #464646;
selection-background-color: #282828;
selection-color: #dcdcdc;
}
QComboBox:!editable:on,
QComboBox::drop-down:editable:on {
background-color: #464646;
}
QComboBox::drop-down {
subcontrol-origin: padding;
subcontrol-position: top right;
width: 15px;
border: 0px;
}
QComboBox::down-arrow {
image: url(UI:dropdown_arrow.png);
}
/* fix group box */
QGroupBox {
color: #c8c8c8;
background-color: #464646;
border: 1px solid #000000;
margin-top: 1.1em; /* leave space at the top for the title */
margin-bottom: 0.1em; /* leave space at the top for the title */
font-weight: bold;
}
QGroupBox::title {
border: 0px solid #ff0000;
subcontrol-origin: margin;
top: 0px;
}
QTextEdit {
background-color: #464646;
color: #dcdcdc;
border: 1px solid #000000;
selection-background-color: #3c3c3c;
selection-color: #dcdcdc;
}
QToolTip {
background-color: #7e9639;
}
QWizard {
}
QWizard .QWidget {
background-color: #282828;
color: #dcdcdc;
}
QWizard .QFrame {
background-color: #282828;
color: #dcdcdc;
}
QWizard > .QWidget > .QLabel {
background-color: #282828;
color: #dcdcdc;
}
QWizard QListView {
background-color: #3c3c3c;
color: #dcdcdc;
}
QWizardPage .QFrame {
background-color: transparent;
border: 1px solid #000000;
}
SearchLineEdit {
background-color: transparent;
border: 1px solid #000000;
padding: 0px;
}
SearchLineEdit > QLineEdit {
background-color: #5a5a5a;
}
/*
 * QProgressBar::chunk {
 * background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 167, 0, 128), stop:1 rgba(255, 167, 0, 0));
 * border: 1px solid rgba(250, 167, 0, 255);
 * }
 */

Post Reply