From bbc72f752a1435ff867f941e242426ae2fbb7cd9 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 14 Mar 2022 13:39:50 +0300 Subject: [PATCH] Provided separated style for general labels in ShareBox. --- Telegram/SourceFiles/boxes/share_box.cpp | 2 +- Telegram/SourceFiles/boxes/share_box.h | 1 + Telegram/SourceFiles/calls/group/calls_group_settings.cpp | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/share_box.cpp b/Telegram/SourceFiles/boxes/share_box.cpp index d10e357412..637007a546 100644 --- a/Telegram/SourceFiles/boxes/share_box.cpp +++ b/Telegram/SourceFiles/boxes/share_box.cpp @@ -269,7 +269,7 @@ void ShareBox::prepareCommentField() { _show, _descriptor.session, field, - _descriptor.stComment)); + _descriptor.stLabel)); } field->setSubmitSettings(Core::App().settings().sendSubmitWay()); diff --git a/Telegram/SourceFiles/boxes/share_box.h b/Telegram/SourceFiles/boxes/share_box.h index 7feb45281e..053c5893df 100644 --- a/Telegram/SourceFiles/boxes/share_box.h +++ b/Telegram/SourceFiles/boxes/share_box.h @@ -88,6 +88,7 @@ public: const style::MultiSelect *stMultiSelect = nullptr; const style::InputField *stComment = nullptr; const style::PeerList *st = nullptr; + const style::InputField *stLabel = nullptr; struct { int messagesCount = 0; bool show = false; diff --git a/Telegram/SourceFiles/calls/group/calls_group_settings.cpp b/Telegram/SourceFiles/calls/group/calls_group_settings.cpp index 7a1b178db7..226583a22b 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_settings.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_settings.cpp @@ -227,8 +227,9 @@ object_ptr ShareInviteLinkBox( tr::lng_group_call_copy_speaker_link(), tr::lng_group_call_copy_listener_link()), .stMultiSelect = &st::groupCallMultiSelect, - .stComment = &/*st::groupCallShareBoxComment*/st::groupCallField, + .stComment = &st::groupCallShareBoxComment, .st = &st::groupCallShareBoxList, + .stLabel = &st::groupCallField, .scheduleBoxStyle = scheduleStyle(), }); *box = result.data();