mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: added public IP address to the network portal view (#1842)
This commit is contained in:
@@ -350,7 +350,7 @@ public func popupRow(_ view: NSView, n: CGFloat = 0, title: String, value: Strin
|
||||
return (labelView, valueView)
|
||||
}
|
||||
|
||||
public func portalRow(_ v: NSStackView, title: String) -> ValueField {
|
||||
public func portalRow(_ v: NSStackView, title: String, value: String = "") -> ValueField {
|
||||
let view: NSStackView = NSStackView()
|
||||
view.orientation = .horizontal
|
||||
view.distribution = .fillProportionally
|
||||
@@ -359,7 +359,7 @@ public func portalRow(_ v: NSStackView, title: String) -> ValueField {
|
||||
let labelView: LabelField = LabelField(title)
|
||||
labelView.font = NSFont.systemFont(ofSize: 11, weight: .regular)
|
||||
|
||||
let valueView: ValueField = ValueField()
|
||||
let valueView: ValueField = ValueField(value)
|
||||
valueView.font = NSFont.systemFont(ofSize: 12, weight: .regular)
|
||||
|
||||
view.addArrangedSubview(labelView)
|
||||
|
||||
Reference in New Issue
Block a user