|
@@ -1351,14 +1351,29 @@ private extension ViewController {
|
|
|
sidebar.layer?.shadowRadius = 10
|
|
sidebar.layer?.shadowRadius = 10
|
|
|
sidebar.widthAnchor.constraint(equalToConstant: 210).isActive = true
|
|
sidebar.widthAnchor.constraint(equalToConstant: 210).isActive = true
|
|
|
|
|
|
|
|
|
|
+ let appIconView = NSImageView()
|
|
|
|
|
+ if let headerLogo = NSImage(named: "HeaderLogo") {
|
|
|
|
|
+ headerLogo.isTemplate = false
|
|
|
|
|
+ appIconView.image = headerLogo
|
|
|
|
|
+ } else if let appIconImage = NSApplication.shared.applicationIconImage {
|
|
|
|
|
+ appIconImage.isTemplate = false
|
|
|
|
|
+ appIconView.image = appIconImage
|
|
|
|
|
+ }
|
|
|
|
|
+ appIconView.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
|
+ appIconView.imageScaling = NSImageScaling.scaleProportionallyDown
|
|
|
|
|
+ appIconView.imageAlignment = NSImageAlignment.alignCenter
|
|
|
|
|
+ appIconView.contentTintColor = nil
|
|
|
|
|
+ appIconView.widthAnchor.constraint(equalToConstant: 44).isActive = true
|
|
|
|
|
+ appIconView.heightAnchor.constraint(equalToConstant: 44).isActive = true
|
|
|
|
|
+
|
|
|
let titleRow = NSStackView(views: [
|
|
let titleRow = NSStackView(views: [
|
|
|
- iconLabel("📅", size: 24),
|
|
|
|
|
|
|
+ appIconView,
|
|
|
textLabel("Meetings", font: typography.sidebarBrand, color: palette.textPrimary)
|
|
textLabel("Meetings", font: typography.sidebarBrand, color: palette.textPrimary)
|
|
|
])
|
|
])
|
|
|
titleRow.translatesAutoresizingMaskIntoConstraints = false
|
|
titleRow.translatesAutoresizingMaskIntoConstraints = false
|
|
|
- titleRow.orientation = .horizontal
|
|
|
|
|
- titleRow.alignment = .centerY
|
|
|
|
|
- titleRow.spacing = 8
|
|
|
|
|
|
|
+ titleRow.orientation = NSUserInterfaceLayoutOrientation.horizontal
|
|
|
|
|
+ titleRow.alignment = NSLayoutConstraint.Attribute.centerY
|
|
|
|
|
+ titleRow.spacing = 16
|
|
|
|
|
|
|
|
let menuStack = NSStackView()
|
|
let menuStack = NSStackView()
|
|
|
menuStack.translatesAutoresizingMaskIntoConstraints = false
|
|
menuStack.translatesAutoresizingMaskIntoConstraints = false
|