mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Fixed elision of user name in side menu.
This commit is contained in:
parent
63fc552636
commit
dc27bfff2d
1 changed files with 4 additions and 1 deletions
|
@ -250,6 +250,9 @@ void MainMenu::paintEvent(QPaintEvent *e) {
|
|||
auto clip = e->rect();
|
||||
auto cover = QRect(0, 0, width(), st::mainMenuCoverHeight).intersected(clip);
|
||||
if (!cover.isEmpty()) {
|
||||
const auto widthText = _cloudButton
|
||||
? _cloudButton->x() - st::mainMenuCloudSize
|
||||
: width() - 2 * st::mainMenuCoverTextLeft;
|
||||
p.fillRect(cover, st::mainMenuCoverBg);
|
||||
p.setPen(st::mainMenuCoverFg);
|
||||
p.setFont(st::semiboldFont);
|
||||
|
@ -257,7 +260,7 @@ void MainMenu::paintEvent(QPaintEvent *e) {
|
|||
p,
|
||||
st::mainMenuCoverTextLeft,
|
||||
st::mainMenuCoverNameTop,
|
||||
width() - 2 * st::mainMenuCoverTextLeft,
|
||||
widthText,
|
||||
width());
|
||||
p.setFont(st::normalFont);
|
||||
p.drawTextLeft(st::mainMenuCoverTextLeft, st::mainMenuCoverStatusTop, width(), _phoneText);
|
||||
|
|
Loading…
Add table
Reference in a new issue