1 # Color themes for the table viewer
4 enum Theme(Dark, Light, None)
8 func header(theme:Theme)
10 style(fg=Color256(232), bg=Blue)
12 style(fg=Color256(255), bg=Color256(237))
17 style(bg=Color256(222), fg=Color256(94))
19 style(bg=Color256(54), fg=Color256(219))
22 func box_details(theme:Theme)
24 style(bg=Color256(222), fg=Color256(232))
26 style(bg=Color256(54), fg=Color256(255))
29 func row_codepoint(theme:Theme, highlighted=no)
31 style(fg=Yellow, bg=(if highlighted then Color.Color256(239) else Color.Color256(235)))
33 style(fg=Color256(18), bg=(if highlighted then Color.Color256(153) else Color.Color256(255)))
36 func row_character(theme:Theme, highlighted=no)
38 style(fg=Color256(255), bg=(if highlighted then Color.Color256(239) else Color.Color256(235)), bold=yes)
40 style(fg=Color256(232), bg=(if highlighted then Color.Color256(153) else Color.Color256(255)), bold=yes)
43 func row_description(theme:Theme, highlighted=no)
45 style(fg=Color256(195), bg=(if highlighted then Color.Color256(239) else Color.Color256(235)), bold=yes)
47 style(fg=Color256(52), bg=(if highlighted then Color.Color256(153) else Color.Color256(255)), bold=yes)
50 func search_label(theme:Theme, active:Bool)
52 style(bg=Color256((if active then Byte(69) else Byte(27))), fg=Color(232))
54 style(bg=Color256((if active then Byte(27) else Byte(69))), fg=Color(255))
57 func search_text(theme:Theme, active:Bool)
59 style(bg=Color256(255), fg=Color256((if active then Byte(232) else Byte(242))), bold=yes)
61 style(bg=Color256(255), fg=Color256((if active then Byte(232) else Byte(242))), bold=yes)
64 func message_theme(theme:Theme)
66 style(bg=Color256(252), fg=Color256(232), bold=yes)
68 style(bg=Color256(249), fg=Color256(232), bold=yes)
71 func scroll_bg(theme:Theme)
72 when theme is Dark, Light
73 style(bg=Color256(252), fg=Color256(232), bold=yes)
76 func scroll_bar(theme:Theme)
77 when theme is Dark, Light
78 style(bg=Color256(247))