Module attheme::default_themes

source ·
Expand description

Provides Telegram’s default themes.

As of 4.9.1, Telegram has three default themes. Here are their names and functions that generate them.

NameFunction
Defaultdefault_themes::default()
Bluedefault_themes::blue()
Darkdefault_themes::dark()

Notes

If you want to fallback to the default theme, use default_themes::default().

The themes are generated on each call. You should generate such themes once and store them somewhere. When using them with |, use &theme | &default, and when using |=, use theme |= &default. They clone only if necessary.

Functions

Generates the default Blue theme.
Generates the default Dark theme.
Generates the default theme.