oxedyne/fe2o3/fe2o3_tui/src/lib_tui/cfg/outline.rs
1.4 KiB, 5 runs
created by r1870400018:1157, 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::{ |
| 3 | line::LineType, |
| 4 | style::StyleLibrary, |
| 5 | }, |
| 6 | draw::outline::{ |
| 7 | OutlineConfig, |
| 8 | OutlineConfigs, |
| 9 | }, |
| 10 | style::{ |
| 11 | Colour, |
| 12 | Style, |
| 13 | }, |
| 14 | }; |
| 15 | |
| 16 | use oxedyne_fe2o3_core::prelude::*; |
| 17 | |
| 18 | |
| 19 | impl StyleLibrary { |
| 20 | |
| 21 | pub fn default_window_outlines(&self) -> OutlineConfigs { |
| 22 | OutlineConfigs { |
| 23 | normal: OutlineConfig { |
| 24 | style: Style::new(None, None, None), |
| 25 | typ: LineType::Blank, |
| 26 | }, |
| 27 | focus: OutlineConfig { |
| 28 | style: Style::new(Some(Colour::White), None, None), |
| 29 | typ: LineType::ThickSingleSharp, |
| 30 | }, |
| 31 | interact: OutlineConfig { |
| 32 | style: Style::new(Some(Colour::Green), None, None), |
| 33 | typ: LineType::ThickSingleSharp, |
| 34 | }, |
| 35 | mgmt_mode: OutlineConfig { |
| 36 | style: Style::new(Some(Colour::Red), None, None), |
| 37 | typ: LineType::ThickSingleSharp, |
| 38 | }, |
| 39 | mgmt_tint: OutlineConfig { |
| 40 | style: Style::new(Some(Colour::Gray), None, None), |
| 41 | typ: LineType::ThickSingleSharp, |
| 42 | }, |
| 43 | mgmt_focus: OutlineConfig { |
| 44 | style: Style::new(Some(Colour::White), Some(Colour::Green), None), |
| 45 | typ: LineType::ThickSingleSharp, |
| 46 | }, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | } |