iOS: hide vocals controls without stems, paint Duo hinge gap, playlist bar per drawing, drop Album Color Background, Colour to Color

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-11-20 09:20:18 -08:00
1 parent 0516362461
commit c9fa90a840
22 files changed
+70 -112

No files matched your search

+14 -2
View File
@@ -159,11 +159,12 @@ struct StemPlaylistScreen: View {
}
.toolbar {
ToolbarItemGroup(placement: .topBarTrailing) {
if !editing { MoreMenu(items: moreItems(pl)) }
if editing { Button("Done") { g.stemPlaylists.setItems(pl.id, items); editing = false }.bold() }
else if !pl.items.isEmpty { Button("Edit") { items = pl.items; editing = true } }
if !editing { MoreMenu(items: moreItems(pl)) }
}
}
.modifier(SplitHidesTitle())
}
private func header(_ pl: StemPlaylist) -> some View {
@@ -267,14 +268,15 @@ struct PlaylistScreen: View {
}
.toolbar {
ToolbarItemGroup(placement: .topBarTrailing) {
if !editing { MoreMenu(items: moreItems(list)) }
if !playlist.smart && !list.isEmpty {
if saving { ProgressView() }
else if editing { Button("Done") { commit(list) }.bold() }
else { Button("Edit") { items = list; removed = []; editing = true } }
}
if !editing { MoreMenu(items: moreItems(list)) }
}
}
.modifier(SplitHidesTitle())
.task(id: reload) {
await LoadState.load($tracks) { try await g.plex.playlistTracks(playlist.ratingKey) }
}
@@ -413,3 +415,13 @@ struct SearchScreen: View {
}
}
}
/// Split at the Duo's hinge the pane's own header already names the playlist, so the bar drops the title.
private struct SplitHidesTitle: ViewModifier {
@Environment(Ui.self) private var ui
func body(content: Content) -> some View {
content.toolbar {
if ui.split { ToolbarItem(placement: .principal) { Color.clear.frame(width: 1, height: 1) } }
}
}
}