Skip to content

Commit

Permalink
perf: use ez_imageWithSymbolName instead imageWithSystemSymbolName
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Dec 2, 2023
1 parent 2b8bb29 commit 838f38c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Easydict/Feature/ViewController/View/QueryView/EZQueryView.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "EZSchemeParser.h"
#import "EZCopyButton.h"
#import "EZConfiguration.h"
#import "NSImage+EZSymbolmage.h"

@interface EZQueryView () <NSTextViewDelegate, NSTextStorageDelegate>

Expand Down Expand Up @@ -153,9 +154,8 @@ - (void)setup {
[self addSubview:clearButton];
self.clearButton = clearButton;

NSImage *clearImage = [NSImage imageWithSystemSymbolName:@"xmark.circle.fill" accessibilityDescription:nil];
NSImage *clearImage = [NSImage ez_imageWithSymbolName:@"xmark.circle.fill"];
clearImage = [clearImage imageWithTintColor:[NSColor mm_colorWithHexString:@"#868686"]];
clearImage = [clearImage resizeToSize:CGSizeMake(EZAudioButtonImageWidth_16, EZAudioButtonImageWidth_16)];
clearButton.image = clearImage;

NSString *clearAction = NSLocalizedString(@"clear_all", nil);
Expand Down

0 comments on commit 838f38c

Please sign in to comment.