Author: coolo Date: Thu Nov 29 15:27:39 2007 New Revision: 42508 URL: http://svn.opensuse.org/viewcvs/yast?rev=42508&view=rev Log: on jimmac's mockup, the current step is bold - we can have that too Modified: branches/tmp/coolo/wizard-rework/src/YQWizard.cc branches/tmp/coolo/wizard-rework/theme/style.qss Modified: branches/tmp/coolo/wizard-rework/src/YQWizard.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/wizard-rework/src/YQWizard.cc?rev=42508&r1=42507&r2=42508&view=diff ============================================================================== --- branches/tmp/coolo/wizard-rework/src/YQWizard.cc (original) +++ branches/tmp/coolo/wizard-rework/src/YQWizard.cc Thu Nov 29 15:27:39 2007 @@ -1218,21 +1218,31 @@ void YQWizard::Step::setStatus( Status s ) { - if ( !_statusLabel || _status == s ) + if ( !_statusLabel || !_nameLabel || _status == s ) return; _status = s; if ( s == Todo ) - _statusLabel->setProperty( "class", "todo-step QLabel" ); + { + _statusLabel->setProperty( "class", "todo-step-status QLabel" ); + _nameLabel->setProperty( "class", "todo-step-name QLabel" ); + } if ( s == Done ) - _statusLabel->setProperty( "class", "done-step QLabel" ); + { + _statusLabel->setProperty( "class", "done-step-status QLabel" ); + _nameLabel->setProperty( "class", "done-step-name QLabel" ); + } if ( s == Current ) - _statusLabel->setProperty( "class", "current-step QLabel" ); + { + _statusLabel->setProperty( "class", "current-step-status QLabel" ); + _nameLabel->setProperty( "class", "current-step-name QLabel" ); + } qApp->style()->polish( _statusLabel ); + qApp->style()->polish( _nameLabel ); } #include "YQWizard.moc" Modified: branches/tmp/coolo/wizard-rework/theme/style.qss URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/wizard-rework/theme/style.qss?rev=42508&r1=42507&r2=42508&view=diff ============================================================================== --- branches/tmp/coolo/wizard-rework/theme/style.qss (original) +++ branches/tmp/coolo/wizard-rework/theme/style.qss Thu Nov 29 15:27:39 2007 @@ -38,19 +38,23 @@ background-color: wheat; } -.todo-step { +.current-step-name { + font: bold; +} + +.todo-step-status { qproperty-pixmap: url(step-todo.png); max-width: 14px; min-width: 14px; } -.done-step { +.done-step-status { qproperty-pixmap: url(step-done.png); max-width: 14px; min-width: 14px; } -.current-step { +.current-step-status { qproperty-pixmap: url(step-current.png); max-width: 14px; min-width: 14px; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org