[yast-commit] r59917 - in /trunk/theme: SLE/wizard/installation.qss openSUSE/wizard/installation.qss package/yast2-theme.changes
Author: jimmacfx Date: Wed Dec 2 19:32:21 2009 New Revision: 59917 URL: http://svn.opensuse.org/viewcvs/yast?rev=59917&view=rev Log: finally nailed the button menu styling. Addresses bnc#458001 and bnc#444400 Modified: trunk/theme/SLE/wizard/installation.qss trunk/theme/openSUSE/wizard/installation.qss trunk/theme/package/yast2-theme.changes Modified: trunk/theme/SLE/wizard/installation.qss URL: http://svn.opensuse.org/viewcvs/yast/trunk/theme/SLE/wizard/installation.qss?rev=59917&r1=59916&r2=59917&view=diff ============================================================================== --- trunk/theme/SLE/wizard/installation.qss (original) +++ trunk/theme/SLE/wizard/installation.qss Wed Dec 2 19:32:21 2009 @@ -128,22 +128,9 @@ border-radius: 3px; } -QMenu::item:selected { - background-color: white; - color: black; -} - -.ymenubutton { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, - stop: 0 #a5a5a5, stop: 0.8 #4d4d4d, stop: 1 #545454); -} YQProgressBar > YQWidgetCaption { margin-top: 20px; } -QPushButton::menu-indicator { - subcontrol-origin: margin; - left: -7px; - subcontrol-position: right; -} /* YQMultiProgressMeter::chunk { @@ -346,10 +333,13 @@ } /* odd dropdown button widget */ - #work_area QPushButton::menu-indicator { + #work_area QPushButton::menu-indicator, + #work_area QPushButton::menu-indicator:pressed, + QPushButton::menu-indicator:open { subcontrol-origin: margin; left: -7px; subcontrol-position: right; + image: url(arr_down.png); } #work_area QPushButton:open { /* when the button has its menu open */ @@ -358,18 +348,20 @@ border: 1px solid #dddddd; } - #work_area QPushButton::menu-indicator { - image: url(arr_down.png); - /* - subcontrol-origin: padding; - subcontrol-position: bottom right; - */ - } + /* button menus */ + QPushButton QMenu { + border: 1px solid #888; + + } + QPushButton QMenu::item { + background-color: #bebebe; + color: black; + } - #work_area QPushButton::menu-indicator:pressed, QPushButton::menu-indicator:open { - position: relative; - top: 1px; left: 1px; /* shift the arrow by 1 px */ - } + QPushButton QMenu::item:selected { + background-color: #4d8e0d; + color: white; + } Modified: trunk/theme/openSUSE/wizard/installation.qss URL: http://svn.opensuse.org/viewcvs/yast/trunk/theme/openSUSE/wizard/installation.qss?rev=59917&r1=59916&r2=59917&view=diff ============================================================================== --- trunk/theme/openSUSE/wizard/installation.qss (original) +++ trunk/theme/openSUSE/wizard/installation.qss Wed Dec 2 19:32:21 2009 @@ -126,14 +126,7 @@ border-radius: 3px; } -QMenu::item:selected { - background-color: white; - color: black; -} -.ymenubutton { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, - stop: 0 #a5a5a5, stop: 0.8 #4d4d4d, stop: 1 #545454); -} YQProgressBar > YQWidgetCaption { margin-top: 20px; } @@ -353,6 +346,20 @@ border: 1px solid #dddddd; } + /* button menus */ + QPushButton QMenu { + border: 1px solid #888; + + } + QPushButton QMenu::item { + background-color: #bebebe; + color: black; + } + + QPushButton QMenu::item:selected { + background-color: #4d8e0d; + color: white; + } #work_area QProgressBar { border: 1px solid #444; Modified: trunk/theme/package/yast2-theme.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/theme/package/yast2-theme.changes?rev=59917&r1=59916&r2=59917&view=diff ============================================================================== --- trunk/theme/package/yast2-theme.changes (original) +++ trunk/theme/package/yast2-theme.changes Wed Dec 2 19:32:21 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed Dec 2 19:29:14 CET 2009 - jimmac@novell.com + +- address the button submenu styling. bnc#444400 and bnc#458001. + +------------------------------------------------------------------- Tue Nov 24 14:52:37 CET 2009 - jimmac@novell.com - use wrench for the launcher icon again. In all sizes. The arrdvark mascot added as yast-mascot. bnc#501452, bnc#544921 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jimmacfx@svn.opensuse.org