iOS 0.6.0: milestone 5 (recording, MIDI, input bindings, themes, bundles, backups)
- Master recording (MasterSink ring + writer thread) and the sample recorder - CoreMIDI in/out: sound module, clock send/follow, virtual "Sizzle" ports; platform-free parser/module/clock in core (midi_test) - Hardware keyboard and gamepads via GameController; rebindable keyboard, gamepad and MIDI CC actions; per-parameter MIDI learn - Colour themes (.szt), project bundles (.szgz), backup & restore; ZIP in core with zlib (zip_test against jar and unzip) - Persistent app settings; audio pauses in the background unless sound module Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
435305e42a
commit
64e21e0bcc
@@ -18,14 +18,38 @@ struct SnapScroll<Content: View>: View {
|
||||
}
|
||||
}
|
||||
|
||||
/// Sizzle's dark retro palette (Android's default theme) and the card tones.
|
||||
/// A colour theme (Android's RetroPalette), colours as 0xRRGGBB.
|
||||
struct Palette: Equatable {
|
||||
var name: String
|
||||
var background, surface, grid, text, textDim, accent, beat, bar, playhead, danger: UInt32
|
||||
|
||||
static let amber = Palette(name: "Amber CRT", background: 0x0B0D0E, surface: 0x15181A, grid: 0x23282B,
|
||||
text: 0xCFE8D8, textDim: 0x6E7C74, accent: 0xF2C14E, beat: 0x141C1A, bar: 0x1E2A20,
|
||||
playhead: 0x7CFC9A, danger: 0xE05A4B)
|
||||
static let ice = Palette(name: "Ice Terminal", background: 0x07090F, surface: 0x10151F, grid: 0x1E2633,
|
||||
text: 0xCFE0FF, textDim: 0x63708A, accent: 0x62B6FF, beat: 0x121A26, bar: 0x1B2740,
|
||||
playhead: 0x8AF0FF, danger: 0xE05A7A)
|
||||
static let stock = [amber, ice]
|
||||
|
||||
static func color(_ rgb: UInt32) -> Color {
|
||||
Color(red: Double((rgb >> 16) & 0xFF) / 255, green: Double((rgb >> 8) & 0xFF) / 255, blue: Double(rgb & 0xFF) / 255)
|
||||
}
|
||||
}
|
||||
|
||||
/// Sizzle's retro palette (the current theme; the plugins always use the default)
|
||||
/// and the card tones. The app redraws everything when the theme changes.
|
||||
enum Theme {
|
||||
static let background = Color(red: 0.07, green: 0.08, blue: 0.09)
|
||||
static let surface = Color(red: 0.11, green: 0.12, blue: 0.14)
|
||||
static let grid = Color(white: 0.24)
|
||||
static let text = Color(white: 0.92)
|
||||
static let dim = Color(white: 0.58)
|
||||
static let accent = Color(red: 0.96, green: 0.76, blue: 0.29)
|
||||
static var current = Palette.amber
|
||||
static var background: Color { Palette.color(current.background) }
|
||||
static var surface: Color { Palette.color(current.surface) }
|
||||
static var grid: Color { Palette.color(current.grid) }
|
||||
static var text: Color { Palette.color(current.text) }
|
||||
static var dim: Color { Palette.color(current.textDim) }
|
||||
static var accent: Color { Palette.color(current.accent) }
|
||||
static var beat: Color { Palette.color(current.beat) }
|
||||
static var bar: Color { Palette.color(current.bar) }
|
||||
static var playhead: Color { Palette.color(current.playhead) }
|
||||
static var danger: Color { Palette.color(current.danger) }
|
||||
|
||||
static func tone(_ t: LayoutPanel.Tone) -> Color {
|
||||
switch t {
|
||||
|
||||
Reference in New Issue
Block a user