feat: added display information to the Dashboard

This commit is contained in:
Serhiy Mytrovtsiy
2025-10-02 19:03:46 +02:00
parent a07c3cf323
commit f40b5dd12a
3 changed files with 110 additions and 5 deletions

View File

@@ -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
}