Skip to content

Commit d4b6ae7

Browse files
committed
Found one more thing that needed to be fixed for Dark Mode.
1 parent 3aeafb6 commit d4b6ae7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

SSYMultiTextFieldCell.m

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#import "SSYMultiTextFieldCell.h"
22
#import "NSImage+SSYDarkMode.h"
3+
#import "NSView+SSYDarkMode.h"
34

45

56
@implementation SSYMultiTextFieldCell
@@ -65,9 +66,13 @@ - (NSRect)drawAtLeftImage:(NSImage*)image
6566
[[self backgroundColor] set];
6667
NSRectFill(imageFrame);
6768
}
68-
69+
70+
NSCompositingOperation operation = [controlView isDarkMode_SSY]
71+
? NSCompositingOperationPlusLighter
72+
: NSCompositingOperationPlusDarker;
73+
6974
[image drawInRect:imageFrame
70-
operation:NSCompositingOperationPlusDarker
75+
operation:operation
7176
fraction:1.0
7277
invertIfDarkMode:YES
7378
inView:controlView];

0 commit comments

Comments
 (0)