mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
if (right) {
|
||||||
const auto skip = st::chatGiveawayPeerPadding.right();
|
const auto skip = st::chatGiveawayPeerPadding.right();
|
||||||
const auto icon = &st::starrefRecipientArrow;
|
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([=] {
|
right->paintRequest() | rpl::start_with_next([=] {
|
||||||
auto p = QPainter(right);
|
auto p = QPainter(right);
|
||||||
icon->paint(p, skip, 0, right->width());
|
icon->paint(
|
||||||
|
p,
|
||||||
|
skip,
|
||||||
|
(height - icon->height()) / 2,
|
||||||
|
right->width());
|
||||||
}, right->lifetime());
|
}, right->lifetime());
|
||||||
}
|
}
|
||||||
const auto button = recipientWrap->add(
|
const auto button = recipientWrap->add(
|
||||||
|
|
|
@ -477,7 +477,7 @@ starrefLinkCountFont: font(10px bold);
|
||||||
starrefLinkCountPadding: margins(2px, 0px, 3px, 1px);
|
starrefLinkCountPadding: margins(2px, 0px, 3px, 1px);
|
||||||
starrefRecipientBg: lightButtonBgOver;
|
starrefRecipientBg: lightButtonBgOver;
|
||||||
starrefRecipientBgDisabled: windowBgOver;
|
starrefRecipientBgDisabled: windowBgOver;
|
||||||
starrefRecipientArrow: icon{{ "calendar_down", lightButtonFg }};
|
starrefRecipientArrow: icon{{ "intro_country_dropdown", lightButtonFg }};
|
||||||
|
|
||||||
starrefAddForBotIcon: icon {{ "menu/bot_add", lightButtonFg }};
|
starrefAddForBotIcon: icon {{ "menu/bot_add", lightButtonFg }};
|
||||||
starrefAddForBotIconPosition: point(23px, 2px);
|
starrefAddForBotIconPosition: point(23px, 2px);
|
||||||
|
|
Loading…
Add table
Reference in a new issue