Author: jimmacfx Date: Thu Dec 11 23:23:26 2008 New Revision: 54073 URL: http://svn.opensuse.org/viewcvs/yast?rev=54073&view=rev Log: Trying to address issues with the dropbox widgets (QComboBox and QPushButton-with-menu) Modified: trunk/theme/SLE/wizard/installation.qss trunk/theme/openSUSE/wizard/installation.qss Modified: trunk/theme/SLE/wizard/installation.qss URL: http://svn.opensuse.org/viewcvs/yast/trunk/theme/SLE/wizard/installation.qss?rev=54073&r1=54072&r2=54073&view=diff ============================================================================== --- trunk/theme/SLE/wizard/installation.qss (original) +++ trunk/theme/SLE/wizard/installation.qss Thu Dec 11 23:23:26 2008 @@ -203,10 +203,14 @@ } QComboBox QAbstractItemView { + color: black; background: #eeeeee; border: 1px solid #dddddd; + /* border-radius: 4px; - /* selection-background-color: #4d8e0d; */ + selection-background-color: #4d8e0d; + selection-color: red; + */ } QTabWidget::tab-bar { @@ -305,7 +309,9 @@ } #work_area QPushButton:default:pressed, #work_area QPushButton:pressed { - background-color: red; /* FIXME: doesn't seem to match */ + border: 1px solid #0e5a00; + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: stop: 0 #4d8e0d, stop: 1 #5aa50f); } #work_area QPushButton:hover { @@ -325,6 +331,34 @@ stop: 0 #75ce1f, stop: 0.7 #4d8e0d, stop: 1 #7ac52f); } + /* odd dropdown button widget */ + #work_area QPushButton::menu-indicator { + subcontrol-origin: margin; + left: -7px; + subcontrol-position: right; + } + + #work_area QPushButton:open { /* when the button has its menu open */ + color: black; + background: #eeeeee; + border: 1px solid #dddddd; + } + + #work_area QPushButton::menu-indicator { + image: url(arr_down.png); + /* + subcontrol-origin: padding; + subcontrol-position: bottom right; + */ + } + + #work_area QPushButton::menu-indicator:pressed, QPushButton::menu-indicator:open { + position: relative; + top: 1px; left: 1px; /* shift the arrow by 1 px */ + } + + + #work_area QProgressBar { border: 1px solid #444; border-radius: 2px; Modified: trunk/theme/openSUSE/wizard/installation.qss URL: http://svn.opensuse.org/viewcvs/yast/trunk/theme/openSUSE/wizard/installation.qss?rev=54073&r1=54072&r2=54073&view=diff ============================================================================== --- trunk/theme/openSUSE/wizard/installation.qss (original) +++ trunk/theme/openSUSE/wizard/installation.qss Thu Dec 11 23:23:26 2008 @@ -136,12 +136,6 @@ YQProgressBar > YQWidgetCaption { margin-top: 20px; } -QPushButton::menu-indicator { - subcontrol-origin: margin; - left: -7px; - subcontrol-position: right; -} - /* YQMultiProgressMeter::chunk { background-color: green; @@ -153,6 +147,7 @@ */ QComboBox { + color: white; border: 1px solid #313131; border-radius: 4px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, @@ -205,6 +200,7 @@ QComboBox QAbstractItemView { background: #444444; border: 1px solid #222222; + color: white; /* these don't render well and create ugly corners border-radius: 4px; */ @@ -289,7 +285,9 @@ } #work_area QPushButton:default:pressed, #work_area QPushButton:pressed { - background-color: red; /* FIXME: doesn't seem to match */ + border: 1px solid #0e5a00; + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #4d8e0d, stop: 1 #5aa50f); } #work_area QPushButton:hover { @@ -308,6 +306,34 @@ stop: 0 #75ce1f, stop: 0.7 #4d8e0d, stop: 1 #7ac52f); } + /* odd dropdown button widget */ + #work_area QPushButton::menu-indicator { + subcontrol-origin: margin; + left: -7px; + subcontrol-position: right; + } + + #work_area QPushButton:open { /* when the button has its menu open */ + background: #444444; + border: 1px solid #222222; + color: white; + } + + #work_area QPushButton::menu-indicator { + image: url(arr_down.png); + /* + subcontrol-origin: padding; + subcontrol-position: bottom right; + */ + } + + #work_area QPushButton::menu-indicator:pressed, QPushButton::menu-indicator:open { + position: relative; + top: 1px; left: 1px; /* shift the arrow by 1 px */ + } + + + #work_area QProgressBar { border: 1px solid #444; border-radius: 2px; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org