mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: removed header line from the popup view
This commit is contained in:
@@ -406,17 +406,6 @@ internal class HeaderView: NSStackView {
|
|||||||
self.titleView?.stringValue = localizedString(newTitle)
|
self.titleView?.stringValue = localizedString(newTitle)
|
||||||
}
|
}
|
||||||
|
|
||||||
override func draw(_ dirtyRect: NSRect) {
|
|
||||||
super.draw(dirtyRect)
|
|
||||||
|
|
||||||
NSColor.gridColor.set()
|
|
||||||
let line = NSBezierPath()
|
|
||||||
line.move(to: NSPoint(x: 0, y: 0))
|
|
||||||
line.line(to: NSPoint(x: self.frame.width, y: 0))
|
|
||||||
line.lineWidth = 1
|
|
||||||
line.stroke()
|
|
||||||
}
|
|
||||||
|
|
||||||
@objc func openActivityMonitor() {
|
@objc func openActivityMonitor() {
|
||||||
guard let app = self.activityMonitor else { return }
|
guard let app = self.activityMonitor else { return }
|
||||||
NSWorkspace.shared.open([], withApplicationAt: app, configuration: NSWorkspace.OpenConfiguration())
|
NSWorkspace.shared.open([], withApplicationAt: app, configuration: NSWorkspace.OpenConfiguration())
|
||||||
|
|||||||
Reference in New Issue
Block a user