Clean-up commit

This commit is contained in:
Hariharan Mudaliar 2026-04-13 13:54:53 +05:30
commit a03d361243
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
3 changed files with 7 additions and 40 deletions

View file

@ -124,17 +124,6 @@ struct ContentView: View {
return baseSize
}
if coordinator.currentView == .home && Defaults[.mediaController] == .all && !musicManager.secondarySources.isEmpty {
let toggleBarHeight: CGFloat = 34
let rowHeight: CGFloat = 58
let safetyPadding: CGFloat = 16
var extraHeight = toggleBarHeight + safetyPadding
if musicManager.isMultiSourceListExpanded {
extraHeight += CGFloat(musicManager.secondarySources.count) * rowHeight
}
return CGSize(width: baseSize.width, height: baseSize.height + extraHeight)
}
if enableMinimalisticUI,
coordinator.currentView == .home,
let preferredHeight = extensionMinimalisticPreferredHeight(baseSize: baseSize) {
@ -1680,13 +1669,10 @@ struct ContentView: View {
return false
}
let horizontalPadding: CGFloat = 12
let horizontalPadding: CGFloat = 8
let activationWidth = vm.closedNotchSize.width + horizontalPadding * 2
// Hysteresis: Use a taller activation area when already hovering to prevent rapid flickering
let baseHeight = max(vm.closedNotchSize.height + zeroHeightHoverPadding, 16)
let activationHeight = isHovering ? baseHeight + 20 : baseHeight
let activationHeight = max(vm.closedNotchSize.height + zeroHeightHoverPadding, 14)
let activationRect = CGRect(
x: screen.frame.midX - activationWidth / 2,
y: screen.frame.maxY - activationHeight,