mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Improve name elision in the main menu cover.
This commit is contained in:
parent
4f44692ae8
commit
db6a9b0354
1 changed files with 6 additions and 4 deletions
|
@ -253,10 +253,12 @@ void MainMenu::ToggleAccountsButton::validateUnreadBadge() {
|
|||
}
|
||||
_unreadBadge = computeUnreadBadge();
|
||||
|
||||
auto st = Settings::BadgeStyle();
|
||||
_rightSkip = base
|
||||
+ Dialogs::Ui::CountUnreadBadgeSize(_unreadBadge, st).width()
|
||||
+ 2 * st::mainMenuToggleSize;
|
||||
_rightSkip = base;
|
||||
if (!_unreadBadge.isEmpty()) {
|
||||
const auto st = Settings::BadgeStyle();
|
||||
_rightSkip += 2 * st::mainMenuToggleSize
|
||||
+ Dialogs::Ui::CountUnreadBadgeSize(_unreadBadge, st).width();
|
||||
}
|
||||
}
|
||||
|
||||
QString MainMenu::ToggleAccountsButton::computeUnreadBadge() const {
|
||||
|
|
Loading…
Add table
Reference in a new issue