iOS Duo: system tab bar instead of the rail, lyrics in the deck, stems fit, DEV banner
Split panes live inside each tab so the system's vertical bar is never covered. Docked Now Playing no longer opens its own queue; the deck's queue scrolls under the stems. Meters run full colour over a dimmed fill. Folded mixer rows shrink to fit every stem, preset chips fall back to a menu instead of being cut off. Dev builds show DEV BUILD <n>. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aa7cfe6c67
commit
bc30b43eb1
5 files changed
+236
-169
No files matched your search
@@ -56,6 +56,8 @@ final class Ui {
|
||||
private(set) var split = false
|
||||
/// Split only: the side opposite Now Playing shows the stems and queue (true) or the selected tab.
|
||||
var deck = true
|
||||
/// Split only: the deck shows the lyrics (karaoke) instead of the stems and queue.
|
||||
var deckLyrics = false
|
||||
let overlays: Overlays
|
||||
|
||||
init(overlays: Overlays) { self.overlays = overlays }
|
||||
@@ -93,8 +95,8 @@ final class Ui {
|
||||
/// Docked Now Playing is already on screen, so there's nothing to open while split.
|
||||
func openNowPlaying() { if !split { nowPlayingOpen = true } }
|
||||
|
||||
/// Split only: brings the stems and queue back beside Now Playing.
|
||||
func showDeck() { deck = true }
|
||||
/// Split only: brings the stems and queue (or the lyrics) back beside Now Playing.
|
||||
func showDeck(lyrics: Bool = false) { deck = true; deckLyrics = lyrics }
|
||||
|
||||
func setSplit(_ on: Bool) {
|
||||
guard on != split else { return }
|
||||
@@ -104,18 +106,8 @@ final class Ui {
|
||||
// Only an iPhone Duo ever splits, so from here on folded Now Playing uses its tighter layout.
|
||||
UserDefaults.standard.set(true, forKey: "duoSeen")
|
||||
}
|
||||
// Each pane is phone-sized, so give it portrait-phone traits. Unfolded landscape is
|
||||
// otherwise compact-height, which moves nav bar buttons into a column down the pane's
|
||||
// trailing edge (eating its width, and landing under the rail on the right pane).
|
||||
for case let scene as UIWindowScene in UIApplication.shared.connectedScenes {
|
||||
if on {
|
||||
scene.traitOverrides.verticalSizeClass = .regular
|
||||
scene.traitOverrides.horizontalSizeClass = .compact
|
||||
} else {
|
||||
scene.traitOverrides.remove(UITraitVerticalSizeClass.self)
|
||||
scene.traitOverrides.remove(UITraitHorizontalSizeClass.self)
|
||||
}
|
||||
}
|
||||
// Karaoke left on shows its lyrics in the deck.
|
||||
deckLyrics = on && AppGraph.shared.playback.karaoke
|
||||
}
|
||||
|
||||
/// Switches to the Library tab and pushes [r] there.
|
||||
|
||||
Reference in new issue
Block a user