mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: remove additional spacing on Big Sur
This commit is contained in:
@@ -33,7 +33,15 @@ public struct Widget_c_s {
|
||||
return (systemHeight == 0 ? 22 : systemHeight) ?? 22
|
||||
}
|
||||
}
|
||||
public let margin: CGPoint = CGPoint(x: 2, y: 2)
|
||||
public var margin: CGPoint {
|
||||
get {
|
||||
var point: CGPoint = CGPoint(x: 2, y: 2)
|
||||
if #available(macOS 11.0, *) {
|
||||
point.x = 0
|
||||
}
|
||||
return point
|
||||
}
|
||||
}
|
||||
public let spacing: CGFloat = 2
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user