Use a red V menu bar icon and verify universal architectures
This commit is contained in:
1 parent
b5d8243719
commit
c6928d66b2
3 files changed
+30
-4
No files matched your search
@@ -9,11 +9,34 @@ struct MenuBarServer: App {
|
||||
MenuBarExtra {
|
||||
ServerPanel(model: model)
|
||||
} label: {
|
||||
Label("ezServer", systemImage: "externaldrive")
|
||||
.labelStyle(.titleAndIcon)
|
||||
Image(nsImage: Self.menuIcon)
|
||||
.renderingMode(.original)
|
||||
.accessibilityLabel("ezServer")
|
||||
}
|
||||
.menuBarExtraStyle(.window)
|
||||
}
|
||||
|
||||
private static let menuIcon: NSImage = {
|
||||
let image = NSImage(size: NSSize(width: 18, height: 18), flipped: false) { bounds in
|
||||
let border = NSBezierPath(rect: bounds.insetBy(dx: 1.5, dy: 1.5))
|
||||
NSColor.systemGray.setStroke()
|
||||
border.lineWidth = 1
|
||||
border.stroke()
|
||||
|
||||
let letter = NSBezierPath()
|
||||
letter.move(to: NSPoint(x: 5, y: 13))
|
||||
letter.line(to: NSPoint(x: 9, y: 5))
|
||||
letter.line(to: NSPoint(x: 13, y: 13))
|
||||
letter.lineWidth = 2
|
||||
letter.lineCapStyle = .round
|
||||
letter.lineJoinStyle = .round
|
||||
NSColor.systemRed.setStroke()
|
||||
letter.stroke()
|
||||
return true
|
||||
}
|
||||
image.isTemplate = false
|
||||
return image
|
||||
}()
|
||||
}
|
||||
|
||||
@MainActor
|
||||
|
||||
Reference in new issue
Block a user