oxedyne/fe2o3/fe2o3_tui/src/lib_tui/cfg/scrollbars.rs
577 bytes, 5 runs
created by r1870400018:1159, 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 | draw::scrollbars::ScrollBarsConfig, |
| 4 | style::{ |
| 5 | Colour, |
| 6 | Style, |
| 7 | }, |
| 8 | }; |
| 9 | |
| 10 | use oxedyne_fe2o3_core::prelude::*; |
| 11 | |
| 12 | |
| 13 | #[derive(Clone, Debug, Default)] |
| 14 | pub struct ScrollBarsLibrary; |
| 15 | |
| 16 | impl StyleLibrary { |
| 17 | |
| 18 | pub fn standard_scrollbars(&self) -> ScrollBarsConfig { |
| 19 | ScrollBarsConfig { |
| 20 | style: Style::new(Some(Colour::Gray), Some(Colour::DarkGray), None), |
| 21 | horiz: '\u{2501}', |
| 22 | vert: '\u{2503}', |
| 23 | corner: Some(' '), |
| 24 | always: true, |
| 25 | } |
| 26 | } |
| 27 | } |