Skip to content

Commit

Permalink
Fix Ice Bar sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Sep 18, 2024
1 parent 3124de2 commit 70c4b4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Ice/UI/IceBar/IceBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import SwiftUI

class IceBarPanel: NSPanel {
private weak var appState: AppState?

private(set) var currentSection: MenuBarSection.Name?

private lazy var colorManager = IceBarColorManager(iceBarPanel: self)

private var cancellables = Set<AnyCancellable>()
Expand Down Expand Up @@ -265,7 +267,7 @@ private struct IceBarContentView: View {
guard let menuBarHeight = imageCache.menuBarHeight else {
return nil
}
if configuration.isInset && imageCache.screen?.hasNotch == true {
if configuration.shapeKind != .none && configuration.isInset && imageCache.screen?.hasNotch == true {
return menuBarHeight - menuBarManager.appearanceManager.menuBarInsetAmount * 2
}
return menuBarHeight
Expand Down

0 comments on commit 70c4b4d

Please sign in to comment.