diff options
author | Johannes Schickel | 2006-02-01 15:11:39 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-02-01 15:11:39 +0000 |
commit | 129e7846b51a2f0e10ba70393283d13ca90eb1df (patch) | |
tree | 8239d22d0a8a7113549e9877b49f327b861da87e /gui/widget.cpp | |
parent | 303d19afcbbddfccb420535c87fab3cced6c56eb (diff) | |
download | scummvm-rg350-129e7846b51a2f0e10ba70393283d13ca90eb1df.tar.gz scummvm-rg350-129e7846b51a2f0e10ba70393283d13ca90eb1df.tar.bz2 scummvm-rg350-129e7846b51a2f0e10ba70393283d13ca90eb1df.zip |
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
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r-- | gui/widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index 4e7bf5adf6..86fc25fa0b 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -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 - |