Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>ThemeSettings_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class ThemeSettings_
import { ThemeSettings_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Theme settings

Constructors

new
ThemeSettings_(params: { message_colors_animated?: true; base_theme: enums.BaseTheme; accent_color: number; outbox_accent_color?: number; message_colors?: Array<number>; wallpaper?: enums.WallPaper; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
accent_color: number

Accent color, ARGB format

base_theme: enums.BaseTheme

Base theme

optional
message_colors: Array<number>

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.

optional
message_colors_animated: true

If set, the freeform gradient fill needs to be animated on every sent message.

optional
outbox_accent_color: number

Accent color of outgoing messages in ARGB format

optional
wallpaper: enums.WallPaper

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc