oxedyne/fe2o3/fe2o3_tui/src/lib_tui/cfg/style.rs
2.6 KiB, 3 runs
created by r1870400018:1163, 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 | canvas::CanvasLibrary, |
| 4 | line::LineLibrary, |
| 5 | scrollbars::ScrollBarsLibrary, |
| 6 | tab::TabLibrary, |
| 7 | tbox::TextBoxLibrary, |
| 8 | }, |
| 9 | }; |
| 10 | |
| 11 | /// A library of pre-calculated drawables. |
| 12 | #[derive(Clone, Debug, Default)] |
| 13 | pub struct StyleLibrary { |
| 14 | pub canvas: CanvasLibrary, |
| 15 | pub line: LineLibrary, |
| 16 | pub scrollbars: ScrollBarsLibrary, |
| 17 | pub tab: TabLibrary, |
| 18 | pub tbox: TextBoxLibrary, |
| 19 | } |
| 20 | |
| 21 | impl StyleLibrary { |
| 22 | |
| 23 | // Credits: |
| 24 | // Image: https://ascii-generator.site/ |
| 25 | pub const DEFAULT_SPLASH: &'static str = |
| 26 | r#" |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | ,:************************************************:, |
| 32 | -::::**********************************************::::- |
| 33 | :***' '***: |
| 34 | **** .::::::. .:::::. **** |
| 35 | **** `````.:: ,::````` **** |
| 36 | **** :::::' :::::::. **** |
| 37 | **** :::``` :::```::: **** |
| 38 | **** :::..... :::...::: **** |
| 39 | **** :::::::: `:::::' **** |
| 40 | **** **** |
| 41 | **** **** |
| 42 | **** ................ **** |
| 43 | **** :::::::::::::::: **** |
| 44 | **** ::::.----------- **** |
| 45 | **** ::::. .---------. **** |
| 46 | **** ::::. ,::::::::::::: **** |
| 47 | **** :::::.......... ::::. ::::: **** |
| 48 | **** ::::::::::::::: ::::. ::::: **** |
| 49 | **** :::::---------- ::::::::::::::: **** |
| 50 | **** ::::. ::::----------- **** |
| 51 | **** ::::. ::::. **** |
| 52 | **** ::::. ::::::::::::::: **** |
| 53 | **** ::::. ':::::::::::' **** |
| 54 | **** **** |
| 55 | **** **** |
| 56 | ****\ /**** |
| 57 | -******************************************************- |
| 58 | `**************************************************` |
| 59 | |
| 60 | I R O N I C |
| 61 | |
| 62 | I r o n I n t e r a c t i v e C o n s o l e |
| 63 | |
| 64 | Powered by Rust, |
| 65 | the Hematite library, |
| 66 | and the many libraries on which it depends. |
| 67 | |
| 68 | |
| 69 | |
| 70 | "#; |
| 71 | } |