[][src]Module tdesktop_theme::default_themes

Provides Telegram Desktop's default themes.

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

NameFunction
Bluedefault_themes::blue()
Classicdefault_themes::classic()
Midnightdefault_themes::midnight()
Matrixdefault_themes::matrix()

Notes

If you want to fallback to the default theme, use default_themes::classic(). Note that it's absolutely okay that the default theme links to the original theme's variables.

The themes are generated on each call. You should generate such themes once and store them somewhere. When using them to fallback, use should use &theme | &default_theme instead of theme | default_theme and clone them when using |=.

Functions

blue

Generates the default Blue theme theme.

classic

Generates the default Classic theme theme.

matrix

Generates the default Matrix theme theme.

midnight

Generates the default Midnight theme theme.