Expand description
Vexide banner customization.
This module contains multiple premade themes including:
- The default theme
- Official vexide logo colors
- A synthwave inspired theme
- Nord aurora colors
- Nord frost colors
- Aro Ace flag
- Nonbinary flag
- Bisexual flag
- Trans flag
- Tidal wave colors
- Whitescreen theme
- America flavored theme
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§
- Banner
Theme - 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)