Cocoa/Theme: improve on 60f7e4e

This commit is contained in:
rich2014 2024-09-25 20:01:26 +08:00
parent 5acf9a9c7d
commit 5ca013e686

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;