mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 12:59:16 +02:00
Cocoa/Theme: improve on f84e081
This commit is contained in:
parent
15b81b0241
commit
9ace9bb511
@ -208,7 +208,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
SetButtonCellToDetails(b, Details);
|
SetButtonCellToDetails(b, Details);
|
||||||
CellDrawStart(DC, R, cur, nsr);
|
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);
|
CellDrawFrame(b, nsr);
|
||||||
CellDrawEnd(DC, cur);
|
CellDrawEnd(DC, cur);
|
||||||
Exit;
|
Exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user