feat(ios): switch accent to desktop amber-gold theme (was indigo)
Match the desktop/web theme (public/style.css): accent #E3A64A gold (dark) / #C9892F (light) replacing the indigo, +onAccent #1A1305 dark ink for gold-fill buttons, +accentSoft. Status colors realigned to the web warm palette (#46D07F/#F5B14C/#FF6B6B). Terminal canvas fixed to the desktop warm-dark (#100F0D bg / #ECE9E3 fg) with gold caret/selection. DSButtonStyle primary now uses onAccent (dark) instead of white for contrast on gold. All via the single accent token + DS palette — no scattered edits. Verified: iPhone 16 290 + iPad Pro 11 290 tests green (DesignSystemTests assert the exact gold + web-status RGB in both schemes).
This commit is contained in:
@@ -125,11 +125,12 @@ struct TerminalScreen: View {
|
||||
|
||||
// MARK: - Terminal theme
|
||||
|
||||
/// Refined dark terminal theme (精致原生). The canvas follows the app surface —
|
||||
/// near-black in dark mode, so the terminal reads as part of the chrome — while
|
||||
/// the caret and selection use the one accent indigo. Every value routes through
|
||||
/// `DS` (no literals); the glyph font is Dynamic-Type-aware SF Mono so terminal
|
||||
/// text respects the user's text-size choice at launch.
|
||||
/// Refined terminal theme (精致原生) matching the desktop: a fixed warm-dark
|
||||
/// canvas (#100F0D bg / #ECE9E3 fg, web --bg/--text) so the terminal reads the
|
||||
/// same on iOS and desktop regardless of app appearance, with caret/selection
|
||||
/// in the one gold accent. Every value routes through `DS` (no literals); the
|
||||
/// glyph font is Dynamic-Type-aware SF Mono so terminal text respects the
|
||||
/// user's text-size choice at launch.
|
||||
private enum TerminalTheme {
|
||||
@MainActor
|
||||
static func apply(to terminal: TerminalView) {
|
||||
@@ -137,8 +138,8 @@ private enum TerminalTheme {
|
||||
ofSize: UIFont.preferredFont(forTextStyle: .footnote).pointSize,
|
||||
weight: .regular
|
||||
)
|
||||
terminal.nativeBackgroundColor = UIColor(DS.Palette.surface)
|
||||
terminal.nativeForegroundColor = UIColor(DS.Palette.textPrimary)
|
||||
terminal.nativeBackgroundColor = UIColor(DS.Palette.terminalBackground)
|
||||
terminal.nativeForegroundColor = UIColor(DS.Palette.terminalForeground)
|
||||
terminal.caretColor = DS.Palette.accentUIColor()
|
||||
terminal.selectedTextBackgroundColor = DS.Palette.accentUIColor()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user