mirror of https://github.com/procxx/kepka.git
Fixed elision of user name in side menu.
This commit is contained in:
parent
63fc552636
commit
dc27bfff2d
|
@ -250,6 +250,9 @@ void MainMenu::paintEvent(QPaintEvent *e) {
|
||||||
auto clip = e->rect();
|
auto clip = e->rect();
|
||||||
auto cover = QRect(0, 0, width(), st::mainMenuCoverHeight).intersected(clip);
|
auto cover = QRect(0, 0, width(), st::mainMenuCoverHeight).intersected(clip);
|
||||||
if (!cover.isEmpty()) {
|
if (!cover.isEmpty()) {
|
||||||
|
const auto widthText = _cloudButton
|
||||||
|
? _cloudButton->x() - st::mainMenuCloudSize
|
||||||
|
: width() - 2 * st::mainMenuCoverTextLeft;
|
||||||
p.fillRect(cover, st::mainMenuCoverBg);
|
p.fillRect(cover, st::mainMenuCoverBg);
|
||||||
p.setPen(st::mainMenuCoverFg);
|
p.setPen(st::mainMenuCoverFg);
|
||||||
p.setFont(st::semiboldFont);
|
p.setFont(st::semiboldFont);
|
||||||
|
@ -257,7 +260,7 @@ void MainMenu::paintEvent(QPaintEvent *e) {
|
||||||
p,
|
p,
|
||||||
st::mainMenuCoverTextLeft,
|
st::mainMenuCoverTextLeft,
|
||||||
st::mainMenuCoverNameTop,
|
st::mainMenuCoverNameTop,
|
||||||
width() - 2 * st::mainMenuCoverTextLeft,
|
widthText,
|
||||||
width());
|
width());
|
||||||
p.setFont(st::normalFont);
|
p.setFont(st::normalFont);
|
||||||
p.drawTextLeft(st::mainMenuCoverTextLeft, st::mainMenuCoverStatusTop, width(), _phoneText);
|
p.drawTextLeft(st::mainMenuCoverTextLeft, st::mainMenuCoverStatusTop, width(), _phoneText);
|
||||||
|
|
Loading…
Reference in New Issue