Fix a couple of layout bugs for username edit.

This commit is contained in:
John Preston 2017-07-19 22:20:38 +03:00
parent 7ff175a81e
commit f283aa033b
2 changed files with 4 additions and 3 deletions

View File

@ -567,7 +567,8 @@ passcodeTextStyle: TextStyle(defaultTextStyle) {
usernamePadding: margins(23px, 6px, 21px, 12px);
usernameSkip: 49px;
usernameTextStyle: boxTextStyle;
usernameTextStyle: TextStyle(boxTextStyle, passcodeTextStyle) {
}
usernameDefaultFg: windowSubTextFg;
downloadPathSkip: 10px;

View File

@ -44,8 +44,8 @@ InfoWidget::InfoWidget(QWidget *parent, UserData *self) : BlockWidget(parent, se
}
void InfoWidget::createControls() {
style::margins margin(0, -st::settingsBlockOneLineTextPart.margin.top(), 0, st::settingsSmallSkip - st::settingsBlockOneLineTextPart.margin.bottom());
style::margins slidedPadding(0, st::settingsSmallSkip / 2, 0, st::settingsSmallSkip - (st::settingsSmallSkip / 2));
style::margins margin(0, 0, 0, 0);
style::margins slidedPadding(0, 0, 0, 0);
addChildRow(_mobileNumber, margin, slidedPadding, st::settingsBlockOneLineTextPart);
addChildRow(_username, margin, slidedPadding, st::settingsBlockOneLineTextPart);
addChildRow(_link, margin, slidedPadding, st::settingsBlockOneLineTextPart);