mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Slightly improved style of premium settings.
This commit is contained in:
parent
c123f9e119
commit
ee9a04393e
3 changed files with 6 additions and 4 deletions
|
@ -448,3 +448,4 @@ settingsPremiumTopBarClose: IconButton(infoTopBarClose) {
|
||||||
color: shadowFg;
|
color: shadowFg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
settingsPremiumLabelDescriptionRightSkip: 46px;
|
||||||
|
|
|
@ -368,7 +368,7 @@ void SetupInterfaceScale(
|
||||||
container,
|
container,
|
||||||
tr::lng_settings_default_scale(),
|
tr::lng_settings_default_scale(),
|
||||||
icon ? st::settingsButton : st::settingsButtonNoIcon,
|
icon ? st::settingsButton : st::settingsButtonNoIcon,
|
||||||
{ icon ? &st::settingsIconInterfaceScale : nullptr, kIconLightBlue }
|
{ icon ? &st::settingsIconInterfaceScale : nullptr, kIconLightOrange }
|
||||||
)->toggleOn(toggled->events_starting_with_copy(switched));
|
)->toggleOn(toggled->events_starting_with_copy(switched));
|
||||||
|
|
||||||
const auto slider = container->add(
|
const auto slider = container->add(
|
||||||
|
|
|
@ -381,12 +381,12 @@ void Premium::setStepDataReference(std::any &data) {
|
||||||
void Premium::setupContent() {
|
void Premium::setupContent() {
|
||||||
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
|
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
|
||||||
|
|
||||||
AddSkip(content);
|
|
||||||
|
|
||||||
const auto &st = st::settingsButton;
|
const auto &st = st::settingsButton;
|
||||||
const auto &stLabel = st::defaultFlatLabel;
|
const auto &stLabel = st::defaultFlatLabel;
|
||||||
const auto iconSize = st::settingsPremiumIconDouble.size();
|
const auto iconSize = st::settingsPremiumIconDouble.size();
|
||||||
|
|
||||||
|
AddSkip(content, st.padding.top());
|
||||||
|
|
||||||
auto entryMap = EntryMap();
|
auto entryMap = EntryMap();
|
||||||
auto iconContainers = std::vector<Ui::AbstractButton*>();
|
auto iconContainers = std::vector<Ui::AbstractButton*>();
|
||||||
iconContainers.reserve(int(entryMap.size()));
|
iconContainers.reserve(int(entryMap.size()));
|
||||||
|
@ -395,6 +395,7 @@ void Premium::setupContent() {
|
||||||
titlePadding.setBottom(0);
|
titlePadding.setBottom(0);
|
||||||
auto descriptionPadding = st.padding;
|
auto descriptionPadding = st.padding;
|
||||||
descriptionPadding.setTop(0);
|
descriptionPadding.setTop(0);
|
||||||
|
descriptionPadding.setRight(st::settingsPremiumLabelDescriptionRightSkip);
|
||||||
const auto addRow = [&](
|
const auto addRow = [&](
|
||||||
rpl::producer<QString> &&title,
|
rpl::producer<QString> &&title,
|
||||||
rpl::producer<QString> &&text) {
|
rpl::producer<QString> &&text) {
|
||||||
|
@ -514,7 +515,7 @@ void Premium::setupContent() {
|
||||||
tr::lng_premium_summary_bottom_about(Ui::Text::RichLangValue),
|
tr::lng_premium_summary_bottom_about(Ui::Text::RichLangValue),
|
||||||
st::aboutLabel),
|
st::aboutLabel),
|
||||||
st::boxRowPadding);
|
st::boxRowPadding);
|
||||||
AddSkip(content);
|
AddSkip(content, st.padding.top() + st.padding.bottom());
|
||||||
|
|
||||||
Ui::ResizeFitChild(this, content);
|
Ui::ResizeFitChild(this, content);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue