mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 08:58:23 +02:00
Cocoa/Theme: improve on f84e081
This commit is contained in:
parent
15b81b0241
commit
9ace9bb511
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user