mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: icon picker bottom clip
This commit is contained in:
@@ -58,7 +58,8 @@ IconPicker::IconPicker(QWidget *parent)
|
||||
widthValue() | rpl::on_next([=](int w) {
|
||||
const auto cell = w / kColumns;
|
||||
const auto iconSize = st::iconPickerIconSize;
|
||||
const auto h = rows * cell - (cell - iconSize);
|
||||
const auto contentSize = iconSize + st::iconPickerImagePadding * 2;
|
||||
const auto h = rows * cell - (cell - contentSize);
|
||||
resize(w, h);
|
||||
}, lifetime());
|
||||
}
|
||||
|
||||
@@ -70,7 +70,6 @@ void BuildAppIcon(SectionBuilder &builder, AyuSectionBuilder &ayu) {
|
||||
.keywords = { u"icon"_q, u"app"_q, u"logo"_q },
|
||||
};
|
||||
});
|
||||
builder.addSkip();
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
builder.addDivider();
|
||||
|
||||
Reference in New Issue
Block a user