2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Removed AddButton and CreateButton without icon from Settings.

This commit is contained in:
23rd
2023-11-14 23:59:21 +03:00
parent f6cb9072d2
commit f629bf76ff
40 changed files with 173 additions and 171 deletions

View File

@@ -688,7 +688,7 @@ void MainMenu::setupArchive() {
const auto inner = wrap->entity();
wrap->toggle(checkArchive(), anim::type::instant);
const auto button = AddButton(
const auto button = AddButtonWithIcon(
inner,
tr::lng_archived_name(),
st::mainMenuButton,
@@ -841,7 +841,7 @@ void MainMenu::setupMenu() {
const auto addAction = [&](
rpl::producer<QString> text,
IconDescriptor &&descriptor) {
return AddButton(
return AddButtonWithIcon(
_menu,
std::move(text),
st::mainMenuButton,
@@ -864,7 +864,7 @@ void MainMenu::setupMenu() {
const auto wrap = _menu->add(
object_ptr<Ui::SlideWrap<Ui::SettingsButton>>(
_menu,
CreateButton(
CreateButtonWithIcon(
_menu,
tr::lng_menu_my_stories(),
st::mainMenuButton,