diff options
Diffstat (limited to 'core/themes/dracula.zig')
| -rw-r--r-- | core/themes/dracula.zig | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/core/themes/dracula.zig b/core/themes/dracula.zig index 16c6ba43..53bd74eb 100644 --- a/core/themes/dracula.zig +++ b/core/themes/dracula.zig @@ -8,57 +8,56 @@ //! Adjusted to meet pardes's floors (chrome only; text, syntax and ANSI are untouched): //! - focused tag ground #282a36 -> #41434d: 1.11:1 off the unfocused #21222c, pardes needs 1.5:1 on a dark page //! - unfocused tag text #6272a4 -> #7b89b3: 3.36:1 on #21222c, tag text needs 4.5:1 to be read and run +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #94527e -> #be78a6: 1.76:1 on the focused tag, now 3.01:1 (R6: 3:1) +//! - search hit #947151 -> #004c63: 3.21:1 off the page, now 1.50:1 (R8: 1.5:1, the text reading on it) pub const theme = .{ .name = "dracula", // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:185 editor.background: *BG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:10) - .bg = .{ 0x28, 0x2a, 0x36 }, + .page = .{ 0x28, 0x2a, 0x36 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:184 editor.foreground: *FG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:11) - .fg = .{ 0xf8, 0xf8, 0xf2 }, + .text = .{ 0xf8, 0xf8, 0xf2 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:189 editor.selectionBackground: *SELECTION (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:12) - .sel_bg = .{ 0x44, 0x47, 0x5a }, + .selection = .{ 0x44, 0x47, 0x5a }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xf8, 0xf8, 0xf2 }, + .selection_text = .{ 0xf8, 0xf8, 0xf2 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:178 tab.inactiveBackground: *BGDark (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:50) - .tag_bg = .{ 0x21, 0x22, 0x2c }, + .tag = .{ 0x21, 0x22, 0x2c }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:179 tab.inactiveForeground: *COMMENT (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:13) #6272a4, adjusted - .tag_fg = .{ 0x7b, 0x89, 0xb3 }, + .tag_text = .{ 0x7b, 0x89, 0xb3 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:172 tab.activeBackground: *BG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:10) #282a36, adjusted - .tag_active_bg = .{ 0x41, 0x43, 0x4d }, + .tag_focus = .{ 0x41, 0x43, 0x4d }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:173 tab.activeForeground: *FG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:11) - .tag_active_fg = .{ 0xf8, 0xf8, 0xf2 }, + .tag_focus_text = .{ 0xf8, 0xf8, 0xf2 }, // the focused grip: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:175 tab.activeBorderTop: !alpha [*PINK, 80] over BG - .box = .{ 0x94, 0x52, 0x7e }, - // derived: the grip at rest, the accent #94527e faded toward the unfocused tag #21222c as far as 1.6:1 off it (0.50 of the way) - .box_dim = .{ 0x5b, 0x3a, 0x55 }, + .accent = .{ 0x94, 0x52, 0x7e }, // an unsaved grip: the original's warning colour, ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:250 editorWarning.foreground: *CYAN (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:14) - .box_dirty = .{ 0x8b, 0xe9, 0xfd }, + .dirty = .{ 0x8b, 0xe9, 0xfd }, // derived: the column grip, the original's function colour, ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:688 tokenColors "Function names" *GREEN - .column_box = .{ 0x50, 0xfa, 0x7b }, + .column_grip = .{ 0x50, 0xfa, 0x7b }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:725 tokenColors "Keywords" *PINK - .kw = .{ 0xff, 0x79, 0xc6 }, + .keyword = .{ 0xff, 0x79, 0xc6 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:978 tokenColors "Strings" *YELLOW - .str = .{ 0xf1, 0xfa, 0x8c }, + .string = .{ 0xf1, 0xfa, 0x8c }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:640 tokenColors "Constants" *PURPLE - .num = .{ 0xbd, 0x93, 0xf9 }, + .number = .{ 0xbd, 0x93, 0xf9 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:601 tokenColors "Comments" *COMMENT .comment = .{ 0x62, 0x72, 0xa4 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:186 editorLineNumber.foreground: *COMMENT (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:13) - .lineno = .{ 0x62, 0x72, 0xa4 }, + .line_number = .{ 0x62, 0x72, 0xa4 }, // derived: none in the original; the page - .scroll_track = .{ 0x28, 0x2a, 0x36 }, + .rail = .{ 0x28, 0x2a, 0x36 }, // derived: none in the original; line numbers, ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:186 editorLineNumber.foreground: *COMMENT (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:13) - .scroll_thumb = .{ 0x62, 0x72, 0xa4 }, + .rail_thumb = .{ 0x62, 0x72, 0xa4 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:167 editorGroup.border: *PURPLE (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:18) - .border = .{ 0xbd, 0x93, 0xf9 }, + .rule = .{ 0xbd, 0x93, 0xf9 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:197 editor.findMatchBackground: !alpha [*ORANGE, 80] over BG - .search_bg = .{ 0x94, 0x71, 0x51 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xf8, 0xf8, 0xf2 }, + .hit = .{ 0x94, 0x71, 0x51 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:248 editorError.foreground: *RED (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:19) - .diagnostic_error = .{ 0xff, 0x55, 0x55 }, + .@"error" = .{ 0xff, 0x55, 0x55 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:250 editorWarning.foreground: *CYAN (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:14) - .diagnostic_warning = .{ 0x8b, 0xe9, 0xfd }, - .palette = .{ + .warning = .{ 0x8b, 0xe9, 0xfd }, + .ansi = .{ .{ 0x21, 0x22, 0x2c }, // 0: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:67 terminal.ansiBlack: *COLOR0 (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:22) .{ 0xff, 0x55, 0x55 }, // 1: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:68 terminal.ansiRed: *COLOR1 (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:23) .{ 0x50, 0xfa, 0x7b }, // 2: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:69 terminal.ansiGreen: *COLOR2 (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:24) |
