mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Allow folders submenu to have a scroll.
This commit is contained in:
parent
827040f487
commit
4121c99f36
5 changed files with 10 additions and 6 deletions
Telegram
SourceFiles
lib_ui
|
@ -1127,3 +1127,10 @@ profileQrBackgroundRadius: 12px;
|
|||
profileQrIcon: icon{{ "qr_mini", windowActiveTextFg }};
|
||||
profileQrBackgroundMargins: margins(36px, 12px, 36px, 12px);
|
||||
profileQrBackgroundPadding: margins(0px, 24px, 0px, 24px);
|
||||
|
||||
foldersMenu: PopupMenu(popupMenuWithIcons) {
|
||||
maxHeight: 320px;
|
||||
menu: Menu(menuWithIcons) {
|
||||
itemPadding: margins(54px, 8px, 44px, 8px);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -290,7 +290,7 @@ void FillChooseFilterMenu(
|
|||
const auto title = filter.title();
|
||||
auto item = base::make_unique_q<FilterAction>(
|
||||
menu.get(),
|
||||
st::foldersMenu,
|
||||
menu->st().menu,
|
||||
Ui::Menu::CreateAction(
|
||||
menu.get(),
|
||||
Ui::Text::FixAmpersandInAction(title.text.text),
|
||||
|
|
|
@ -789,7 +789,3 @@ dialogsPopularAppsPadding: margins(10px, 8px, 10px, 12px);
|
|||
dialogsPopularAppsAbout: FlatLabel(boxDividerLabel) {
|
||||
minWidth: 128px;
|
||||
}
|
||||
|
||||
foldersMenu: Menu(menuWithIcons) {
|
||||
itemPadding: margins(54px, 8px, 44px, 8px);
|
||||
}
|
||||
|
|
|
@ -633,6 +633,7 @@ void Filler::addToggleFolder() {
|
|||
.fillSubmenu = [&](not_null<Ui::PopupMenu*> menu) {
|
||||
FillChooseFilterMenu(controller, menu, history);
|
||||
},
|
||||
.submenuSt = &st::foldersMenu,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit cfecbd3df4c1d0bfba3d708dfb49387c8ae2127b
|
||||
Subproject commit da0d634ec373d8ba0b8f66f3381a87e43edffdf2
|
Loading…
Add table
Reference in a new issue