mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Increase minimal main menu footer height.
This commit is contained in:
parent
d15af0c5f0
commit
1c060f40c1
2 changed files with 2 additions and 1 deletions
|
@ -116,6 +116,7 @@ mainMenuCoverNameTop: 84px;
|
||||||
mainMenuCoverStatusLeft: 24px;
|
mainMenuCoverStatusLeft: 24px;
|
||||||
mainMenuCoverStatusTop: 103px;
|
mainMenuCoverStatusTop: 103px;
|
||||||
mainMenuSkip: 6px;
|
mainMenuSkip: 6px;
|
||||||
|
mainMenuFooterHeightMin: 80px;
|
||||||
mainMenu: Menu(defaultMenu) {
|
mainMenu: Menu(defaultMenu) {
|
||||||
itemFg: windowBoldFg;
|
itemFg: windowBoldFg;
|
||||||
itemFgOver: windowBoldFgOver;
|
itemFgOver: windowBoldFgOver;
|
||||||
|
|
|
@ -1094,7 +1094,7 @@ void MainMenu::updateInnerControlsGeometry() {
|
||||||
const auto available = height() - st::mainMenuCoverHeight - contentHeight;
|
const auto available = height() - st::mainMenuCoverHeight - contentHeight;
|
||||||
const auto footerHeight = std::max(
|
const auto footerHeight = std::max(
|
||||||
available,
|
available,
|
||||||
st::mainMenuTelegramBottom + _telegram->height() + st::mainMenuSkip);
|
st::mainMenuFooterHeightMin);
|
||||||
if (_footer->height() != footerHeight) {
|
if (_footer->height() != footerHeight) {
|
||||||
_footer->resize(_footer->width(), footerHeight);
|
_footer->resize(_footer->width(), footerHeight);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue