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