mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Make nicer footer in starref boxes.
This commit is contained in:
parent
d8892c4eb4
commit
4cafb3f966
2 changed files with 2 additions and 1 deletions
|
@ -296,6 +296,7 @@ void AddFullWidthButtonFooter(
|
||||||
button->parentWidget(),
|
button->parentWidget(),
|
||||||
std::move(text),
|
std::move(text),
|
||||||
st::starrefJoinFooter);
|
st::starrefJoinFooter);
|
||||||
|
footer->setTryMakeSimilarLines(true);
|
||||||
button->geometryValue() | rpl::start_with_next([=](QRect geometry) {
|
button->geometryValue() | rpl::start_with_next([=](QRect geometry) {
|
||||||
footer->resizeToWidth(geometry.width());
|
footer->resizeToWidth(geometry.width());
|
||||||
const auto &st = box->getDelegate()->style();
|
const auto &st = box->getDelegate()->style();
|
||||||
|
|
|
@ -436,7 +436,7 @@ starrefJoinUserpicsPadding: margins(0px, 32px, 0px, 10px);
|
||||||
starrefJoinTitlePadding: margins(0px, 0px, 0px, 12px);
|
starrefJoinTitlePadding: margins(0px, 0px, 0px, 12px);
|
||||||
starrefCenteredText: FlatLabel(defaultFlatLabel) {
|
starrefCenteredText: FlatLabel(defaultFlatLabel) {
|
||||||
align: align(top);
|
align: align(top);
|
||||||
minWidth: 240px;
|
minWidth: 40px;
|
||||||
}
|
}
|
||||||
starrefJoinFooter: FlatLabel(starrefCenteredText) {
|
starrefJoinFooter: FlatLabel(starrefCenteredText) {
|
||||||
textFg: windowSubTextFg;
|
textFg: windowSubTextFg;
|
||||||
|
|
Loading…
Add table
Reference in a new issue