Implemented shadow drawing, also extended the theme config again

(new color entries for highlighted buttons and for other widgets).
Also added a 'highlight' check to the CheckBox widget.
Changed the PopUpDialog to use a shadow around itself.

svn-id: r20341
This commit is contained in:
Johannes Schickel 2006-02-01 15:11:39 +00:00
parent 303d19afcb
commit 129e7846b5
7 changed files with 205 additions and 48 deletions

View file

@ -182,7 +182,7 @@ void CheckboxWidget::setState(bool state) {
void CheckboxWidget::drawWidget(bool hilite) {
g_gui.theme()->drawCheckbox(Common::Rect(_x, _y, _x+_w, _y+_h), _label, _state,
isEnabled() ? Theme::kStateEnabled : Theme::kStateDisabled);
isEnabled() ? (hilite ? Theme::kStateHighlight : Theme::kStateEnabled) : Theme::kStateDisabled);
}
#pragma mark -