Link Search Menu Expand Document

Constructor: themeSettings

Back to constructors index

Theme settings

Attributes:

NameTypeRequiredDescription
message_colors_animatedBoolOptionalIf set, the freeform gradient fill needs to be animated on every sent message.
base_themeBaseThemeYesBase theme
accent_colorintYesAccent color, ARGB format
outbox_accent_colorintOptionalAccent color of outgoing messages in ARGB format
message_colorsArray of intOptionalThe fill to be used as a background for outgoing messages, in RGB24 format.
If just one or two equal colors are provided, describes a solid fill of a background.
If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.
If three or four colors are provided, describes a freeform gradient fill of a background.
wallpaperWallPaperOptionalWallpaper

Type: ThemeSettings

Example:

$themeSettings = ['_' => 'themeSettings', 'message_colors_animated' => Bool, 'base_theme' => BaseTheme, 'accent_color' => int, 'outbox_accent_color' => int, 'message_colors' => [int, int], 'wallpaper' => WallPaper];