Merge pull request #33 from Ebullioscopic/ui/minimalistic

Aligned notch better
This commit is contained in:
Hariharan Mudaliar 2025-10-07 00:50:03 +05:30 • committed by GitHub
commit 016d18fed5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View file

@ -15,7 +15,7 @@ struct MinimalisticMusicPlayerView: View {
var body: some View {
VStack(spacing: 0) {
// Header area with album art (matching DynamicIslandHeader height of 24pt)
HStack(alignment: .bottom, spacing: 10) {
HStack(alignment: .center, spacing: 10) {
MinimalisticAlbumArtView(vm: vm, albumArtNamespace: albumArtNamespace)
.frame(width: 50, height: 50)
@ -37,7 +37,6 @@ struct MinimalisticMusicPlayerView: View {
// Visualizer aligned to bottom
if useMusicVisualizer {
visualizer
.padding(.bottom, 2)
}
}
.frame(height: 50) // Fixed height to accommodate album art
@ -51,8 +50,8 @@ struct MinimalisticMusicPlayerView: View {
.padding(.top, 4)
}
.padding(.horizontal, 12)
.padding(.top, 0)
.padding(.bottom, 4)
.padding(.top, -20)
.padding(.bottom, 3)
.frame(maxWidth: .infinity)
}

View file

@ -15,7 +15,7 @@ let downloadSneakSize: CGSize = .init(width: 65, height: 1)
let batterySneakSize: CGSize = .init(width: 160, height: 1)
let openNotchSize: CGSize = .init(width: 640, height: 190)
let minimalisticOpenNotchSize: CGSize = .init(width: 420, height: 190)
let minimalisticOpenNotchSize: CGSize = .init(width: 420, height: 180)
let cornerRadiusInsets: (opened: (top: CGFloat, bottom: CGFloat), closed: (top: CGFloat, bottom: CGFloat)) = (opened: (top: 19, bottom: 24), closed: (top: 6, bottom: 14))
let minimalisticCornerRadiusInsets: (opened: (top: CGFloat, bottom: CGFloat), closed: (top: CGFloat, bottom: CGFloat)) = (opened: (top: 35, bottom: 35), closed: cornerRadiusInsets.closed)