|
|
@ -49,7 +49,7 @@ class StatusItemView: NSView { |
|
|
|
NSAttributedString.Key.font: compactModeTimeFont, |
|
|
|
NSAttributedString.Key.font: compactModeTimeFont, |
|
|
|
NSAttributedString.Key.foregroundColor: textColor, |
|
|
|
NSAttributedString.Key.foregroundColor: textColor, |
|
|
|
NSAttributedString.Key.backgroundColor: NSColor.clear, |
|
|
|
NSAttributedString.Key.backgroundColor: NSColor.clear, |
|
|
|
NSAttributedString.Key.paragraphStyle: defaultParagraphStyle, |
|
|
|
NSAttributedString.Key.paragraphStyle: defaultParagraphStyle |
|
|
|
] |
|
|
|
] |
|
|
|
return attributes |
|
|
|
return attributes |
|
|
|
} |
|
|
|
} |
|
|
@ -61,7 +61,7 @@ class StatusItemView: NSView { |
|
|
|
NSAttributedString.Key.font: NSFont.boldSystemFont(ofSize: 10), |
|
|
|
NSAttributedString.Key.font: NSFont.boldSystemFont(ofSize: 10), |
|
|
|
NSAttributedString.Key.foregroundColor: textColor, |
|
|
|
NSAttributedString.Key.foregroundColor: textColor, |
|
|
|
NSAttributedString.Key.backgroundColor: NSColor.clear, |
|
|
|
NSAttributedString.Key.backgroundColor: NSColor.clear, |
|
|
|
NSAttributedString.Key.paragraphStyle: defaultParagraphStyle, |
|
|
|
NSAttributedString.Key.paragraphStyle: defaultParagraphStyle |
|
|
|
] |
|
|
|
] |
|
|
|
return textFontAttributes |
|
|
|
return textFontAttributes |
|
|
|
} |
|
|
|
} |
|
|
@ -90,14 +90,14 @@ class StatusItemView: NSView { |
|
|
|
locationView.leadingAnchor.constraint(equalTo: leadingAnchor), |
|
|
|
locationView.leadingAnchor.constraint(equalTo: leadingAnchor), |
|
|
|
locationView.trailingAnchor.constraint(equalTo: trailingAnchor), |
|
|
|
locationView.trailingAnchor.constraint(equalTo: trailingAnchor), |
|
|
|
locationView.topAnchor.constraint(equalTo: topAnchor, constant: 7), |
|
|
|
locationView.topAnchor.constraint(equalTo: topAnchor, constant: 7), |
|
|
|
locationView.heightAnchor.constraint(equalTo: heightAnchor, multiplier: 0.35), |
|
|
|
locationView.heightAnchor.constraint(equalTo: heightAnchor, multiplier: 0.35) |
|
|
|
]) |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
NSLayoutConstraint.activate([ |
|
|
|
NSLayoutConstraint.activate([ |
|
|
|
timeView.leadingAnchor.constraint(equalTo: leadingAnchor), |
|
|
|
timeView.leadingAnchor.constraint(equalTo: leadingAnchor), |
|
|
|
timeView.trailingAnchor.constraint(equalTo: trailingAnchor, constant: 0), |
|
|
|
timeView.trailingAnchor.constraint(equalTo: trailingAnchor, constant: 0), |
|
|
|
timeView.topAnchor.constraint(equalTo: locationView.bottomAnchor), |
|
|
|
timeView.topAnchor.constraint(equalTo: locationView.bottomAnchor), |
|
|
|
timeView.bottomAnchor.constraint(equalTo: bottomAnchor), |
|
|
|
timeView.bottomAnchor.constraint(equalTo: bottomAnchor) |
|
|
|
]) |
|
|
|
]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|