MadelineProtoDocs/docs/API_docs/constructors/inputThemeSettings.md
2024-05-01 14:53:46 +02:00

2.2 KiB

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

Constructor: inputThemeSettings

Back to constructors index

Theme settings

Attributes:

Name Type Required Description
message_colors_animated Bool Optional If set, the freeform gradient fill needs to be animated on every sent message
base_theme BaseTheme Yes Default theme on which this theme is based
accent_color int Yes Accent color, ARGB format
outbox_accent_color int Optional Accent color of outgoing messages in ARGB format
message_colors Array of int Optional The 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.
wallpaper InputWallPaper Optional inputWallPaper or inputWallPaperSlug when passing wallpaper files for image or pattern wallpapers, inputWallPaperNoFile with id=0 otherwise.
wallpaper_settings WallPaperSettings Optional Wallpaper settings.

Type: InputThemeSettings

Example:

$inputThemeSettings = ['_' => 'inputThemeSettings', 'message_colors_animated' => Bool, 'base_theme' => BaseTheme, 'accent_color' => int, 'outbox_accent_color' => int, 'message_colors' => [int, int], 'wallpaper' => InputWallPaper, 'wallpaper_settings' => WallPaperSettings];