feat: added an option to resize the settings window, also the settings window position and size will be autosaved

This commit is contained in:
Serhiy Mytrovtsiy
2026-03-06 20:49:37 +01:00
parent deb6f2050c
commit 28970e841e
2 changed files with 30 additions and 44 deletions

View File

@@ -312,6 +312,7 @@ private class WidgetSelectorView: NSStackView {
private var background: NSVisualEffectView = {
let view = NSVisualEffectView(frame: NSRect.zero)
view.blendingMode = .withinWindow
view.translatesAutoresizingMaskIntoConstraints = false
if #available(macOS 26.0, *) {
view.material = .titlebar
} else {
@@ -386,7 +387,8 @@ private class WidgetSelectorView: NSStackView {
NSLayoutConstraint.activate([
self.heightAnchor.constraint(equalToConstant: Constants.Widget.height + (Constants.Settings.margin*2)),
separator.widthAnchor.constraint(equalToConstant: 1),
separator.heightAnchor.constraint(equalTo: self.heightAnchor, constant: -18)
separator.heightAnchor.constraint(equalTo: self.heightAnchor, constant: -18),
self.background.widthAnchor.constraint(equalTo: self.widthAnchor)
])
}