mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
Clean-up commit
This commit is contained in:
parent
edd8ecc3bb
commit
a03d361243
3 changed files with 7 additions and 40 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue