- improved QTabWidgets stylesheet for uus stylesheet

- added for QPushButtons qlineargradient color for uus stylesheet

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@755 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-10-18 18:19:56 +00:00
parent 0d6eeece82
commit 27c4429a59
4 changed files with 86 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

View File

@ -13,9 +13,9 @@ QToolBar {
} }
/* Style the tab using the tab sub-control. Note that /* Style the tab using the tab sub-control. Note that
it reads QTabBar _not_ QTabWidget */ it reads QTabBar _not_ QTabWidget */
QTabBar::tab { QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #BDDF7D, stop: 1 #49881F); stop: 0 #BDDF7D, stop: 1 #49881F);
border: 2px solid #BDDF7D; border: 2px solid #BDDF7D;
@ -27,8 +27,22 @@ QToolBar {
} }
QTabBar::tab:!selected { QTabBar::tab:!selected {
margin-top: 2px; /* make non-selected tabs look smaller */ margin-top: 2px; /* make non-selected tabs look smaller */
}
QTabBar::tab:selected, QTabBar::tab:hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #F0F8CB, stop: 1 #F0F8CD);
}
QTabBar::tab:selected {
border-color: #9B9B9B;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #F5FFBC, stop: 1 #609C08);
} }
QHeaderView::section { QHeaderView::section {
@ -63,6 +77,26 @@ QPushButton#applyButton {
min-width: 75px; min-width: 75px;
} }
QPushButton {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #BDDF7D, stop: 1 #49881F);
border: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #BDDF7D, stop: 1 #49881F);
}
QPushButton::hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #F0F8CB, stop: 1 #F0F8CD);
}
QPushButton::pressed {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #F5FFBC, stop: 1 #609C08);
}
QLabel QLabel
{ {
color: white; color: white;
@ -92,4 +126,10 @@ QListWidget::item:selected { /* when user selects item using mouse or keyboard *
QTreeWidget::item:selected { /* when user selects item using mouse or keyboard */ QTreeWidget::item:selected { /* when user selects item using mouse or keyboard */
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #BDDF7D, stop: 1 #49881F); stop: 0 #BDDF7D, stop: 1 #49881F);
}
QToolTip{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #376D85, stop: 0.4 #185772);
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

View File

@ -13,9 +13,9 @@ QToolBar {
} }
/* Style the tab using the tab sub-control. Note that /* Style the tab using the tab sub-control. Note that
it reads QTabBar _not_ QTabWidget */ it reads QTabBar _not_ QTabWidget */
QTabBar::tab { QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #BDDF7D, stop: 1 #49881F); stop: 0 #BDDF7D, stop: 1 #49881F);
border: 2px solid #BDDF7D; border: 2px solid #BDDF7D;
@ -27,8 +27,22 @@ QToolBar {
} }
QTabBar::tab:!selected { QTabBar::tab:!selected {
margin-top: 2px; /* make non-selected tabs look smaller */ margin-top: 2px; /* make non-selected tabs look smaller */
}
QTabBar::tab:selected, QTabBar::tab:hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #F0F8CB, stop: 1 #F0F8CD);
}
QTabBar::tab:selected {
border-color: #9B9B9B;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #F5FFBC, stop: 1 #609C08);
} }
QHeaderView::section { QHeaderView::section {
@ -63,6 +77,26 @@ QPushButton#applyButton {
min-width: 75px; min-width: 75px;
} }
QPushButton {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #BDDF7D, stop: 1 #49881F);
border: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #BDDF7D, stop: 1 #49881F);
}
QPushButton::hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #F0F8CB, stop: 1 #F0F8CD);
}
QPushButton::pressed {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #F5FFBC, stop: 1 #609C08);
}
QLabel QLabel
{ {
color: white; color: white;
@ -92,4 +126,10 @@ QListWidget::item:selected { /* when user selects item using mouse or keyboard *
QTreeWidget::item:selected { /* when user selects item using mouse or keyboard */ QTreeWidget::item:selected { /* when user selects item using mouse or keyboard */
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #BDDF7D, stop: 1 #49881F); stop: 0 #BDDF7D, stop: 1 #49881F);
}
QToolTip{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #376D85, stop: 0.4 #185772);
} }