haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.BackgroundType

Synopsis

Documentation

data BackgroundType Source #

Describes the type of background

Constructors

BackgroundTypeWallpaper

A wallpaper in JPEG format

Fields

  • is_blurred :: Maybe Bool

    True, if the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12

  • is_moving :: Maybe Bool

    True, if the background needs to be slightly moved when device is tilted

BackgroundTypePattern

A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user

Fields

  • fill :: Maybe BackgroundFill

    Fill of the background

  • intensity :: Maybe Int

    Intensity of the pattern when it is shown above the filled background; 0-100

  • is_inverted :: Maybe Bool

    True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only

  • is_moving :: Maybe Bool

    True, if the background needs to be slightly moved when device is tilted

BackgroundTypeFill

A filled background

Fields

BackgroundTypeChatTheme

A background from a chat theme; can be used only as a chat background in channels

Fields