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