mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
[macOS] Apply ObjC modernizations once again. (#3358)
This doesn't include designated initializers refactoring.
This commit is contained in:
committed by
GitHub
parent
88a3149ce4
commit
37f7f83d4d
@@ -21,7 +21,7 @@
|
||||
bp.lineWidth = BORDER_WIDTH;
|
||||
|
||||
//border
|
||||
CGFloat fractionOfBlendedColor = [NSApp isDarkMode] ? 0.15 : 0.3;
|
||||
CGFloat fractionOfBlendedColor = NSApp.darkMode ? 0.15 : 0.3;
|
||||
NSColor* borderColor = [color blendedColorWithFraction:fractionOfBlendedColor ofColor:NSColor.controlTextColor];
|
||||
[borderColor setStroke];
|
||||
[bp stroke];
|
||||
|
||||
Reference in New Issue
Block a user