diff options
Diffstat (limited to 'dev/macos/Sources')
| -rw-r--r-- | dev/macos/Sources/PardesView.swift | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/dev/macos/Sources/PardesView.swift b/dev/macos/Sources/PardesView.swift index 11818e10..8dbaea0e 100644 --- a/dev/macos/Sources/PardesView.swift +++ b/dev/macos/Sources/PardesView.swift @@ -96,14 +96,16 @@ private let sRGB: CGColorSpace = CGColorSpace(name: CGColorSpace.sRGB) ?? CGColo // a CTFont instead of being bridged to NSFont on the way in. private let fontAttribute = NSAttributedString.Key(kCTFontAttributeName as String) -// The named sixteen, then xterm's 6x6x6 cube, then the 24-step grey ramp. These -// sixteen are app.mjs's, not gui.zig's: gui.zig borrows ghostty's palette -// because it already links it, and the two disagree on the base colors. +// The named sixteen, then xterm's 6x6x6 cube, then the 24-step grey ramp. A +// window is handed a program's sixteen as the theme's own colours (the core's +// terminal paint, colors.Chrome's ansi), so an index under 16 reaches it only +// from elsewhere; these are core/colors.zig's `xterm`, the gui's, so an index +// is one colour in every window. private let ansi16: [UInt32] = [ - 0x00_00_00, 0xCC_00_00, 0x4E_9A_06, 0xC4_A0_00, - 0x34_65_A4, 0x75_50_7B, 0x06_98_9A, 0xD3_D7_CF, - 0x55_57_53, 0xEF_29_29, 0x8A_E2_34, 0xFC_E9_4F, - 0x72_9F_CF, 0xAD_7F_A8, 0x34_E2_E2, 0xEE_EE_EC, + 0x1D_1F_21, 0xCC_66_66, 0xB5_BD_68, 0xF0_C6_74, + 0x81_A2_BE, 0xB2_94_BB, 0x8A_BE_B7, 0xC5_C8_C6, + 0x66_66_66, 0xD5_4E_53, 0xB9_CA_4A, 0xE7_C5_47, + 0x7A_A6_DA, 0xC3_97_D8, 0x70_C0_B1, 0xEA_EA_EA, ] private func paletteColor(_ index: UInt8) -> UInt32 { |
