mirror of https://github.com/procxx/kepka.git
Fix a couple of layout bugs for username edit.
This commit is contained in:
parent
7ff175a81e
commit
f283aa033b
|
@ -567,7 +567,8 @@ passcodeTextStyle: TextStyle(defaultTextStyle) {
|
||||||
|
|
||||||
usernamePadding: margins(23px, 6px, 21px, 12px);
|
usernamePadding: margins(23px, 6px, 21px, 12px);
|
||||||
usernameSkip: 49px;
|
usernameSkip: 49px;
|
||||||
usernameTextStyle: boxTextStyle;
|
usernameTextStyle: TextStyle(boxTextStyle, passcodeTextStyle) {
|
||||||
|
}
|
||||||
usernameDefaultFg: windowSubTextFg;
|
usernameDefaultFg: windowSubTextFg;
|
||||||
|
|
||||||
downloadPathSkip: 10px;
|
downloadPathSkip: 10px;
|
||||||
|
|
|
@ -44,8 +44,8 @@ InfoWidget::InfoWidget(QWidget *parent, UserData *self) : BlockWidget(parent, se
|
||||||
}
|
}
|
||||||
|
|
||||||
void InfoWidget::createControls() {
|
void InfoWidget::createControls() {
|
||||||
style::margins margin(0, -st::settingsBlockOneLineTextPart.margin.top(), 0, st::settingsSmallSkip - st::settingsBlockOneLineTextPart.margin.bottom());
|
style::margins margin(0, 0, 0, 0);
|
||||||
style::margins slidedPadding(0, st::settingsSmallSkip / 2, 0, st::settingsSmallSkip - (st::settingsSmallSkip / 2));
|
style::margins slidedPadding(0, 0, 0, 0);
|
||||||
addChildRow(_mobileNumber, margin, slidedPadding, st::settingsBlockOneLineTextPart);
|
addChildRow(_mobileNumber, margin, slidedPadding, st::settingsBlockOneLineTextPart);
|
||||||
addChildRow(_username, margin, slidedPadding, st::settingsBlockOneLineTextPart);
|
addChildRow(_username, margin, slidedPadding, st::settingsBlockOneLineTextPart);
|
||||||
addChildRow(_link, margin, slidedPadding, st::settingsBlockOneLineTextPart);
|
addChildRow(_link, margin, slidedPadding, st::settingsBlockOneLineTextPart);
|
||||||
|
|
Loading…
Reference in New Issue