mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added about labels about profile colors to edit peer color box.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user