Improve: Set speed label font-weight to medium

This commit is contained in:
yichengchen 2019-05-10 20:41:31 +08:00
parent d4ed7b2e61
commit 9b87836283
2 changed files with 9 additions and 2 deletions

View File

@ -62,6 +62,13 @@ class StatusItemView: NSView {
self.updateStatusItemView()
}.disposed(by: disposeBag)
if #available(OSX 10.11, *) {
let font = NSFont.systemFont(ofSize: 8, weight: .medium)
uploadSpeedLabel.font = font
downloadSpeedLabel.font = font
}
}
func updateSpeedLabel(up:Int,down:Int) {

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14460.31"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>