Added about labels about profile colors to edit peer color box.

This commit is contained in:
23rd
2025-10-26 19:17:20 +03:00
parent 7e6e2960bd
commit 3bd46f3415
2 changed files with 11 additions and 1 deletions
+2
View File
@@ -1003,6 +1003,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_settings_color_reset" = "Reset Profile Color"; "lng_settings_color_reset" = "Reset Profile Color";
"lng_settings_color_profile_about" = "You can change the color of your name and customize replies to you. {link}"; "lng_settings_color_profile_about" = "You can change the color of your name and customize replies to you. {link}";
"lng_settings_color_profile_about_link" = "Change {emoji}"; "lng_settings_color_profile_about_link" = "Change {emoji}";
"lng_settings_color_choose_channel" = "Choose a color and a logo for your channel's profile";
"lng_settings_color_choose_group" = "Choose a color and a logo for the group's profile";
"lng_suggest_hide_new_title" = "Hide new chats?"; "lng_suggest_hide_new_title" = "Hide new chats?";
"lng_suggest_hide_new_about" = "You are receiving lots of new chats from users who are not in your Contact List.\n\nDo you want to have such chats **automatically muted** and **archived**?"; "lng_suggest_hide_new_about" = "You are receiving lots of new chats from users who are not in your Contact List.\n\nDo you want to have such chats **automatically muted** and **archived**?";
@@ -1611,7 +1611,6 @@ void EditPeerColorSection(
}), }),
{ profileMargin, profileSkip, profileMargin, profileSkip }); { profileMargin, profileSkip, profileMargin, profileSkip });
Ui::AddSkip(container, st::settingsColorSampleSkip);
container->add(CreateEmojiIconButton( container->add(CreateEmojiIconButton(
container, container,
show, show,
@@ -1632,6 +1631,8 @@ void EditPeerColorSection(
selector->updateSelection(index); selector->updateSelection(index);
}, selector->lifetime()); }, selector->lifetime());
Ui::AddSkip(container, st::settingsColorSampleSkip);
const auto resetWrap = container->add( const auto resetWrap = container->add(
object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>( object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(
container, container,
@@ -1657,6 +1658,13 @@ void EditPeerColorSection(
resetWrap->toggleOn(state->profileIndex.value( resetWrap->toggleOn(state->profileIndex.value(
) | rpl::map(rpl::mappers::_1 != kUnsetColorIndex)); ) | rpl::map(rpl::mappers::_1 != kUnsetColorIndex));
resetWrap->finishAnimating(); resetWrap->finishAnimating();
Ui::AddDividerText(
container,
group
? tr::lng_settings_color_choose_group()
: tr::lng_settings_color_choose_channel());
Ui::AddSkip(container, st::settingsColorSampleSkip);
}; };
if (group) { if (group) {