MadelineProtoDocs/old_docs/API_docs_v43/constructors/themeSettings.md
2020-09-12 12:47:38 +02:00

1.2 KiB

title description image
themeSettings Theme settings https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: themeSettings

Back to constructors index

Theme settings

Attributes:

Name Type Required Description
base_theme BaseTheme Yes Base theme
accent_color int Yes Accent color, RGB24 format
message_top_color int Optional Message gradient color (top), RGB24 format
message_bottom_color int Optional Message gradient color (bottom), RGB24 format
wallpaper WallPaper Optional Wallpaper

Type: ThemeSettings

Example:

$themeSettings = ['_' => 'themeSettings', 'base_theme' => BaseTheme, 'accent_color' => int, 'message_top_color' => int, 'message_bottom_color' => int, 'wallpaper' => WallPaper];

Or, if you're into Lua:

themeSettings={_='themeSettings', base_theme=BaseTheme, accent_color=int, message_top_color=int, message_bottom_color=int, wallpaper=WallPaper}