Allow the disabled state of the popup widget to be themed
svn-id: r35480
This commit is contained in:
parent
1ccce41c8f
commit
2ec51ef358
8 changed files with 72 additions and 3 deletions
|
@ -774,7 +774,14 @@ void ThemeEngine::drawPopUpWidget(const Common::Rect &r, const Common::String &s
|
|||
if (!ready())
|
||||
return;
|
||||
|
||||
DrawData dd = (state == kStateHighlight) ? kDDPopUpHover : kDDPopUpIdle;
|
||||
DrawData dd = kDDPopUpIdle;
|
||||
|
||||
if (state == kStateEnabled)
|
||||
dd = kDDPopUpIdle;
|
||||
else if (state == kStateHighlight)
|
||||
dd = kDDPopUpHover;
|
||||
else if (state == kStateDisabled)
|
||||
dd = kDDPopUpDisabled;
|
||||
|
||||
queueDD(dd, r);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue