Update colors to Obsidian Coast

This commit is contained in:
Colin Duquesnoy 2012-09-04 22:18:56 +02:00
parent 266db7f096
commit 4b9cb8e565
1 changed files with 105 additions and 95 deletions

200
style.qss
View File

@ -1,6 +1,6 @@
/*QProgressBar*/ /*QProgressBar*/
/*{*/ /*{*/
/*border: 1px solid #595e68;*/ /*border: 1px solid #3A3939;*/
/*text-align: center;*/ /*text-align: center;*/
/*}*/ /*}*/
@ -12,17 +12,18 @@
/*}*/ /*}*/
QProgressBar:horizontal { QProgressBar:horizontal {
border: 1px solid #595e68; border: 1px solid #3A3939;
text-align: center; text-align: center;
padding: 1px; padding: 1px;
background: #201F1F;
} }
QProgressBar::chunk:horizontal { QProgressBar::chunk:horizontal {
background-color: qlineargradient(spread:pad, x1:0.488, y1:1, x2:0.492025, y2:0, stop:0.437186 rgb(113, 130, 150), stop:0.467337 rgb(120, 136, 156)); background-color: qlineargradient(spread:reflect, x1:1, y1:0.545, x2:1, y2:0, stop:0 rgba(28, 66, 111, 255), stop:1 rgba(37, 87, 146, 255));
} }
QToolTip QToolTip
{ {
border: 1px solid #595e68; border: 1px solid #3A3939;
background-color: rgb(90, 102, 117);; background-color: rgb(90, 102, 117);;
color: white; color: white;
padding: 1px; padding: 1px;
@ -32,29 +33,29 @@ QToolTip
QWidget QWidget
{ {
color: silver; color: silver;
background-color: #494e58; background-color: #292828;
selection-background-color:#78879b; selection-background-color:#78879b;
selection-color: black; selection-color: black;
/*border-color: #595e68;*/ /*border-color: #3A3939;*/
} }
QWidget:item:hover QWidget:item:hover
{ {
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #78879b, stop: 1 #78879b); stop: 0 #78879b, stop: 1 #78879b);
color: black; color: black;
} }
QWidget:item:selected QWidget:item:selected
{ {
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #78879b, stop: 1 #78879b); stop: 0 #78879b, stop: 1 #78879b);
} }
QMenuBar QMenuBar
{ {
/*background-color: #494e58;*/ /*background-color: #292828;*/
background-color: #494e58; background-color: #292828;
color: silver; color: silver;
} }
@ -66,13 +67,13 @@ QMenuBar::item
QMenuBar::item:selected QMenuBar::item:selected
{ {
background: transparent; background: transparent;
border: 1px solid #595e68; border: 1px solid #3A3939;
; ;
} }
QMenuBar::item:pressed QMenuBar::item:pressed
{ {
border: 1px solid #595e68; border: 1px solid #3A3939;
background-color: #78879b; background-color: #78879b;
color: black; color: black;
margin-bottom:-1px; margin-bottom:-1px;
@ -81,15 +82,15 @@ QMenuBar::item:pressed
QMenu QMenu
{ {
border: 1px solid #595e68; border: 1px solid #3A3939;
color: silver; color: silver;
border-radius: 3px; /*border-radius: 3px;*/
} }
QMenu::item QMenu::item
{ {
padding: 2px 20px 2px 20px; padding: 2px 20px 2px 20px;
border-radius: 3px; /*border-radius: 3px;*/
} }
QMenu::item:selected QMenu::item:selected
@ -100,36 +101,36 @@ QMenu::item:selected
QWidget:disabled QWidget:disabled
{ {
color: #404040; color: #404040;
background-color: #494e58; background-color: #292828;
} }
QAbstractItemView QAbstractItemView
{ {
alternate-background-color: #595e68; alternate-background-color: #3A3939;
color: silver; color: silver;
border: 1px solid 595e68; border: 1px solid 3A3939;
border-radius: 3px; border-radius: 3px;
padding: 1px; padding: 1px;
} }
QWidget:focus, QMenuBar:focus QWidget:focus, QMenuBar:focus
{ {
border: 1px solid rgba(120, 135, 155); border: 1px solid rgba(48, 86, 111);
} }
QLineEdit QLineEdit
{ {
background-color: #525863; background-color: #201F1F;
padding: 2px; padding: 2px;
border-style: solid; border-style: solid;
border: 1px solid #595e68; border: 1px solid #3A3939;
border-radius: 3px; border-radius: 3px;
color: silver; color: silver;
} }
QGroupBox { QGroupBox {
border:1px double #595e68; border:1px double #3A3939;
border-radius: 7px; border-radius: 7px;
margin-top: 1ex; /* leave space at the top for the title */ margin-top: 1ex; /* leave space at the top for the title */
} }
@ -143,7 +144,7 @@ QGroupBox::title {
QAbstractScrollArea QAbstractScrollArea
{ {
border-radius: 3px; border-radius: 3px;
border: 1px solid #595e68; border: 1px solid #3A3939;
} }
QScrollBar:horizontal QScrollBar:horizontal
@ -151,7 +152,7 @@ QScrollBar:horizontal
background: #3E424A; background: #3E424A;
height: 15px; height: 15px;
margin: 0px 11px 0px 11px; margin: 0px 11px 0px 11px;
border: 1px solid #595e68; border: 1px solid #3A3939;
border-radius: 6px; border-radius: 6px;
} }
@ -221,7 +222,7 @@ QScrollBar:vertical
background: #3E424A; background: #3E424A;
width: 15px; width: 15px;
margin: 11px 0 11px 0; margin: 11px 0 11px 0;
border: 1px solid #595e68; border: 1px solid #3A3939;
border-radius: 6px; border-radius: 6px;
} }
@ -288,26 +289,26 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
QTextEdit QTextEdit
{ {
background-color: #494e58; background-color: #292828;
color: silver; color: silver;
border: 1px solid #595e68; border: 1px solid #3A3939;
} }
QPlainTextEdit QPlainTextEdit
{ {
background-color: #525863;; background-color: #201F1F;;
color: silver; color: silver;
border-radius: 3px; border-radius: 3px;
border: 1px solid #595e68; border: 1px solid #3A3939;
} }
QHeaderView::section QHeaderView::section
{ {
background-color: #595e68; background-color: #3A3939;
color: white; color: silver;
/*padding-left: 4px;*/ padding-left: 4px;
border: 0px solid #6c6c6c; border: 1px solid #6c6c6c;
border-radius: 3px; /*border-radius: 3px;*/
} }
QCheckBox:disabled QCheckBox:disabled
@ -324,22 +325,22 @@ QSizeGrip {
QMainWindow::separator QMainWindow::separator
{ {
background-color: #494e58; background-color: #292828;
color: white; color: white;
padding-left: 4px; padding-left: 4px;
spacing: 2px; /* spacing between items in the tool bar */ spacing: 2px; /* spacing between items in the tool bar */
border: 1px dashed #595e68; border: 1px dashed #3A3939;
/*border-radius: 3px;*/ /*border-radius: 3px;*/
} }
QMainWindow::separator:hover QMainWindow::separator:hover
{ {
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #78879b, background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #58677b,
stop:0.5 #78879b stop:1 #78879b); stop:0.5 #78879b stop:1 #58677b);
color: white; color: white;
padding-left: 4px; padding-left: 4px;
border: 1px solid #595e68; border: 1px solid #3A3939;
spacing: 2px; /* spacing between items in the tool bar */ spacing: 2px; /* spacing between items in the tool bar */
} }
@ -351,7 +352,7 @@ QMainWindow::separator:hover
QMenu::separator QMenu::separator
{ {
height: 1px; height: 1px;
background-color: #595e68; background-color: #3A3939;
color: white; color: white;
padding-left: 4px; padding-left: 4px;
margin-left: 10px; margin-left: 10px;
@ -362,7 +363,7 @@ QMenu::separator
QRadioButton::indicator:checked, QRadioButton::indicator:unchecked{ QRadioButton::indicator:checked, QRadioButton::indicator:unchecked{
color: #b1b1b1; color: #b1b1b1;
background-color: #494e58; background-color: #292828;
border: 1px solid silver; border: 1px solid silver;
border-radius: 5px; border-radius: 5px;
} }
@ -376,13 +377,13 @@ QRadioButton::indicator:checked
fx: 0.5, fy: 0.5, fx: 0.5, fy: 0.5,
radius: 1.0, radius: 1.0,
stop: 0.25 #78879b, stop: 0.25 #78879b,
stop: 0.3 #494e58 stop: 0.3 #292828
); );
} }
QCheckBox::indicator{ QCheckBox::indicator{
color: #b1b1b1; color: #b1b1b1;
background-color: #494e58; background-color: #292828;
border: 1px solid silver; border: 1px solid silver;
width: 9px; width: 9px;
height: 9px; height: 9px;
@ -413,7 +414,7 @@ QCheckBox::indicator:disabled, QRadioButton::indicator:disabled
QFrame QFrame
{ {
/*border: 1px solid #595e68;*/ /*border: 1px solid #3A3939;*/
border-radius: 3px; border-radius: 3px;
} }
@ -423,8 +424,8 @@ QStackedWidget
} }
QToolBar { QToolBar {
border: 1px solid #494e58; border: 1px solid #393838;
background: 1px solid #494e58; background: 1px solid #292828;
font-weight: bold; font-weight: bold;
} }
@ -447,9 +448,10 @@ QToolBar::separator:vertical {
QPushButton QPushButton
{ {
color: silver; color: silver;
background-color: #525863 ; background-color: QLinearGradient( x1: 0, y1: 1, x2: 0, y2: 0,
stop: 0 #292828, stop: 1 #484846);
border-width: 1px; border-width: 1px;
border-color: #595e68; border-color: #3A3939;
border-style: solid; border-style: solid;
padding-top: 2px; padding-top: 2px;
padding-bottom: 2px; padding-bottom: 2px;
@ -460,25 +462,35 @@ QPushButton
QPushButton:disabled QPushButton:disabled
{ {
border-color: #595e68; /*border-color: #3A3939;*/
background-color: #393e48; /*background-color: #393e48;*/
color: #595e68; background-color: QLinearGradient( x1: 0, y1: 1, x2: 0, y2: 0,
stop: 0 #292828, stop: 1 #484846);
border-width: 1px;
border-color: #3A3939;
border-style: solid;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 10px;
padding-right: 10px;
border-radius: 3px;
color: #3A3939;
} }
QComboBox QComboBox
{ {
selection-background-color: #78879b; selection-background-color: #78879b;
background-color: #525863; background-color: #201F1F;
border-style: solid; border-style: solid;
border: 1px solid #595e68; border: 1px solid #3A3939;
border-radius: 3px; border-radius: 3px;
} }
QComboBox:hover,QPushButton:hover,QSpinBox:hover,QLineEdit:hover QComboBox:hover,QPushButton:hover,QSpinBox:hover,QLineEdit:hover,QTextEdit:hover,QPlainTextEdit:hover,QAbstractView:hover,QTreeView:hover
{ {
/*border: 1px double #000000;*/ /*border: 1px double #000000;*/
border: 1px solid #78879b; border: 1px solid #78879b;
background-color: #626873; /*background-color: #626873;*/
color: silver; color: silver;
} }
@ -492,9 +504,9 @@ QComboBox:on
QComboBox QAbstractItemView QComboBox QAbstractItemView
{ {
background-color: #525863; background-color: #201F1F;
border-radius: 3px; border-radius: 3px;
border: 1px solid #595e68; border: 1px solid #3A3939;
selection-background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, selection-background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #78879b, stop: 1 #78879b); stop: 0 #78879b, stop: 1 #78879b);
} }
@ -534,8 +546,8 @@ QSpinBox {
/*padding-left: 5px; *//* make room for the arrows */ /*padding-left: 5px; *//* make room for the arrows */
padding-top: 2px; padding-top: 2px;
padding-bottom: 2px; padding-bottom: 2px;
border: 1px solid #595e68; border: 1px solid #3A3939;
background-color: #525863; background-color: #201F1F;
color: silver; color: silver;
border-radius: 3px; border-radius: 3px;
} }
@ -584,8 +596,8 @@ QLabel
QTabBar::tab { QTabBar::tab {
color: #b1b1b1; color: #b1b1b1;
border: 1px solid #595e68; border: 1px solid #3A3939;
background-color: #494e58; background-color: #292828;
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
padding-top: 3px; padding-top: 3px;
@ -595,9 +607,9 @@ QTabBar::tab {
QTabWidget::pane { QTabWidget::pane {
border: 1px solid #595e68; border: 1px solid #3A3939;
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1,
stop:1 #494e58, stop:0 #595e68); stop:1 #292828, stop:0 #3A3939);
/*top: 1px;*/ /*top: 1px;*/
} }
@ -626,16 +638,16 @@ QTabBar::tab:selected
border-top-right-radius: 3px; border-top-right-radius: 3px;
margin-bottom: 0px; margin-bottom: 0px;
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1,
stop:1 #494e58, stop:0 #595e68); stop:1 #292828, stop:0 #3A3939);
} }
QTabBar::tab:selected:hover QTabBar::tab:selected:hover
{ {
border-top-left-radius: 3px; border-top-left-radius: 3px;
border-top-right-radius: 3px; border-top-right-radius: 3px;
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1,
stop:1 #494e58, stop:0 #595e68); stop:1 #292828, stop:0 #3A3939);
} }
QDockWidget QDockWidget
@ -647,13 +659,13 @@ QDockWidget
QDockWidget::title QDockWidget::title
{ {
border: 1px solid #595e68; border: 1px solid #3A3939;
/*border-radius: 3px;*/ /*border-radius: 3px;*/
border-bottom: #494e58; border-bottom: #292828;
text-align: left; text-align: left;
spacing: 2px; /* spacing between items in the tool bar */ spacing: 2px; /* spacing between items in the tool bar */
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1,
stop:1 #494e58, stop:0 #595e68);; stop:1 #292828, stop:0 #3A3939);;
background-image: none; background-image: none;
padding-left: 10px; padding-left: 10px;
} }
@ -667,13 +679,12 @@ QDockWidget {
QDockWidget::close-button, QDockWidget::float-button { QDockWidget::close-button, QDockWidget::float-button {
border: 1px solid transparent; border: 1px solid transparent;
border-radius: 5px; border-radius: 5px;
background: #525863; background: transparent;
icon-size: 10px; icon-size: 10px;
} }
QDockWidget::close-button:hover, QDockWidget::float-button:hover { QDockWidget::close-button:hover, QDockWidget::float-button:hover {
background: rgba(60, 72, 80); background: #3A3939;
padding: -2px;
} }
QDockWidget::close-button:pressed, QDockWidget::float-button:pressed { QDockWidget::close-button:pressed, QDockWidget::float-button:pressed {
@ -682,7 +693,7 @@ QDockWidget::close-button:pressed, QDockWidget::float-button:pressed {
QTreeView, QListView, QTableView QTreeView, QListView, QTableView
{ {
border: 1px solid #595e68; border: 1px solid #3A3939;
} }
QTreeView::branch:has-siblings:!adjoins-item { QTreeView::branch:has-siblings:!adjoins-item {
@ -709,54 +720,53 @@ QTreeView::branch:open:has-children:has-siblings {
image: url(:/icons/QDarkStyleSheet/branch_open.png); image: url(:/icons/QDarkStyleSheet/branch_open.png);
} }
QSlider::groove:horizontal { QSlider::groove:horizontal {
border: 1px solid #595e68; border: 1px solid #3A3939;
height: 8px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */ height: 8px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
background: qlineargradient(spread:pad, x1:0.488, y1:1, x2:0.492025,y2:0, background: #201F1F;
stop:0.437186 rgba(113, 130, 150, 255),
stop:0.467337 rgba(120, 136, 156, 255));
margin: 2px 0; margin: 2px 0;
border-radius: 4px;
} }
QSlider::handle:horizontal { QSlider::handle:horizontal {
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0.0 silver, stop: 0.2 #a8a8a8, stop: 1 #727272); stop: 0.0 silver, stop: 0.2 #a8a8a8, stop: 1 #727272);
border: 1px solid #595e68; border: 1px solid #3A3939;
width: 18px; width: 14px;
margin: -5px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */ height: 14px;
margin: -4px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
border-radius: 7px; border-radius: 7px;
} }
QSlider::groove:vertical { QSlider::groove:vertical {
border: 1px solid #595e68; border: 1px solid #3A3939;
width: 8px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */ width: 8px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
background: qlineargradient(spread:pad, x1:0.488, y1:0, x2:0.492025, y2:1, background: #201F1F;
stop:0.437186 rgba(113, 130, 150, 255),
stop:0.467337 rgba(120, 136, 156, 255));
margin: 0 0px; margin: 0 0px;
border-radius: 4px;
} }
QSlider::handle:vertical { QSlider::handle:vertical {
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 silver, background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 silver,
stop: 0.2 #a8a8a8, stop: 1 #727272); stop: 0.2 #a8a8a8, stop: 1 #727272);
border: 1px solid #595e68; border: 1px solid #3A3939;
height: 18px; width: 14px;
margin: 0 -5px; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */ height: 14px;
margin: 0 -4px; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
border-radius: 7px; border-radius: 7px;
} }
QToolButton { /* all types of tool button */ QToolButton { /* all types of tool button */
background-color: #494e58; background-color: #292828;
/*border-radius: 3px;*/ /*border-radius: 3px;*/
/*border: none;*/ /*border: none;*/
} }
QToolButton:pressed { QToolButton:pressed {
background-color: #595e68; background-color: #3A3939;
} }
QToolButton:hover { QToolButton:hover {
background-color: #595e68; background-color: #3A3939;
} }