Author: coolo Date: Sat Jan 26 21:45:09 2008 New Revision: 43922 URL: http://svn.opensuse.org/viewcvs/yast?rev=43922&view=rev Log: it's unfortunate that no-one listened to me, but: I'm not a designer Modified: trunk/theme/openSUSE/wizard/style.qss Modified: trunk/theme/openSUSE/wizard/style.qss URL: http://svn.opensuse.org/viewcvs/yast/trunk/theme/openSUSE/wizard/style.qss?rev=43922&r1=43921&r2=43922&view=diff ============================================================================== --- trunk/theme/openSUSE/wizard/style.qss (original) +++ trunk/theme/openSUSE/wizard/style.qss Sat Jan 26 21:45:09 2008 @@ -30,14 +30,6 @@ background-color: rgba(255, 255, 255, 100); } -QPushButton { - color: black; -} - -QPushButton:disabled { - color: gray; -} - QTextBrowser { color: black; } @@ -98,9 +90,92 @@ border-radius: 5px; } +/* YQMultiProgressMeter::chunk { background-color: green; margin: 0.5px; width: 8px; height: 8px; } + +*/ + +QTabWidget::tab-bar { + left: 5px; /* move to the right by 5px */ +} + +/* 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 #315910, stop: 1.0 #6a8d52); + border: 0px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + min-width: 8ex; + padding: 2px; + color: white; +} + +QTabBar::tab:selected { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #719950, stop: 1.0 #9aad72); + color: black; +} + +QTabBar::tab:hover { + color: black; +} + +QTabBar::tab:!selected { + margin-top: 2px; /* make non-selected tabs look smaller */ +} + +/* make use of negative margins for overlapping tabs */ +QTabBar::tab:selected { + /* expand/overlap to the left and right by 4px */ + margin-left: -4px; + margin-right: -4px; +} + +QTabBar::tab:first:selected { + margin-left: 0; /* the first selected tab has nothing to overlap with on the left */ +} + +QTabBar::tab:last:selected { + margin-right: 0; /* the last selected tab has nothing to overlap with on the right */ +} + +QTabBar::tab:only-one { + margin: 0; /* if there is only one tab, we don't want overlapping margins */ +} + +QPushButton { + border: 2px solid #4f8f41; + border-radius: 6px; + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #318930, stop: 1 #315910); + padding-left: 14px; + padding-right: 14px; + padding-top: 5px; + padding-bottom: 5px; + color: white; +} + +QPushButton:pressed { + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #315910, stop: 1 #9aad72); +} + +QPushButton:hover { + background-color: #315910; + color: white; +} + +QPushButton:flat { + border: none; /* no border for a flat push button */ +} + +QPushButton:default { + border-color: darkgreen; /* make the default button prominent */ +} -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org