Add section_separator_color to theme parameters.

This commit is contained in:
levlam 2024-06-29 22:16:10 +03:00
parent 4f3eccd17e
commit ee2a3b3bcc
3 changed files with 4 additions and 2 deletions

View File

@ -2648,6 +2648,7 @@ locationAddress country_code:string state:string city:string street:string = Loc
//@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
//@section_separator_color A color of the section separator 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
@ -2657,7 +2658,7 @@ locationAddress country_code:string state:string city:string street:string = Loc
//@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 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;
themeParameters background_color:int32 secondary_background_color:int32 header_background_color:int32 section_background_color:int32 section_separator_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

View File

@ -643,6 +643,7 @@ string ThemeManager::get_theme_parameters_json_string(const td_api::object_ptr<t
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("section_separator_color", get_color(theme->section_separator_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_));

View File

@ -2309,7 +2309,7 @@ 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, 5, 55, 555, 5555, 55555,
555555);
555555, 123);
}
static td_api::object_ptr<td_api::BackgroundFill> as_background_fill(int32 color) {