mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Moved plus icon to settings style file.
This commit is contained in:
@@ -39,7 +39,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "styles/style_menu_icons.h"
|
#include "styles/style_menu_icons.h"
|
||||||
#include "styles/style_boxes.h"
|
#include "styles/style_boxes.h"
|
||||||
#include "styles/style_layers.h"
|
#include "styles/style_layers.h"
|
||||||
#include "styles/style_window.h"
|
#include "styles/style_settings.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
@@ -276,7 +276,7 @@ void RingtonesBox(
|
|||||||
tr::lng_ringtones_box_upload_button(),
|
tr::lng_ringtones_box_upload_button(),
|
||||||
st::ringtonesBoxButton,
|
st::ringtonesBoxButton,
|
||||||
{
|
{
|
||||||
&st::mainMenuAddAccount,
|
&st::settingsIconAdd,
|
||||||
0,
|
0,
|
||||||
Settings::IconType::Round,
|
Settings::IconType::Round,
|
||||||
&st::windowBgActive
|
&st::windowBgActive
|
||||||
|
@@ -517,7 +517,7 @@ void SetupAccountsWrap(
|
|||||||
raw->heightValue(
|
raw->heightValue(
|
||||||
) | rpl::start_with_next([=](int height) {
|
) | rpl::start_with_next([=](int height) {
|
||||||
const auto left = st::mainMenuAddAccountButton.iconLeft
|
const auto left = st::mainMenuAddAccountButton.iconLeft
|
||||||
+ (st::mainMenuAddAccount.width() - userpicSize) / 2;
|
+ (st::settingsIconAdd.width() - userpicSize) / 2;
|
||||||
const auto top = (height - userpicSize) / 2;
|
const auto top = (height - userpicSize) / 2;
|
||||||
state->userpic.setGeometry(left, top, userpicSize, userpicSize);
|
state->userpic.setGeometry(left, top, userpicSize, userpicSize);
|
||||||
}, state->userpic.lifetime());
|
}, state->userpic.lifetime());
|
||||||
@@ -684,7 +684,7 @@ not_null<Ui::SlideWrap<Ui::SettingsButton>*> AccountsList::setupAdd() {
|
|||||||
tr::lng_menu_add_account(),
|
tr::lng_menu_add_account(),
|
||||||
st::mainMenuAddAccountButton,
|
st::mainMenuAddAccountButton,
|
||||||
{
|
{
|
||||||
&st::mainMenuAddAccount,
|
&st::settingsIconAdd,
|
||||||
0,
|
0,
|
||||||
IconType::Round,
|
IconType::Round,
|
||||||
&st::windowBgActive
|
&st::windowBgActive
|
||||||
|
@@ -143,7 +143,6 @@ mainMenuAddAccountButton: SettingsButton(mainMenuButton) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mainMenuShadow: icon {{ "menu_shadow", windowShadowFg }};
|
mainMenuShadow: icon {{ "menu_shadow", windowShadowFg }};
|
||||||
mainMenuAddAccount: icon {{ "settings/add", windowFgActive }};
|
|
||||||
mainMenuAccountSize: 26px;
|
mainMenuAccountSize: 26px;
|
||||||
mainMenuAccountLine: 2px;
|
mainMenuAccountLine: 2px;
|
||||||
mainMenuBadgeFont: font(11px bold);
|
mainMenuBadgeFont: font(11px bold);
|
||||||
|
Reference in New Issue
Block a user