Skip to content

class Tourmaline::BackgroundTypeWallpaper
inherits Reference #

The background is a wallpaper in the JPEG format.

Included modules

JSON::Serializable

Constructors#

.new(type, document, dark_theme_dimming, is_blurred : Bool? = nil, is_moving : Bool? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#dark_theme_dimming : Int32 | Int64 #

Dimming of the background in dark themes, as a percentage; 0-100

View source

#dark_theme_dimming=(dark_theme_dimming : Int32 | Int64) #

Dimming of the background in dark themes, as a percentage; 0-100

View source

#document : Tourmaline::Document #

Document with the wallpaper

View source

#document=(document : Tourmaline::Document) #

Document with the wallpaper

View source

#is_blurred=(is_blurred : Bool?) #

Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12

View source

#is_blurred? : Bool? #

Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12

View source

#is_moving=(is_moving : Bool?) #

Optional. True, if the background moves slightly when the device is tilted

View source

#is_moving? : Bool? #

Optional. True, if the background moves slightly when the device is tilted

View source

#type : String #

Type of the background, always "wallpaper"

View source

#type=(type : String) #

Type of the background, always "wallpaper"

View source