Skip to main content

Module theme

Module theme 

Source
Expand description

Theming support for Telex applications.

Provides customizable color schemes for UI elements.

§Example

use telex::theme::Theme;

let theme = Theme::dark();
// or customize:
let custom = Theme::default()
    .with_primary(Color::Cyan)
    .with_background(Color::Black);

Structs§

Theme
Color scheme for the application.

Functions§

current_theme
Get the current theme.
set_theme
Set the current theme.
supports_true_color
Check if the terminal supports true color (24-bit RGB).
terminal_name
Get the name of the current terminal, if detectable.
themed_color
Get a specific color from the current theme.