Add more colors to themeParameters.
This commit is contained in:
parent
d20ddeb65c
commit
84676f04a6
@ -2097,12 +2097,18 @@ address country_code:string state:string city:string street_line1:string street_
|
||||
//@description Contains parameters of the application theme
|
||||
//@background_color A color of the background in the RGB24 format
|
||||
//@secondary_background_color A secondary color for the background in the RGB24 format
|
||||
//@header_background_color A color of the header background in the RGB24 format
|
||||
//@section_background_color A color of the section background in the RGB24 format
|
||||
//@text_color A color of text in the RGB24 format
|
||||
//@accent_text_color An accent color of the text in the RGB24 format
|
||||
//@section_header_text_color A color of text on the section headers in the RGB24 format
|
||||
//@subtitle_text_color A color of the subtitle text in the RGB24 format
|
||||
//@destructive_text_color A color of the text for destructive actions in the RGB24 format
|
||||
//@hint_color A color of hints in the RGB24 format
|
||||
//@link_color A color of links in the RGB24 format
|
||||
//@button_color A color of the buttons in the RGB24 format
|
||||
//@button_text_color A color of text on the buttons in the RGB24 format
|
||||
themeParameters background_color:int32 secondary_background_color:int32 text_color:int32 hint_color:int32 link_color:int32 button_color:int32 button_text_color:int32 = ThemeParameters;
|
||||
themeParameters background_color:int32 secondary_background_color:int32 header_background_color:int32 section_background_color:int32 text_color:int32 accent_text_color:int32 section_header_text_color:int32 subtitle_text_color:int32 destructive_text_color:int32 hint_color:int32 link_color:int32 button_color:int32 button_text_color:int32 = ThemeParameters;
|
||||
|
||||
|
||||
//@description Portion of the price of a product (e.g., "delivery cost", "tax amount") @label Label for this portion of the product price @amount Currency amount in the smallest units of the currency
|
||||
|
@ -274,6 +274,12 @@ string get_theme_parameters_json_string_impl(const td_api::object_ptr<td_api::th
|
||||
o("link_color", get_color(theme->link_color_));
|
||||
o("button_color", get_color(theme->button_color_));
|
||||
o("button_text_color", get_color(theme->button_text_color_));
|
||||
o("header_bg_color", get_color(theme->header_background_color_));
|
||||
o("section_bg_color", get_color(theme->section_background_color_));
|
||||
o("accent_text_color", get_color(theme->accent_text_color_));
|
||||
o("section_header_text_color", get_color(theme->section_header_text_color_));
|
||||
o("subtitle_text_color", get_color(theme->subtitle_text_color_));
|
||||
o("destructive_text_color", get_color(theme->destructive_text_color_));
|
||||
}));
|
||||
}
|
||||
} // namespace
|
||||
|
@ -2144,7 +2144,8 @@ class CliClient final : public Actor {
|
||||
}
|
||||
|
||||
static td_api::object_ptr<td_api::themeParameters> as_theme_parameters() {
|
||||
return td_api::make_object<td_api::themeParameters>(0, 1, -1, 256, 65536, 123456789, 65535);
|
||||
return td_api::make_object<td_api::themeParameters>(0, 1, -1, 256, 65536, 123456789, 65535, 5, 55, 555, 5555, 55555,
|
||||
555555);
|
||||
}
|
||||
|
||||
static td_api::object_ptr<td_api::BackgroundFill> as_background_fill(int32 color) {
|
||||
|
Loading…
Reference in New Issue
Block a user