mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added display information to the Dashboard
This commit is contained in:
@@ -350,11 +350,12 @@ public extension NSView {
|
||||
return button
|
||||
}
|
||||
|
||||
func textView(_ value: String) -> NSTextField {
|
||||
func textView(_ value: String, alignment: NSTextAlignment = .left) -> NSTextField {
|
||||
let field: NSTextField = TextView()
|
||||
field.font = NSFont.systemFont(ofSize: 13, weight: .regular)
|
||||
field.stringValue = value
|
||||
field.isSelectable = true
|
||||
field.alignment = alignment
|
||||
return field
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user