less colors more contrast

This commit is contained in:
Anton-4 2024-02-14 17:20:44 +01:00
parent ec93892c6b
commit c6b5e2f8c3
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
4 changed files with 19 additions and 28 deletions

View file

@ -219,7 +219,7 @@ const fn default_palette_from_style_codes(codes: StyleCodes) -> Palette {
code_block: codes.white,
keyword: codes.green,
ellipsis: codes.green,
variable: codes.blue,
variable: codes.cyan,
type_variable: codes.yellow,
structure: codes.green,
alias: codes.yellow,
@ -249,8 +249,6 @@ pub struct StyleCodes {
pub red: &'static str,
pub green: &'static str,
pub yellow: &'static str,
pub blue: &'static str,
pub magenta: &'static str,
pub cyan: &'static str,
pub white: &'static str,
pub bold: &'static str,
@ -260,12 +258,10 @@ pub struct StyleCodes {
}
pub const ANSI_STYLE_CODES: StyleCodes = StyleCodes {
red: "\u{001b}[31m",
green: "\u{001b}[32m",
yellow: "\u{001b}[33m",
blue: "\u{001b}[34m",
magenta: "\u{001b}[35m",
cyan: "\u{001b}[36m",
red: "\u{001b}[1;31m",
green: "\u{001b}[1;32m",
yellow: "\u{001b}[1;33m",
cyan: "\u{001b}[1;36m",
white: "\u{001b}[37m",
bold: "\u{001b}[1m",
underline: "\u{001b}[4m",
@ -283,8 +279,6 @@ pub const HTML_STYLE_CODES: StyleCodes = StyleCodes {
red: html_color!("red"),
green: html_color!("green"),
yellow: html_color!("yellow"),
blue: html_color!("blue"),
magenta: html_color!("magenta"),
cyan: html_color!("cyan"),
white: html_color!("white"),
bold: "<span class='bold'>",