mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Slightly improved style of box for sending GIF with caption.
This commit is contained in:
parent
bf9d90ca4e
commit
93ff0bdcff
2 changed files with 8 additions and 1 deletions
|
@ -129,7 +129,9 @@ namespace {
|
||||||
not_null<Window::SessionController*> controller) {
|
not_null<Window::SessionController*> controller) {
|
||||||
using Limit = HistoryView::Controls::CharactersLimitLabel;
|
using Limit = HistoryView::Controls::CharactersLimitLabel;
|
||||||
|
|
||||||
const auto wrap = box->verticalLayout()->add(
|
const auto bottomContainer = box->setPinnedToBottomContent(
|
||||||
|
object_ptr<Ui::VerticalLayout>(box));
|
||||||
|
const auto wrap = bottomContainer->add(
|
||||||
object_ptr<Ui::RpWidget>(box),
|
object_ptr<Ui::RpWidget>(box),
|
||||||
st::boxRowPadding);
|
st::boxRowPadding);
|
||||||
const auto input = Ui::CreateChild<Ui::InputField>(
|
const auto input = Ui::CreateChild<Ui::InputField>(
|
||||||
|
@ -233,6 +235,7 @@ void SendGifWithCaptionBox(
|
||||||
}
|
}
|
||||||
box->setTitle(tr::lng_send_gif_with_caption());
|
box->setTitle(tr::lng_send_gif_with_caption());
|
||||||
box->setWidth(st::boxWidth);
|
box->setWidth(st::boxWidth);
|
||||||
|
box->getDelegate()->setStyle(st::sendGifBox);
|
||||||
|
|
||||||
const auto container = box->verticalLayout();
|
const auto container = box->verticalLayout();
|
||||||
[[maybe_unused]] const auto gifWidget = AddGifWidget(
|
[[maybe_unused]] const auto gifWidget = AddGifWidget(
|
||||||
|
|
|
@ -1505,3 +1505,7 @@ pickLocationChooseOnMap: RoundButton(defaultActiveButton) {
|
||||||
font: font(15px semibold);
|
font: font(15px semibold);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendGifBox: Box(defaultBox) {
|
||||||
|
shadowIgnoreBottomSkip: true;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue