feat: moved App settings from the menu to the bottom part of the sidebar

This commit is contained in:
Serhiy Mytrovtsiy
2025-09-23 16:59:26 +02:00
parent 1d4afd97e1
commit 3cd4d6b204
4 changed files with 21 additions and 28 deletions

View File

@@ -79,7 +79,7 @@ internal class Settings: NSStackView, Settings_v, NSTableViewDelegate, NSTableVi
if #available(macOS 11.0, *) {
self.tableView.style = .plain
}
self.tableView.rowHeight = 27
self.tableView.rowHeight = 32
let nameColumn = NSTableColumn(identifier: nameColumnID)
nameColumn.headerCell.title = localizedString("Name")
@@ -209,7 +209,7 @@ internal class Settings: NSStackView, Settings_v, NSTableViewDelegate, NSTableVi
select.widthAnchor.constraint(lessThanOrEqualToConstant: 132).isActive = true
cell.addSubview(select)
case statusColumnID:
let button: NSButton = NSButton(frame: NSRect(x: 0, y: 5, width: 10, height: 10))
let button: NSButton = NSButton(frame: NSRect(x: 0, y: 8, width: 10, height: 10))
button.identifier = NSUserInterfaceItemIdentifier("\(row)")
button.setButtonType(.switch)
button.state = item.enabled ? .on : .off