use super::*; use ratatui::style::Color; pub fn theme() -> ThemeColors { let bg = Color::Rgb(39, 40, 34); let bg_light = Color::Rgb(53, 54, 47); let bg_lighter = Color::Rgb(70, 71, 62); let fg = Color::Rgb(248, 248, 242); let fg_dim = Color::Rgb(190, 190, 180); let comment = Color::Rgb(117, 113, 94); let pink = Color::Rgb(249, 38, 114); let green = Color::Rgb(166, 226, 46); let yellow = Color::Rgb(230, 219, 116); let blue = Color::Rgb(102, 217, 239); let purple = Color::Rgb(174, 129, 255); let orange = Color::Rgb(253, 151, 31); let darker_bg = Color::Rgb(30, 31, 26); ThemeColors { ui: UiColors { bg, bg_rgb: (39, 40, 34), text_primary: fg, text_muted: fg_dim, text_dim: comment, border: bg_lighter, header: blue, unfocused: comment, accent: pink, surface: bg_light, }, status: StatusColors { playing_bg: Color::Rgb(50, 65, 40), playing_fg: green, stopped_bg: Color::Rgb(70, 40, 55), stopped_fg: pink, fill_on: green, fill_off: comment, fill_bg: bg_light, }, selection: SelectionColors { cursor_bg: pink, cursor_fg: bg, selected_bg: Color::Rgb(85, 70, 80), selected_fg: pink, in_range_bg: Color::Rgb(70, 65, 70), in_range_fg: fg, cursor: pink, selected: Color::Rgb(85, 70, 80), in_range: Color::Rgb(70, 65, 70), }, tile: TileColors { playing_active_bg: Color::Rgb(90, 65, 45), playing_active_fg: orange, playing_inactive_bg: Color::Rgb(80, 75, 50), playing_inactive_fg: yellow, active_bg: Color::Rgb(55, 75, 70), active_fg: blue, inactive_bg: bg_light, inactive_fg: fg_dim, active_selected_bg: Color::Rgb(85, 65, 80), active_in_range_bg: Color::Rgb(70, 65, 70), link_bright: [ (249, 38, 114), (174, 129, 255), (253, 151, 31), (102, 217, 239), (166, 226, 46), ], link_dim: [ (90, 40, 60), (70, 55, 90), (85, 60, 35), (50, 75, 85), (60, 80, 40), ], }, header: HeaderColors { tempo_bg: Color::Rgb(75, 50, 65), tempo_fg: pink, bank_bg: Color::Rgb(50, 70, 75), bank_fg: blue, pattern_bg: Color::Rgb(55, 75, 50), pattern_fg: green, stats_bg: bg_light, stats_fg: fg_dim, }, modal: ModalColors { border: blue, border_accent: pink, border_warn: orange, border_dim: comment, confirm: orange, rename: purple, input: blue, editor: blue, preview: comment, }, flash: FlashColors { error_bg: Color::Rgb(75, 40, 55), error_fg: pink, success_bg: Color::Rgb(50, 70, 45), success_fg: green, info_bg: bg_light, info_fg: fg, }, list: ListColors { playing_bg: Color::Rgb(50, 70, 45), playing_fg: green, staged_play_bg: Color::Rgb(70, 55, 80), staged_play_fg: purple, staged_stop_bg: Color::Rgb(80, 45, 60), staged_stop_fg: pink, edit_bg: Color::Rgb(50, 70, 70), edit_fg: blue, hover_bg: bg_lighter, hover_fg: fg, muted_bg: Color::Rgb(48, 50, 45), muted_fg: comment, soloed_bg: Color::Rgb(70, 65, 45), soloed_fg: yellow, }, link_status: LinkStatusColors { disabled: pink, connected: green, listening: yellow, }, syntax: SyntaxColors { gap_bg: darker_bg, executed_bg: Color::Rgb(55, 50, 55), selected_bg: Color::Rgb(85, 75, 50), emit: (fg, Color::Rgb(85, 55, 65)), number: (purple, Color::Rgb(60, 50, 75)), string: (yellow, Color::Rgb(70, 65, 45)), comment: (comment, darker_bg), keyword: (pink, Color::Rgb(80, 45, 60)), stack_op: (blue, Color::Rgb(50, 70, 75)), operator: (pink, Color::Rgb(80, 45, 60)), sound: (blue, Color::Rgb(50, 70, 75)), param: (orange, Color::Rgb(80, 60, 40)), context: (orange, Color::Rgb(80, 60, 40)), note: (green, Color::Rgb(55, 75, 45)), interval: (Color::Rgb(180, 235, 80), Color::Rgb(55, 75, 40)), variable: (green, Color::Rgb(55, 75, 45)), vary: (yellow, Color::Rgb(70, 65, 45)), generator: (blue, Color::Rgb(50, 70, 70)), user_defined: (orange, Color::Rgb(60, 50, 30)), default: (fg_dim, darker_bg), }, table: TableColors { row_even: darker_bg, row_odd: bg, }, values: ValuesColors { tempo: orange, value: fg_dim, }, hint: HintColors { key: orange, text: comment, }, view_badge: ViewBadgeColors { bg: fg, fg: bg }, nav: NavColors { selected_bg: Color::Rgb(80, 60, 75), selected_fg: fg, unselected_bg: bg_light, unselected_fg: comment, }, editor_widget: EditorWidgetColors { cursor_bg: fg, cursor_fg: bg, selection_bg: Color::Rgb(75, 70, 75), completion_bg: bg_light, completion_fg: fg, completion_selected: orange, completion_example: blue, }, browser: BrowserColors { directory: blue, project_file: purple, selected: orange, file: fg, focused_border: orange, unfocused_border: comment, root: fg, file_icon: comment, folder_icon: blue, empty_text: comment, }, input: InputColors { text: blue, cursor: fg, hint: comment, }, search: SearchColors { active: orange, inactive: comment, match_bg: yellow, match_fg: bg, }, markdown: MarkdownColors { h1: blue, h2: orange, h3: purple, code: green, code_border: Color::Rgb(85, 85, 75), link: pink, link_url: Color::Rgb(130, 125, 115), quote: comment, text: fg, list: fg, }, engine: EngineColors { header: blue, header_focused: yellow, divider: Color::Rgb(80, 80, 72), scroll_indicator: Color::Rgb(95, 95, 88), label: Color::Rgb(150, 145, 135), label_focused: Color::Rgb(180, 175, 165), label_dim: Color::Rgb(120, 115, 105), value: Color::Rgb(210, 205, 195), focused: yellow, normal: fg, dim: Color::Rgb(95, 95, 88), path: Color::Rgb(150, 145, 135), border_magenta: pink, border_green: green, border_cyan: blue, separator: Color::Rgb(80, 80, 72), hint_active: Color::Rgb(220, 200, 100), hint_inactive: Color::Rgb(80, 80, 72), }, dict: DictColors { word_name: green, word_bg: Color::Rgb(55, 65, 60), alias: comment, stack_sig: purple, description: fg, example: Color::Rgb(150, 145, 135), category_focused: yellow, category_selected: blue, category_normal: fg, category_dimmed: Color::Rgb(95, 95, 88), border_focused: yellow, border_normal: Color::Rgb(80, 80, 72), header_desc: Color::Rgb(170, 165, 155), }, title: TitleColors { big_title: pink, author: blue, link: green, license: orange, prompt: Color::Rgb(170, 165, 155), subtitle: fg, }, meter: MeterColors { low: green, mid: yellow, high: pink, low_rgb: (155, 215, 45), mid_rgb: (220, 210, 105), high_rgb: (240, 50, 110), }, sparkle: SparkleColors { colors: [ (102, 217, 239), (253, 151, 31), (166, 226, 46), (249, 38, 114), (174, 129, 255), ], }, confirm: ConfirmColors { border: orange, button_selected_bg: orange, button_selected_fg: bg, }, } }