MadelineProtoDocs/docs/API_docs/constructors/themeSettings.md

43 lines
1.2 KiB
Markdown
Raw Normal View History

2020-03-06 12:24:14 +01:00
---
title: themeSettings
2020-06-16 17:50:25 +02:00
description: Theme settings
2020-03-06 12:24:14 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: themeSettings
[Back to constructors index](index.md)
2020-06-16 17:50:25 +02:00
Theme settings
2020-03-06 12:24:14 +01:00
### Attributes:
2020-06-16 17:50:25 +02:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|base\_theme|[BaseTheme](../types/BaseTheme.md) | Yes|Base theme|
|accent\_color|[int](../types/int.md) | Yes|Accent color, RGB24 format|
|message\_top\_color|[int](../types/int.md) | Optional|Message gradient color (top), RGB24 format|
|message\_bottom\_color|[int](../types/int.md) | Optional|Message gradient color (bottom), RGB24 format|
|wallpaper|[WallPaper](../types/WallPaper.md) | Optional|Wallpaper|
2020-03-06 12:24:14 +01:00
### Type: [ThemeSettings](../types/ThemeSettings.md)
### Example:
```php
$themeSettings = ['_' => 'themeSettings', 'base_theme' => BaseTheme, 'accent_color' => int, 'message_top_color' => int, 'message_bottom_color' => int, 'wallpaper' => WallPaper];
```
Or, if you're into Lua:
```lua
themeSettings={_='themeSettings', base_theme=BaseTheme, accent_color=int, message_top_color=int, message_bottom_color=int, wallpaper=WallPaper}
```