oxedyne/fe2o3/fe2o3_tui/src/lib_tui/cfg/highlight.rs
613 bytes, 3 runs
created by r1870400018:1151, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | use crate::lib_tui::{ |
| 2 | cfg::style::StyleLibrary, |
| 3 | style::{ |
| 4 | Colour, |
| 5 | Style, |
| 6 | }, |
| 7 | }; |
| 8 | |
| 9 | |
| 10 | impl StyleLibrary { |
| 11 | |
| 12 | pub fn basic_highlight_styles(&self) -> Vec<Style> { |
| 13 | vec![ |
| 14 | Style::new(Some(Colour::White), Some(Colour::Green), None), |
| 15 | Style::new(Some(Colour::White), Some(Colour::Red), None), |
| 16 | Style::new(Some(Colour::White), Some(Colour::Blue), None), |
| 17 | Style::new(Some(Colour::Black), Some(Colour::Yellow), None), |
| 18 | Style::new(Some(Colour::LightRed), Some(Colour::Black), None), |
| 19 | ] |
| 20 | } |
| 21 | } |