mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-04 05:17:55 +00:00
Slightly improved style of section for group stickers.
This commit is contained in:
parent
e3e380124d
commit
a64b8d4181
@ -544,38 +544,36 @@ object_ptr<Ui::RpWidget> Controller::createStickersEdit() {
|
||||
Expects(_wrap != nullptr);
|
||||
|
||||
const auto channel = _peer->asChannel();
|
||||
const auto bottomSkip = st::editPeerTopButtonsLayoutSkipCustomBottom;
|
||||
|
||||
auto result = object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(
|
||||
_wrap,
|
||||
object_ptr<Ui::VerticalLayout>(_wrap),
|
||||
st::editPeerInvitesMargins);
|
||||
object_ptr<Ui::VerticalLayout>(_wrap));
|
||||
const auto container = result->entity();
|
||||
|
||||
container->add(object_ptr<Ui::FlatLabel>(
|
||||
Settings::AddSubsectionTitle(
|
||||
container,
|
||||
tr::lng_group_stickers(),
|
||||
st::editPeerSectionLabel));
|
||||
container->add(object_ptr<Ui::FixedHeightWidget>(
|
||||
container,
|
||||
st::editPeerInviteLinkSkip));
|
||||
{ 0, st::settingsSubsectionTitlePadding.top() - bottomSkip, 0, 0 });
|
||||
|
||||
container->add(object_ptr<Ui::FlatLabel>(
|
||||
AddButtonWithCount(
|
||||
container,
|
||||
tr::lng_group_stickers_description(),
|
||||
st::editPeerPrivacyLabel));
|
||||
container->add(object_ptr<Ui::FixedHeightWidget>(
|
||||
container,
|
||||
st::editPeerInviteLinkSkip));
|
||||
tr::lng_group_stickers_add(),
|
||||
rpl::single(QString()), //Empty count.
|
||||
[=, controller = _navigation->parentController()] {
|
||||
controller->show(
|
||||
Box<StickersBox>(controller, channel),
|
||||
Ui::LayerOption::KeepOther);
|
||||
},
|
||||
{ &st::settingsIconStickers, Settings::kIconLightOrange });
|
||||
|
||||
container->add(object_ptr<Ui::LinkButton>(
|
||||
_wrap,
|
||||
tr::lng_group_stickers_add(tr::now),
|
||||
st::editPeerInviteLinkButton)
|
||||
)->addClickHandler([=] {
|
||||
_navigation->parentController()->show(
|
||||
Box<StickersBox>(_navigation->parentController(), channel),
|
||||
Ui::LayerOption::KeepOther);
|
||||
});
|
||||
Settings::AddSkip(container, bottomSkip);
|
||||
|
||||
Settings::AddDividerText(
|
||||
container,
|
||||
tr::lng_group_stickers_description());
|
||||
|
||||
Settings::AddSkip(container, bottomSkip);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -623,13 +623,6 @@ editPeerPrivacyBoxCheckbox: Checkbox(defaultBoxCheckbox) {
|
||||
editPeerHistoryVisibilityLabelMargins: margins(34px, 0px, 48px, 0px);
|
||||
editPeerPrivacyLabelMargins: margins(42px, 0px, 34px, 0px);
|
||||
editPeerPreHistoryLabelMargins: margins(34px, 0px, 34px, 0px);
|
||||
editPeerSectionLabel: FlatLabel(boxTitle) {
|
||||
style: TextStyle(defaultTextStyle) {
|
||||
font: font(15px semibold);
|
||||
linkFont: font(15px semibold);
|
||||
linkFontOver: font(15px semibold underline);
|
||||
}
|
||||
}
|
||||
editPeerUsernameTitleLabelMargins: margins(22px, 17px, 22px, 10px);
|
||||
editPeerUsernameFieldMargins: margins(22px, 0px, 22px, 20px);
|
||||
editPeerUsername: setupChannelLink;
|
||||
@ -638,7 +631,6 @@ editPeerInviteLink: FlatLabel(defaultFlatLabel) {
|
||||
minWidth: 1px; // for break everywhere
|
||||
style: boxTextStyle;
|
||||
}
|
||||
editPeerInviteLinkButton: boxLinkButton;
|
||||
editPeerUsernameGood: FlatLabel(defaultFlatLabel) {
|
||||
textFg: boxTextFgGood;
|
||||
style: boxTextStyle;
|
||||
@ -647,11 +639,6 @@ editPeerUsernameError: FlatLabel(editPeerUsernameGood) {
|
||||
textFg: boxTextFgError;
|
||||
}
|
||||
editPeerUsernamePosition: point(22px, 18px);
|
||||
editPeerInviteLinkSkip: 10px;
|
||||
editPeerInvitesMargins: margins(22px, 17px, 22px, 16px);
|
||||
editPeerInvitesTopSkip: 10px;
|
||||
editPeerInvitesSkip: 10px;
|
||||
editPeerInviteLinkBoxBottomSkip: 15px;
|
||||
|
||||
editPeerReactionsButton: SettingsButton(infoProfileButton) {
|
||||
padding: margins(59px, 13px, 8px, 11px);
|
||||
|
Loading…
Reference in New Issue
Block a user