mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 06:18:21 +02:00
Cocoa/Theme: improve on 60f7e4e
This commit is contained in:
parent
5acf9a9c7d
commit
5ca013e686
@ -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