Cocoa/Theme: improve on f84e081

This commit is contained in:
rich2014 2024-09-25 20:01:26 +08:00
parent 15b81b0241
commit 9ace9bb511

View File

@ -208,7 +208,9 @@ begin
begin
SetButtonCellToDetails(b, Details);
CellDrawStart(DC, R, cur, nsr);
b.setBackgroundColor( NSColor.controlBackgroundColor );
// don't set backgroundColor for PushButton
if Details.Part <> BP_PUSHBUTTON then
b.setBackgroundColor( NSColor.controlBackgroundColor );
CellDrawFrame(b, nsr);
CellDrawEnd(DC, cur);
Exit;