Slightly improved style of box for sending GIF with caption.

This commit is contained in:
23rd 2024-09-09 12:25:35 +03:00
parent bf9d90ca4e
commit 93ff0bdcff
2 changed files with 8 additions and 1 deletions

View file

@ -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(

View file

@ -1505,3 +1505,7 @@ pickLocationChooseOnMap: RoundButton(defaultActiveButton) {
font: font(15px semibold); font: font(15px semibold);
} }
} }
sendGifBox: Box(defaultBox) {
shadowIgnoreBottomSkip: true;
}