Rose Pine theme

This commit is contained in:
mars 2022-10-04 14:27:56 -06:00
parent 2c25af29b0
commit d6ccd02271
1 changed files with 19 additions and 38 deletions

View File

@ -120,44 +120,26 @@ impl App {
pub fn load_colors(color: &mut Colors) {
use NamedColor::*;
let hex = |hex: u32| -> Rgb {
Rgb {
r: (hex >> 16) as u8,
g: (hex >> 8) as u8,
b: hex as u8,
}
};
// Rose Pine theme
let maps = [
(Background, Rgb { r: 0, g: 0, b: 0 }),
(Black, Rgb { r: 32, g: 32, b: 32 }),
(Red, Rgb { r: 255, g: 0, b: 0 }),
(Green, Rgb { r: 0, g: 255, b: 0 }),
(Blue, Rgb { r: 0, g: 0, b: 255 }),
(
Yellow,
Rgb {
r: 255,
g: 255,
b: 0,
},
),
(
Magenta,
Rgb {
r: 255,
g: 0,
b: 255,
},
),
(
Cyan,
Rgb {
r: 0,
g: 255,
b: 255,
},
),
(
White,
Rgb {
r: 255,
g: 255,
b: 255,
},
),
(Foreground, hex(0xe0def4)),
(Background, hex(0x191724)),
(Black, hex(0x6e6a86)),
(Red, hex(0xeb6f92)),
(Green, hex(0x7fb59f)),
(Yellow, hex(0xf6c177)),
(Blue, hex(0x31748f)),
(Magenta, hex(0xc4a7e7)),
(Cyan, hex(0x9ccfd8)),
(White, hex(0xe0def4)),
];
for map in maps.iter() {
@ -165,7 +147,6 @@ impl App {
}
let dupes = [
(Foreground, White),
(BrightBlack, Black),
(BrightRed, Red),
(BrightGreen, Green),