2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Slightly improved style of premium settings.

This commit is contained in:
23rd
2022-05-24 06:14:52 +03:00
parent c123f9e119
commit ee9a04393e
3 changed files with 6 additions and 4 deletions

View File

@@ -381,12 +381,12 @@ void Premium::setStepDataReference(std::any &data) {
void Premium::setupContent() {
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
AddSkip(content);
const auto &st = st::settingsButton;
const auto &stLabel = st::defaultFlatLabel;
const auto iconSize = st::settingsPremiumIconDouble.size();
AddSkip(content, st.padding.top());
auto entryMap = EntryMap();
auto iconContainers = std::vector<Ui::AbstractButton*>();
iconContainers.reserve(int(entryMap.size()));
@@ -395,6 +395,7 @@ void Premium::setupContent() {
titlePadding.setBottom(0);
auto descriptionPadding = st.padding;
descriptionPadding.setTop(0);
descriptionPadding.setRight(st::settingsPremiumLabelDescriptionRightSkip);
const auto addRow = [&](
rpl::producer<QString> &&title,
rpl::producer<QString> &&text) {
@@ -514,7 +515,7 @@ void Premium::setupContent() {
tr::lng_premium_summary_bottom_about(Ui::Text::RichLangValue),
st::aboutLabel),
st::boxRowPadding);
AddSkip(content);
AddSkip(content, st.padding.top() + st.padding.bottom());
Ui::ResizeFitChild(this, content);