mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Improve arrow down in choose recipient box.
This commit is contained in:
parent
cdc24d2e57
commit
f592a9202f
2 changed files with 9 additions and 3 deletions
|
@ -655,10 +655,16 @@ object_ptr<Ui::BoxContent> JoinStarRefBox(
|
|||
if (right) {
|
||||
const auto skip = st::chatGiveawayPeerPadding.right();
|
||||
const auto icon = &st::starrefRecipientArrow;
|
||||
right->resize(skip + icon->width(), icon->height());
|
||||
const auto height = st::chatGiveawayPeerSize
|
||||
- st::chatGiveawayPeerPadding.top() * 2;
|
||||
right->resize(skip + icon->width(), height);
|
||||
right->paintRequest() | rpl::start_with_next([=] {
|
||||
auto p = QPainter(right);
|
||||
icon->paint(p, skip, 0, right->width());
|
||||
icon->paint(
|
||||
p,
|
||||
skip,
|
||||
(height - icon->height()) / 2,
|
||||
right->width());
|
||||
}, right->lifetime());
|
||||
}
|
||||
const auto button = recipientWrap->add(
|
||||
|
|
|
@ -477,7 +477,7 @@ starrefLinkCountFont: font(10px bold);
|
|||
starrefLinkCountPadding: margins(2px, 0px, 3px, 1px);
|
||||
starrefRecipientBg: lightButtonBgOver;
|
||||
starrefRecipientBgDisabled: windowBgOver;
|
||||
starrefRecipientArrow: icon{{ "calendar_down", lightButtonFg }};
|
||||
starrefRecipientArrow: icon{{ "intro_country_dropdown", lightButtonFg }};
|
||||
|
||||
starrefAddForBotIcon: icon {{ "menu/bot_add", lightButtonFg }};
|
||||
starrefAddForBotIconPosition: point(23px, 2px);
|
||||
|
|
Loading…
Add table
Reference in a new issue