feat: adjusted content size in the update view

This commit is contained in:
Serhiy Mytrovtsiy
2023-12-09 17:27:46 +01:00
parent 7fec1081b7
commit df6cdcd0c4

View File

@@ -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")