2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Rename Dialogs::Layout to Dialogs::Ui.

This commit is contained in:
John Preston
2021-10-01 14:57:24 +04:00
parent b78b27f517
commit 5136cc3c9c
10 changed files with 59 additions and 56 deletions

View File

@@ -156,7 +156,7 @@ private:
QImage _userpicCache;
base::unique_qptr<Ui::PopupMenu> _menu;
Dialogs::Layout::UnreadBadgeStyle _unreadSt;
Dialogs::Ui::UnreadBadgeStyle _unreadSt;
int _unreadBadge = 0;
bool _unreadBadgeMuted = true;
@@ -294,7 +294,7 @@ void MainMenu::AccountButton::paintEvent(QPaintEvent *e) {
- st::mainMenu.itemToggleShift;
const auto unreadRight = width() - skip;
const auto unreadTop = (height() - _unreadSt.size) / 2;
Dialogs::Layout::paintUnreadCount(
Dialogs::Ui::paintUnreadCount(
p,
string,
unreadRight,
@@ -435,7 +435,7 @@ void MainMenu::ToggleAccountsButton::paintUnreadBadge(QPainter &p) {
if (_unreadBadge.isEmpty()) {
return;
}
Dialogs::Layout::UnreadBadgeStyle st;
Dialogs::Ui::UnreadBadgeStyle st;
const auto right = width() - st::mainMenuTogglePosition.x() - st::mainMenuToggleSize * 2;
const auto top = height() - st::mainMenuTogglePosition.y() - st::mainMenuToggleSize;
@@ -473,7 +473,7 @@ void MainMenu::ToggleAccountsButton::validateUnreadBadge() {
}
_unreadBadge = computeUnreadBadge();
Dialogs::Layout::UnreadBadgeStyle st;
Dialogs::Ui::UnreadBadgeStyle st;
_unreadBadgeWidth = st.font->width(_unreadBadge);
const auto rectHeight = st.size;
const auto rectWidth = std::max(