From 5e85637c2b221d564155fa21bea7fff3df1ff1db Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 17 Oct 2008 17:30:39 +0000 Subject: [PATCH] - improved red and uus qss stylesheets git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@750 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/qss/red.qss | 17 ++++++++++++- retroshare-gui/src/gui/qss/uus.qss | 35 +++++++++++++++++++++++++- retroshare-gui/src/release/qss/red.qss | 17 ++++++++++++- retroshare-gui/src/release/qss/uus.qss | 35 +++++++++++++++++++++++++- 4 files changed, 100 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/qss/red.qss b/retroshare-gui/src/gui/qss/red.qss index 3d56512a2..afbc6f536 100644 --- a/retroshare-gui/src/gui/qss/red.qss +++ b/retroshare-gui/src/gui/qss/red.qss @@ -83,4 +83,19 @@ QStatusBar{ border-image: url(qss/red/red.png); } - \ No newline at end of file + +QMenu { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 darkred, stop: 0.4 red); + border: 1px solid black; + } + + QMenu::item { + /* sets background of menu item. set this to something non-transparent + if you want menu color and menu item color to be different */ + background-color: transparent; + } + + QMenu::item:selected { /* when user selects item using mouse or keyboard */ + background-color: #654321; + } \ No newline at end of file diff --git a/retroshare-gui/src/gui/qss/uus.qss b/retroshare-gui/src/gui/qss/uus.qss index f75458455..5d32b227d 100644 --- a/retroshare-gui/src/gui/qss/uus.qss +++ b/retroshare-gui/src/gui/qss/uus.qss @@ -1,5 +1,8 @@ .QWidget { - background-color: black; + /*background-color: black;*/ + + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #376D85, stop: 0.4 #185772); } @@ -11,7 +14,31 @@ QToolBar { } + /* Style the tab using the tab sub-control. Note that + it reads QTabBar _not_ QTabWidget */ + QTabBar::tab { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #BDDF7D, stop: 1 #49881F); + border: 2px solid #BDDF7D; + border-bottom-color: #49881F; /* same as the pane color */ + border-top-left-radius: 4px; + border-top-right-radius: 4px; + min-width: 8ex; + padding: 2px; + } + + QTabBar::tab:!selected { + margin-top: 2px; /* make non-selected tabs look smaller */ + } + +QHeaderView::section { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #BDDF7D, stop: 1 #49881F); + color: white; + padding-left: 4px; + border: 1px solid #6c6c6c; + } QPushButton#okButton { min-height: 27px; @@ -46,3 +73,9 @@ QStatusBar{ border-image: url(qss/uus/uus.png); } + +QMenu { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #376D85, stop: 0.4 #185772); + border: 1px solid black; + } \ No newline at end of file diff --git a/retroshare-gui/src/release/qss/red.qss b/retroshare-gui/src/release/qss/red.qss index 3d56512a2..afbc6f536 100644 --- a/retroshare-gui/src/release/qss/red.qss +++ b/retroshare-gui/src/release/qss/red.qss @@ -83,4 +83,19 @@ QStatusBar{ border-image: url(qss/red/red.png); } - \ No newline at end of file + +QMenu { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 darkred, stop: 0.4 red); + border: 1px solid black; + } + + QMenu::item { + /* sets background of menu item. set this to something non-transparent + if you want menu color and menu item color to be different */ + background-color: transparent; + } + + QMenu::item:selected { /* when user selects item using mouse or keyboard */ + background-color: #654321; + } \ No newline at end of file diff --git a/retroshare-gui/src/release/qss/uus.qss b/retroshare-gui/src/release/qss/uus.qss index f75458455..5d32b227d 100644 --- a/retroshare-gui/src/release/qss/uus.qss +++ b/retroshare-gui/src/release/qss/uus.qss @@ -1,5 +1,8 @@ .QWidget { - background-color: black; + /*background-color: black;*/ + + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #376D85, stop: 0.4 #185772); } @@ -11,7 +14,31 @@ QToolBar { } + /* Style the tab using the tab sub-control. Note that + it reads QTabBar _not_ QTabWidget */ + QTabBar::tab { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #BDDF7D, stop: 1 #49881F); + border: 2px solid #BDDF7D; + border-bottom-color: #49881F; /* same as the pane color */ + border-top-left-radius: 4px; + border-top-right-radius: 4px; + min-width: 8ex; + padding: 2px; + } + + QTabBar::tab:!selected { + margin-top: 2px; /* make non-selected tabs look smaller */ + } + +QHeaderView::section { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #BDDF7D, stop: 1 #49881F); + color: white; + padding-left: 4px; + border: 1px solid #6c6c6c; + } QPushButton#okButton { min-height: 27px; @@ -46,3 +73,9 @@ QStatusBar{ border-image: url(qss/uus/uus.png); } + +QMenu { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #376D85, stop: 0.4 #185772); + border: 1px solid black; + } \ No newline at end of file