mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 451771 - disabling input greys background. r=jimm
This commit is contained in:
parent
8abc039367
commit
24c902fdd8
@ -1831,6 +1831,15 @@ RENDER_AGAIN:
|
||||
DrawThemeBGRTLAware(theme, hdc, part, state,
|
||||
&widgetRect, &clipRect, IsFrameRTL(aFrame));
|
||||
}
|
||||
else if (aWidgetType == NS_THEME_NUMBER_INPUT ||
|
||||
aWidgetType == NS_THEME_TEXTFIELD ||
|
||||
aWidgetType == NS_THEME_TEXTFIELD_MULTILINE) {
|
||||
DrawThemeBackground(theme, hdc, part, state, &widgetRect, &clipRect);
|
||||
if (state == TFS_EDITBORDER_DISABLED) {
|
||||
InflateRect(&widgetRect, -1, -1);
|
||||
::FillRect(hdc, &widgetRect, reinterpret_cast<HBRUSH>(COLOR_BTNFACE+1));
|
||||
}
|
||||
}
|
||||
else if (aWidgetType == NS_THEME_PROGRESSBAR ||
|
||||
aWidgetType == NS_THEME_PROGRESSBAR_VERTICAL) {
|
||||
// DrawThemeBackground renders each corner with a solid white pixel.
|
||||
|
Loading…
Reference in New Issue
Block a user