mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
- remove background drawing in the popup view (#165)
This commit is contained in:
@@ -111,7 +111,7 @@ internal class PopupView: NSView {
|
||||
self.body = NSScrollView(frame: NSRect(
|
||||
x: Constants.Popup.margins,
|
||||
y: Constants.Popup.margins,
|
||||
width: frame.width,
|
||||
width: frame.width - Constants.Popup.margins*2,
|
||||
height: frame.height - self.header.frame.height - Constants.Popup.margins*2
|
||||
))
|
||||
|
||||
@@ -120,6 +120,7 @@ internal class PopupView: NSView {
|
||||
self.wantsLayer = true
|
||||
self.layer?.cornerRadius = 3
|
||||
|
||||
self.body.drawsBackground = false
|
||||
self.body.translatesAutoresizingMaskIntoConstraints = true
|
||||
self.body.borderType = .noBorder
|
||||
self.body.hasVerticalScroller = true
|
||||
|
||||
Reference in New Issue
Block a user