mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Improve "Open" bot button in suggestions.
This commit is contained in:
parent
01d927aceb
commit
d09d1d72e6
2 changed files with 5 additions and 2 deletions
|
@ -127,7 +127,7 @@ dialogRowOpenBot: DialogRightButton {
|
||||||
margin: margins(0px, 32px, 10px, 0px);
|
margin: margins(0px, 32px, 10px, 0px);
|
||||||
}
|
}
|
||||||
dialogRowOpenBotRecent: DialogRightButton(dialogRowOpenBot) {
|
dialogRowOpenBotRecent: DialogRightButton(dialogRowOpenBot) {
|
||||||
margin: margins(0px, 32px, 28px, 0px);
|
margin: margins(0px, 32px, 16px, 0px);
|
||||||
}
|
}
|
||||||
|
|
||||||
forumDialogJumpArrow: icon{{ "dialogs/dialogs_topic_arrow", dialogsTextFg }};
|
forumDialogJumpArrow: icon{{ "dialogs/dialogs_topic_arrow", dialogsTextFg }};
|
||||||
|
|
|
@ -282,7 +282,10 @@ QSize RecentRow::rightActionSize() const {
|
||||||
|
|
||||||
QMargins RecentRow::rightActionMargins() const {
|
QMargins RecentRow::rightActionMargins() const {
|
||||||
if (_mainAppText && _badgeSize.isEmpty()) {
|
if (_mainAppText && _badgeSize.isEmpty()) {
|
||||||
return st::dialogRowOpenBotRecent.margin;
|
const auto &st = st::dialogRowOpenBotRecent;
|
||||||
|
auto margins = st.margin;
|
||||||
|
margins.setTop((st::recentPeersItem.height - st.button.height) / 2);
|
||||||
|
return margins;
|
||||||
} else if (_badgeSize.isEmpty()) {
|
} else if (_badgeSize.isEmpty()) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue