Fix speed indicator color in dark mode
This commit is contained in:
parent
72fffa5ea5
commit
c5b97d6108
@ -46,7 +46,11 @@ class StatusItemView: NSView {
|
||||
let image = NSImage(contentsOfFile: customImagePath) ??
|
||||
NSImage(named: "menu_icon")!.tint(color: darkMode ? NSColor.white : NSColor.black)
|
||||
self.imageView.image = image
|
||||
|
||||
self.uploadSpeedLabel.textColor = darkMode ? NSColor.white : NSColor.black
|
||||
self.downloadSpeedLabel.textColor = self.uploadSpeedLabel.textColor
|
||||
self.isDarkMode = darkMode
|
||||
|
||||
}.disposed(by: disposeBag)
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14113" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14113"/>
|
||||
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14313.18"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
@ -66,7 +65,7 @@
|
||||
<outlet property="speedContainerView" destination="x4I-nn-92U" id="qlv-Jp-oB5"/>
|
||||
<outlet property="uploadSpeedLabel" destination="srp-1R-o7n" id="s4y-hX-VbP"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="25.5" y="98.5"/>
|
||||
<point key="canvasLocation" x="25.5" y="98"/>
|
||||
</customView>
|
||||
</objects>
|
||||
<resources>
|
||||
|
Loading…
Reference in New Issue
Block a user