Skip to content

Commit 5ba89ce

Browse files
committed
Merge pull request livecode#3537 from livecodefraser/bugfix-14361
Ignore the background colour when drawing native-appearance tab panes
2 parents c563183 + 2dd841f commit 5ba89ce

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

docs/notes/bugfix-14361.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ignore the background color for native-appearance tab panes

engine/src/buttondraw.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,11 @@ void MCButton::draw(MCDC *dc, const MCRectangle& p_dirty, bool p_isolated, bool
186186
case F_RADIO:
187187
case F_RECTANGLE:
188188
case F_STANDARD:
189-
if (MCcurtheme == NULL || !getstack() -> ismetal() || (isstdbtn && state & CS_HILITED) ||
190-
!MCcurtheme -> drawmetalbackground(dc, dirty, trect, this))
189+
if ((isstdbtn && (state & CS_HILITED))
190+
|| MCcurtheme == NULL
191+
|| !((getstack()->ismetal() && MCcurtheme->drawmetalbackground(dc, dirty, trect, this))
192+
|| (style == F_MENU && menumode == WM_TOP_LEVEL && MCcurtheme->iswidgetsupported(WTHEME_TYPE_TABPANE))))
193+
191194
{
192195
if (isstdbtn && noback)
193196
{

0 commit comments

Comments
 (0)