mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: adjusted content size in the update view
This commit is contained in:
@@ -112,7 +112,7 @@ private class UpdateView: NSView {
|
||||
view.distribution = .fillEqually
|
||||
view.spacing = Constants.Settings.margin
|
||||
view.edgeInsets = NSEdgeInsets(
|
||||
top: Constants.Settings.margin*1.5,
|
||||
top: Constants.Settings.margin*2,
|
||||
left: 0,
|
||||
bottom: Constants.Settings.margin,
|
||||
right: 0
|
||||
@@ -193,7 +193,7 @@ private class UpdateView: NSView {
|
||||
public func noUpdates() {
|
||||
let view: NSView = NSView(frame: NSRect(x: 10, y: 10, width: self.frame.width - 20, height: self.frame.height - 20))
|
||||
|
||||
let title: NSTextField = TextView(frame: NSRect(x: 0, y: ((view.frame.height - 18)/2), width: view.frame.width, height: 40))
|
||||
let title: NSTextField = TextView(frame: NSRect(x: 0, y: ((view.frame.height - 18)/2), width: view.frame.width, height: 34))
|
||||
title.font = NSFont.systemFont(ofSize: 14, weight: .light)
|
||||
title.alignment = .center
|
||||
title.stringValue = localizedString("The latest version of Stats installed")
|
||||
|
||||
Reference in New Issue
Block a user