UPD: apply menu color for FinderTag in Search Menu on macOS

(cherry picked from commit efbe003174)
This commit is contained in:
rich2014 2025-11-30 23:00:48 +08:00 committed by Alexander Koblov
commit 1f6d0cb324

View file

@ -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