Merge branch 'main' into dev
# Conflicts: # ios/scripts/publish.sh
This commit is contained in:
commit
aa7cfe6c67
4 files changed
+92
-53
No files matched your search
@@ -1,4 +1,5 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
import UIKit
|
||||||
|
|
||||||
enum Tab: String, CaseIterable, Hashable {
|
enum Tab: String, CaseIterable, Hashable {
|
||||||
case Library, Songs, Albums, Artists, Genres, Playlists, Search, Downloads, Settings
|
case Library, Songs, Albums, Artists, Genres, Playlists, Search, Downloads, Settings
|
||||||
@@ -103,6 +104,18 @@ final class Ui {
|
|||||||
// Only an iPhone Duo ever splits, so from here on folded Now Playing uses its tighter layout.
|
// Only an iPhone Duo ever splits, so from here on folded Now Playing uses its tighter layout.
|
||||||
UserDefaults.standard.set(true, forKey: "duoSeen")
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Switches to the Library tab and pushes [r] there.
|
/// Switches to the Library tab and pushes [r] there.
|
||||||
|
|||||||
@@ -112,6 +112,10 @@ struct NowPlayingScreen: View {
|
|||||||
/// width than a regular iPhone's, so the controls pack tighter and the art gets the room.
|
/// width than a regular iPhone's, so the controls pack tighter and the art gets the room.
|
||||||
@AppStorage("duoSeen") private var duoSeen = false
|
@AppStorage("duoSeen") private var duoSeen = false
|
||||||
private var tight: Bool { docked || duoSeen }
|
private var tight: Bool { docked || duoSeen }
|
||||||
|
/// Size of the art panel in the stacked layout, so the controls can match the art's width.
|
||||||
|
@State private var artBox: CGSize = .zero
|
||||||
|
private var artInset: CGFloat { tight ? 18 : 28 }
|
||||||
|
private var hPad: CGFloat { tight ? 20 : 28 }
|
||||||
private var g: AppGraph { .shared }
|
private var g: AppGraph { .shared }
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
@@ -124,20 +128,28 @@ struct NowPlayingScreen: View {
|
|||||||
let wide = geo.size.width > geo.size.height * 0.9
|
let wide = geo.size.width > geo.size.height * 0.9
|
||||||
if let track {
|
if let track {
|
||||||
if wide {
|
if wide {
|
||||||
|
// The column never drops below what the transport row needs, so the buttons
|
||||||
|
// can't spill onto the art or under the Duo rail.
|
||||||
|
let col = tight ? min(max(geo.size.width * 0.46, 300), 420) : min(geo.size.width * 0.48, 440)
|
||||||
HStack(spacing: 0) {
|
HStack(spacing: 0) {
|
||||||
panelView(track, header: false)
|
panelView(track, header: false)
|
||||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||||
.transition(.opacity.combined(with: .scale(scale: 0.96)))
|
.transition(.opacity.combined(with: .scale(scale: 0.96)))
|
||||||
controls(track, wide: true)
|
controls(track, wide: true, width: col)
|
||||||
.frame(width: min(geo.size.width * 0.48, 440))
|
.frame(width: col)
|
||||||
.frame(maxHeight: .infinity)
|
.frame(maxHeight: .infinity)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
let cap: CGFloat = tight ? 520 : 560
|
||||||
|
// Controls line up with the art's edges instead of running wider than it.
|
||||||
|
let art = min(artBox.width - 2 * artInset, artBox.height - 16)
|
||||||
|
let w = panel == .Art && art > 0 ? min(cap, max(300, art + 2 * hPad)) : cap
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
panelView(track, header: true)
|
panelView(track, header: true)
|
||||||
.frame(maxHeight: .infinity)
|
.frame(maxHeight: .infinity)
|
||||||
|
.onGeometryChange(for: CGSize.self) { $0.size } action: { artBox = $0 }
|
||||||
.transition(.opacity.combined(with: .scale(scale: 0.96)))
|
.transition(.opacity.combined(with: .scale(scale: 0.96)))
|
||||||
controls(track, wide: false).frame(maxWidth: tight ? 520 : 560)
|
controls(track, wide: false, width: min(w, geo.size.width)).frame(maxWidth: w)
|
||||||
}
|
}
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
}
|
}
|
||||||
@@ -176,16 +188,19 @@ struct NowPlayingScreen: View {
|
|||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
private func panelView(_ track: Track, header: Bool) -> some View {
|
private func panelView(_ track: Track, header: Bool) -> some View {
|
||||||
switch panel {
|
switch panel {
|
||||||
case .Art: ArtPanel(thumb: track.thumb, playing: g.playback.playWhenReady, inset: tight ? 18 : 28).contentShape(Rectangle())
|
case .Art: ArtPanel(thumb: track.thumb, playing: g.playback.playWhenReady, inset: header || !tight ? artInset : 12).contentShape(Rectangle())
|
||||||
case .Mixer: VStack(spacing: 0) { if header { MiniHeader(track: track) }; MixerPanel() }
|
case .Mixer: VStack(spacing: 0) { if header { MiniHeader(track: track) }; MixerPanel() }
|
||||||
case .Queue: VStack(spacing: 0) { if header { MiniHeader(track: track).contentShape(Rectangle()).gesture(screenDrag) }; QueuePanel(close: { show(.Queue) }) }
|
case .Queue: VStack(spacing: 0) { if header { MiniHeader(track: track).contentShape(Rectangle()).gesture(screenDrag) }; QueuePanel(close: { show(.Queue) }) }
|
||||||
case .Lyrics: VStack(spacing: 0) { if header { MiniHeader(track: track).contentShape(Rectangle()).gesture(screenDrag) }; LyricsPanel(track: track) }
|
case .Lyrics: VStack(spacing: 0) { if header { MiniHeader(track: track).contentShape(Rectangle()).gesture(screenDrag) }; LyricsPanel(track: track) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func controls(_ track: Track, wide: Bool) -> some View {
|
private func controls(_ track: Track, wide: Bool, width: CGFloat) -> some View {
|
||||||
let pm = g.playback
|
let pm = g.playback
|
||||||
let c = tint.map { base.tinted($0) } ?? base
|
let c = tint.map { base.tinted($0) } ?? base
|
||||||
|
let pad: CGFloat = wide && tight ? 14 : hPad
|
||||||
|
// Full-size transport needs 312 pt; below that the buttons shrink to fit.
|
||||||
|
let narrow = width - 2 * pad < 312
|
||||||
return VStack(spacing: 0) {
|
return VStack(spacing: 0) {
|
||||||
if wide || panel == .Art {
|
if wide || panel == .Art {
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
@@ -204,25 +219,25 @@ struct NowPlayingScreen: View {
|
|||||||
}
|
}
|
||||||
ProgressVolumeBar(played: c.label, unplayed: c.label3, centerLabel: badge(track))
|
ProgressVolumeBar(played: c.label, unplayed: c.label3, centerLabel: badge(track))
|
||||||
.padding(.top, tight ? (wide ? 14 : 18) : wide ? 24 : panel == .Art ? 34 : 30)
|
.padding(.top, tight ? (wide ? 14 : 18) : wide ? 24 : panel == .Art ? 34 : 30)
|
||||||
HStack {
|
HStack(spacing: 0) {
|
||||||
SideToggle(symbol: "shuffle", on: pm.shuffle, action: pm.toggleShuffle)
|
SideToggle(symbol: "shuffle", on: pm.shuffle, action: pm.toggleShuffle, width: narrow ? 36 : 40)
|
||||||
Spacer()
|
Spacer(minLength: 2)
|
||||||
TransportButton(symbol: "backward.fill", size: 34, action: pm.previous)
|
TransportButton(symbol: "backward.fill", size: narrow ? 28 : 34, box: narrow ? 52 : 72, action: pm.previous)
|
||||||
Spacer()
|
Spacer(minLength: 2)
|
||||||
Button(action: pm.togglePlay) {
|
Button(action: pm.togglePlay) {
|
||||||
ZStack {
|
ZStack {
|
||||||
if pm.buffering && pm.playWhenReady { ProgressView().controlSize(.large).tint(c.label) }
|
if pm.buffering && pm.playWhenReady { ProgressView().controlSize(.large).tint(c.label) }
|
||||||
else { Image(systemName: pm.playWhenReady ? "pause.fill" : "play.fill").font(.system(size: 48)).foregroundStyle(c.label).contentTransition(.symbolEffect(.replace)) }
|
else { Image(systemName: pm.playWhenReady ? "pause.fill" : "play.fill").font(.system(size: narrow ? 42 : 48)).foregroundStyle(c.label).contentTransition(.symbolEffect(.replace)) }
|
||||||
}
|
}
|
||||||
.animation(.snappy(duration: 0.25), value: pm.playWhenReady)
|
.animation(.snappy(duration: 0.25), value: pm.playWhenReady)
|
||||||
.frame(width: 80, height: 80)
|
.frame(width: narrow ? 64 : 80, height: narrow ? 64 : 80)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
}
|
}
|
||||||
.buttonStyle(PressFade())
|
.buttonStyle(PressFade())
|
||||||
Spacer()
|
Spacer(minLength: 2)
|
||||||
TransportButton(symbol: "forward.fill", size: 34, action: pm.next, hold: pm.nextAlbum)
|
TransportButton(symbol: "forward.fill", size: narrow ? 28 : 34, box: narrow ? 52 : 72, action: pm.next, hold: pm.nextAlbum)
|
||||||
Spacer()
|
Spacer(minLength: 2)
|
||||||
SideToggle(symbol: pm.repeatMode == .One ? "repeat.1" : "repeat", on: pm.repeatMode != .Off, action: pm.cycleRepeat)
|
SideToggle(symbol: pm.repeatMode == .One ? "repeat.1" : "repeat", on: pm.repeatMode != .Off, action: pm.cycleRepeat, width: narrow ? 36 : 40)
|
||||||
}
|
}
|
||||||
.frame(height: tight ? 76 : 84)
|
.frame(height: tight ? 76 : 84)
|
||||||
.padding(.top, tight ? 4 : 14)
|
.padding(.top, tight ? 4 : 14)
|
||||||
@@ -246,7 +261,7 @@ struct NowPlayingScreen: View {
|
|||||||
.buttonStyle(PressFade())
|
.buttonStyle(PressFade())
|
||||||
.gesture(swipe(up: panel != .Queue)) }
|
.gesture(swipe(up: panel != .Queue)) }
|
||||||
}
|
}
|
||||||
.padding(.horizontal, tight ? 20 : 28)
|
.padding(.horizontal, pad)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Opens a panel, or goes back to the art if it's already open.
|
/// Opens a panel, or goes back to the art if it's already open.
|
||||||
@@ -333,12 +348,13 @@ struct PressFade: ButtonStyle {
|
|||||||
private struct TransportButton: View {
|
private struct TransportButton: View {
|
||||||
let symbol: String
|
let symbol: String
|
||||||
let size: CGFloat
|
let size: CGFloat
|
||||||
|
var box: CGFloat = 72
|
||||||
let action: () -> Void
|
let action: () -> Void
|
||||||
var hold: (() -> Void)?
|
var hold: (() -> Void)?
|
||||||
@Environment(\.palette) private var p
|
@Environment(\.palette) private var p
|
||||||
var body: some View {
|
var body: some View {
|
||||||
HoldButton(action: action, hold: hold) {
|
HoldButton(action: action, hold: hold) {
|
||||||
Image(systemName: symbol).font(.system(size: size)).foregroundStyle(p.label).frame(width: 72, height: 72).contentShape(Rectangle())
|
Image(systemName: symbol).font(.system(size: size)).foregroundStyle(p.label).frame(width: box, height: box).contentShape(Rectangle())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -368,6 +384,7 @@ private struct SideToggle: View {
|
|||||||
let symbol: String
|
let symbol: String
|
||||||
let on: Bool
|
let on: Bool
|
||||||
let action: () -> Void
|
let action: () -> Void
|
||||||
|
var width: CGFloat = 40
|
||||||
@Environment(\.palette) private var p
|
@Environment(\.palette) private var p
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Button(action: action) {
|
Button(action: action) {
|
||||||
@@ -376,7 +393,7 @@ private struct SideToggle: View {
|
|||||||
Circle().frame(width: 4, height: 4).opacity(on ? 1 : 0)
|
Circle().frame(width: 4, height: 4).opacity(on ? 1 : 0)
|
||||||
}
|
}
|
||||||
.foregroundStyle(on ? p.label : p.label3)
|
.foregroundStyle(on ? p.label : p.label3)
|
||||||
.frame(width: 40, height: 56)
|
.frame(width: width, height: 56)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
}
|
}
|
||||||
.buttonStyle(PressFade())
|
.buttonStyle(PressFade())
|
||||||
@@ -681,8 +698,10 @@ private struct MixerPanel: View {
|
|||||||
let names = pm.stemNames
|
let names = pm.stemNames
|
||||||
let stems = pm.source == .Stems
|
let stems = pm.source == .Stems
|
||||||
GeometryReader { geo in
|
GeometryReader { geo in
|
||||||
// Spread spare height across the rows (stems + master) instead of leaving it all at the bottom.
|
// Spread spare height across the stem rows instead of leaving it all at the bottom.
|
||||||
let rowH = roomy ? Self.roomyRow : min(62, max(46, (geo.size.height - 80) / CGFloat(names.count + 1)))
|
let count = CGFloat(max(names.count, 1))
|
||||||
|
let rowH = roomy ? min(80, max(Self.roomyRow, (geo.size.height - Self.roomyChrome) / count))
|
||||||
|
: min(62, max(46, (geo.size.height - 64) / count))
|
||||||
ScrollView {
|
ScrollView {
|
||||||
VStack(alignment: .leading, spacing: 0) {
|
VStack(alignment: .leading, spacing: 0) {
|
||||||
if pm.source == .Original {
|
if pm.source == .Original {
|
||||||
@@ -750,11 +769,7 @@ private struct MixerPanel: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p.separator.frame(height: 0.5).padding(.vertical, 6)
|
Spacer(minLength: roomy ? 8 : 16)
|
||||||
FaderRow(dot: nil, label: "Master", percent: Int(pm.master * 100), dim: false, height: rowH, stacked: roomy) {
|
|
||||||
FaderSlider(value: pm.master, fill: p.label, thumb: roomy ? 30 : 24, onChange: pm.setMaster)
|
|
||||||
} trailing: { EmptyView() }
|
|
||||||
Spacer(minLength: 16)
|
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 24)
|
.padding(.horizontal, 24)
|
||||||
}
|
}
|
||||||
@@ -766,9 +781,11 @@ private struct MixerPanel: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extension MixerPanel {
|
extension MixerPanel {
|
||||||
static let roomyRow: CGFloat = 60
|
static let roomyRow: CGFloat = 66
|
||||||
/// Height that shows the presets, every stem and the master without scrolling, roomy rows.
|
/// Preset chips plus the bottom gap.
|
||||||
static func roomyHeight(_ stems: Int) -> CGFloat { 48 + CGFloat(stems + 1) * roomyRow + 13 + 16 }
|
static let roomyChrome: CGFloat = 56
|
||||||
|
/// Height that shows the presets and every stem without scrolling, roomy rows.
|
||||||
|
static func roomyHeight(_ stems: Int) -> CGFloat { roomyChrome + CGFloat(stems) * roomyRow }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [Chip] in the sheet's own colours: selected is the label colour, so it reads on any tint.
|
/// [Chip] in the sheet's own colours: selected is the label colour, so it reads on any tint.
|
||||||
@@ -806,20 +823,10 @@ private struct StemFader: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
let color = Color(hex: Stems.color(name))
|
let color = Color(hex: Stems.color(name))
|
||||||
FaderRow(dot: setting.muted ? p.label3 : color, label: Stems.label(name), percent: Int(stemTaper(setting.level) * 100), dim: setting.muted, height: height, stacked: roomy) {
|
FaderRow(dot: setting.muted ? p.label3 : color, label: Stems.label(name), percent: Int(stemTaper(setting.level) * 100), dim: setting.muted, height: height, stacked: roomy) {
|
||||||
VStack(spacing: 0) {
|
// Live level, -48..0 dBFS, drawn as a light band inside the fader's fill.
|
||||||
FaderSlider(value: setting.level, fill: setting.muted ? p.label3 : color, detent: StemSetting.unity, enabled: enabled, thumb: roomy ? 30 : 24) {
|
let f = CGFloat(min(1, max(0, (20 * log10(level + 1e-5) + 48) / 48)))
|
||||||
pm.setStemLevel(name, $0)
|
FaderSlider(value: setting.level, fill: setting.muted ? p.label3 : color, detent: StemSetting.unity, enabled: enabled, thumb: roomy ? 26 : 24, meter: enabled && !setting.muted ? f : nil) {
|
||||||
}
|
pm.setStemLevel(name, $0)
|
||||||
// Live level under the fader, -48..0 dBFS.
|
|
||||||
GeometryReader { geo in
|
|
||||||
let f = CGFloat(min(1, max(0, (20 * log10(level + 1e-5) + 48) / 48)))
|
|
||||||
ZStack(alignment: .leading) {
|
|
||||||
Capsule().fill(p.fill)
|
|
||||||
Capsule().fill(color).frame(width: geo.size.width * f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.frame(height: 3)
|
|
||||||
.padding(.horizontal, 12)
|
|
||||||
}
|
}
|
||||||
} trailing: {
|
} trailing: {
|
||||||
if enabled {
|
if enabled {
|
||||||
@@ -845,7 +852,8 @@ struct FaderRow<Fader: View, Trailing: View>: View {
|
|||||||
@Environment(\.palette) private var p
|
@Environment(\.palette) private var p
|
||||||
var body: some View {
|
var body: some View {
|
||||||
if stacked {
|
if stacked {
|
||||||
VStack(alignment: .leading, spacing: 0) {
|
// Bottom-aligned with a gap under, so each name sits clear of the meter above it.
|
||||||
|
VStack(alignment: .leading, spacing: 2) {
|
||||||
HStack(spacing: 6) {
|
HStack(spacing: 6) {
|
||||||
if let dot { Circle().fill(dot).frame(width: 8, height: 8) }
|
if let dot { Circle().fill(dot).frame(width: 8, height: 8) }
|
||||||
Text(label).font(.subheadline.weight(.semibold)).foregroundStyle(dim ? p.label2 : p.label).lineLimit(1)
|
Text(label).font(.subheadline.weight(.semibold)).foregroundStyle(dim ? p.label2 : p.label).lineLimit(1)
|
||||||
@@ -855,7 +863,8 @@ struct FaderRow<Fader: View, Trailing: View>: View {
|
|||||||
.frame(height: 18)
|
.frame(height: 18)
|
||||||
HStack(spacing: 8) { fader; trailing }
|
HStack(spacing: 8) { fader; trailing }
|
||||||
}
|
}
|
||||||
.frame(height: height)
|
.padding(.bottom, 4)
|
||||||
|
.frame(height: height, alignment: .bottom)
|
||||||
} else {
|
} else {
|
||||||
row
|
row
|
||||||
}
|
}
|
||||||
@@ -888,7 +897,7 @@ struct ToggleBox: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
Button(action: action) {
|
Button(action: action) {
|
||||||
Text(text).font(.footnote.bold()).foregroundStyle(on ? .black : p.label2)
|
Text(text).font(.footnote.bold()).foregroundStyle(on ? .black : p.label2)
|
||||||
.frame(width: big ? 38 : 30, height: big ? 32 : 26)
|
.frame(width: big ? 34 : 30, height: big ? 28 : 26)
|
||||||
.background(on ? onColor : p.fill, in: RoundedRectangle(cornerRadius: 7, style: .continuous))
|
.background(on ? onColor : p.fill, in: RoundedRectangle(cornerRadius: 7, style: .continuous))
|
||||||
}
|
}
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
@@ -903,17 +912,19 @@ struct FaderSlider: View {
|
|||||||
var detent: Float?
|
var detent: Float?
|
||||||
var enabled = true
|
var enabled = true
|
||||||
var thumb: CGFloat = 24
|
var thumb: CGFloat = 24
|
||||||
|
/// 0...1 live level, shown as a lighter band over the filled part of the track.
|
||||||
|
var meter: CGFloat?
|
||||||
let onChange: (Float) -> Void
|
let onChange: (Float) -> Void
|
||||||
|
|
||||||
@Environment(\.palette) private var p
|
@Environment(\.palette) private var p
|
||||||
@State private var start: Float?
|
@State private var start: Float?
|
||||||
@State private var caught = false
|
@State private var caught = false
|
||||||
|
|
||||||
init(value: Float, fill: Color, detent: Float? = nil, enabled: Bool = true, thumb: CGFloat = 24, onChange: @escaping (Float) -> Void) {
|
init(value: Float, fill: Color, detent: Float? = nil, enabled: Bool = true, thumb: CGFloat = 24, meter: CGFloat? = nil, onChange: @escaping (Float) -> Void) {
|
||||||
self.value = value; self.fill = fill; self.detent = detent; self.enabled = enabled; self.thumb = thumb; self.onChange = onChange
|
self.value = value; self.fill = fill; self.detent = detent; self.enabled = enabled; self.thumb = thumb; self.meter = meter; self.onChange = onChange
|
||||||
}
|
}
|
||||||
|
|
||||||
private var bar: CGFloat { thumb >= 28 ? 6 : 4 }
|
private var bar: CGFloat { meter == nil ? (thumb >= 26 ? 5 : 4) : 6 }
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
GeometryReader { geo in
|
GeometryReader { geo in
|
||||||
@@ -922,6 +933,11 @@ struct FaderSlider: View {
|
|||||||
ZStack(alignment: .leading) {
|
ZStack(alignment: .leading) {
|
||||||
Capsule().fill(p.fillStrong).frame(height: bar).padding(.horizontal, thumb / 2)
|
Capsule().fill(p.fillStrong).frame(height: bar).padding(.horizontal, thumb / 2)
|
||||||
Capsule().fill(fill).frame(width: x + thumb / 2, height: bar).padding(.leading, thumb / 2 - 0.01)
|
Capsule().fill(fill).frame(width: x + thumb / 2, height: bar).padding(.leading, thumb / 2 - 0.01)
|
||||||
|
if let meter, meter > 0.01 {
|
||||||
|
Capsule().fill(.white.opacity(0.5)).frame(width: meter * (x + thumb / 2), height: bar)
|
||||||
|
.padding(.leading, thumb / 2 - 0.01)
|
||||||
|
.animation(.linear(duration: 1 / 30), value: meter)
|
||||||
|
}
|
||||||
if let detent {
|
if let detent {
|
||||||
p.label3.frame(width: 2, height: 10).offset(x: CGFloat(detent) * track + thumb / 2 - 1)
|
p.label3.frame(width: 2, height: 10).offset(x: CGFloat(detent) * track + thumb / 2 - 1)
|
||||||
}
|
}
|
||||||
@@ -966,7 +982,7 @@ struct NowPlayingDeck: View {
|
|||||||
Text("Stems").font(.headline).foregroundStyle(c.label)
|
Text("Stems").font(.headline).foregroundStyle(c.label)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading).padding(.horizontal, 24)
|
.frame(maxWidth: .infinity, alignment: .leading).padding(.horizontal, 24)
|
||||||
// As much as the stems need to show without scrolling, leaving the queue a few rows.
|
// As much as the stems need to show without scrolling, leaving the queue a few rows.
|
||||||
MixerPanel(roomy: true).frame(height: min(MixerPanel.roomyHeight(max(g.playback.stemNames.count, 4)), geo.size.height * 0.68))
|
MixerPanel(roomy: true).frame(height: min(MixerPanel.roomyHeight(max(g.playback.stemNames.count, 4)), geo.size.height * 0.72))
|
||||||
Rectangle().fill(c.label3.opacity(0.35)).frame(height: 0.5).padding(.horizontal, 24).padding(.bottom, 8)
|
Rectangle().fill(c.label3.opacity(0.35)).frame(height: 0.5).padding(.horizontal, 24).padding(.bottom, 8)
|
||||||
QueuePanel()
|
QueuePanel()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Publishes an IPA built by build-remote.sh. Run from DevOps with everything committed.
|
# Publishes an IPA built by build-remote.sh. Run from DevOps with everything committed.
|
||||||
# publish.sh dev on the dev branch: Gitea pre-release ios-v<v>-dev.<build> + Sideload Developer (WHITE-M1 :8093, ?source=developer)
|
# publish.sh dev on the dev branch: Gitea pre-release ios-v<v>-dev.<build> + Sideload Developer (WHITE-M1 :8093, ?source=developer)
|
||||||
# publish.sh release on main, only when the owner says so: Gitea release ios-v<v> + Sideload (:8093), then source.json
|
# publish.sh release on main, only when the owner says so: Gitea release ios-v<v> + Personal (:8093, ?source=personal), then source.json
|
||||||
# Release notes come from $NOTES, else the last commit subject. prov builds are never published.
|
# Release notes come from $NOTES, else the last commit subject. prov builds are never published.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
@@ -14,7 +14,7 @@ BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|||||||
die() { echo "$*" >&2; exit 1; }
|
die() { echo "$*" >&2; exit 1; }
|
||||||
case $MODE in
|
case $MODE in
|
||||||
dev) WANT=dev; IPA=build/dev/$NAME-$V-dev.ipa; TAG=$TAGP$V-dev.$BUILD; PRE=true; UP=http://10.0.0.11:8093; Q='?source=developer' ;;
|
dev) WANT=dev; IPA=build/dev/$NAME-$V-dev.ipa; TAG=$TAGP$V-dev.$BUILD; PRE=true; UP=http://10.0.0.11:8093; Q='?source=developer' ;;
|
||||||
release) WANT=main; IPA=build/release/$NAME-$V.ipa; TAG=$TAGP$V; PRE=false; UP=http://10.0.0.11:8093; Q= ;;
|
release) WANT=main; IPA=build/release/$NAME-$V.ipa; TAG=$TAGP$V; PRE=false; UP=http://10.0.0.11:8093; Q='?source=personal' ;;
|
||||||
*) die "usage: $0 dev|release" ;;
|
*) die "usage: $0 dev|release" ;;
|
||||||
esac
|
esac
|
||||||
[ "$BRANCH" = "$WANT" ] || die "$MODE builds publish from $WANT (on $BRANCH)"
|
[ "$BRANCH" = "$WANT" ] || die "$MODE builds publish from $WANT (on $BRANCH)"
|
||||||
|
|||||||
+11
-1
@@ -7,7 +7,7 @@
|
|||||||
"apps": [
|
"apps": [
|
||||||
{
|
{
|
||||||
"name": "Stemify",
|
"name": "Stemify",
|
||||||
"bundleIdentifier": "org.cdnutter.stemify",
|
"bundleIdentifier": "org.cdnutter.stemify-pub",
|
||||||
"developerName": "cdnutter",
|
"developerName": "cdnutter",
|
||||||
"subtitle": "Plex music player with live stem mixing.",
|
"subtitle": "Plex music player with live stem mixing.",
|
||||||
"localizedDescription": "Plays your Plex library and lets you mute vocals or remix stems on the fly. Works offline with downloads, and in the car with CarPlay.",
|
"localizedDescription": "Plays your Plex library and lets you mute vocals or remix stems on the fly. Works offline with downloads, and in the car with CarPlay.",
|
||||||
@@ -15,6 +15,16 @@
|
|||||||
"tintColor": "#FA2D48",
|
"tintColor": "#FA2D48",
|
||||||
"category": "entertainment",
|
"category": "entertainment",
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"version": "1.0",
|
||||||
|
"marketingVersion": "1.0 RC 4",
|
||||||
|
"buildVersion": "24",
|
||||||
|
"date": "2026-11-18T13:39:57-08:00",
|
||||||
|
"localizedDescription": "Duo layout fixes for every fold and orientation",
|
||||||
|
"downloadURL": "https://git.iamchrisama.com/cdnutter/stemify/releases/download/ios-v1.0-rc4/stemify-1.0-rc4.ipa",
|
||||||
|
"size": 2650316,
|
||||||
|
"minOSVersion": "17.0"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"marketingVersion": "1.0 RC 3",
|
"marketingVersion": "1.0 RC 3",
|
||||||
|
|||||||
Reference in new issue
Block a user