mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-01-08 18:59:01 +00:00
21 lines
445 B
Rust
21 lines
445 B
Rust
|
#[derive(Default, Clone, Copy)]
|
||
|
pub struct Config {
|
||
|
pub rendering_mode: RenderingMode,
|
||
|
}
|
||
|
|
||
|
#[derive(Clone, Copy)]
|
||
|
pub enum RenderingMode {
|
||
|
/// only 16 colors by accessed by name, no alpha support
|
||
|
BaseColors,
|
||
|
/// 8 bit colors, will be downsampled from rgb colors
|
||
|
Ansi,
|
||
|
/// 24 bit colors, most terminals support this
|
||
|
Rgb,
|
||
|
}
|
||
|
|
||
|
impl Default for RenderingMode {
|
||
|
fn default() -> Self {
|
||
|
RenderingMode::Rgb
|
||
|
}
|
||
|
}
|