Module themes

Source
Expand description

Vexide banner customization.

This module contains multiple premade themes including:

Custom themes can be created by defining a constant of type BannerTheme with the desired ANSI escapes. This theme can then be passed to vexide::main.

§Examples

const CUSTOM_THEME: BannerTheme = BannerTheme {
   emoji: "🦀",
   logo_primary: [
       "\u{1b}[1;38;2;136;192;208m",
       "\u{1b}[1;38;2;136;192;208m",
       "\u{1b}[1;38;2;136;192;208m",
       "\u{1b}[1;38;2;136;192;208m",
       "\u{1b}[1;38;2;136;192;208m",
       "\u{1b}[1;38;2;136;192;208m",
       "\u{1b}[1;38;2;136;192;208m",
   ],
   logo_secondary: "\x1B[38;5;254m",
   crate_version: "[1;33m",
   metadata_key: "[1;33m",
};

#[vexide::main(banner(enabled = true, theme = CUSTOM_THEME))]
async fn main(peripherals: vexide::Peripherals) { }

Structs§

BannerTheme
Banner display options

Constants§

THEME_ARO_ACE
An AroAce flag
THEME_BISEXUAL
A bisexual flag
THEME_DEFAULT
The default rainbow theme
THEME_IBM_MONOCHROME
Theme inspired by old IBM monochrome display adapters
THEME_MURICA
America flavored theme
THEME_NONBINARY
A nonbinary flag
THEME_NORD_AURORA
Nord aurora colors
THEME_NORD_FROST
Nord frost colors
THEME_OFFICIAL_LOGO
The official vexide logo colors
THEME_SYNTHWAVE
A synthwave inspired theme
THEME_TIDAL_WAVE
Tidal wave colors (literally stolen from pictures of waves)
THEME_TRANS
A trans flag
THEME_WHITESCREEN
Whitescreen inspired theme (joke theme)