mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: apply menu color for FinderTag in Search Menu on macOS
(cherry picked from commit efbe003174)
This commit is contained in:
parent
c76ab078a8
commit
1f6d0cb324
1 changed files with 4 additions and 1 deletions
|
|
@ -982,8 +982,11 @@ var
|
|||
color.set_;
|
||||
rect.origin:= NSZeroPoint;
|
||||
rect.size:= imageSize;
|
||||
rect:= NSInsetRect( rect, 1, 1 );
|
||||
path:= NSBezierPath.bezierPathWithOvalInRect( rect );
|
||||
path.fill;
|
||||
color.blendedColorWithFraction_ofColor( 0.1, NSColor.textColor ).set_;
|
||||
path.stroke;
|
||||
end;
|
||||
|
||||
function createOneColorImage( const color: NSColor ): NSImage;
|
||||
|
|
@ -1011,7 +1014,7 @@ var
|
|||
|
||||
begin
|
||||
imageSize:= NSMakeSize( FINDER_TAGS_MENU_ROUND_SIZE, FINDER_TAGS_MENU_ROUND_SIZE );
|
||||
colors:= uDarwinFinderModelUtil.rectFinderTagNSColors;
|
||||
colors:= uDarwinFinderModelUtil.menuFinderTagNSColors;
|
||||
count:= Length( colors );
|
||||
SetLength( _menuTagRoundImages, count );
|
||||
for i:= 0 to count-1 do begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue