mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
fix: prettify settings a bit
This commit is contained in:
parent
66b1fe7beb
commit
c9fa0166e6
3 changed files with 17 additions and 10 deletions
|
@ -21,3 +21,5 @@ cpImagePadding: 4px;
|
|||
cpSpacingX: 16px;
|
||||
cpSpacingY: 8px;
|
||||
cpIconSize: 64px;
|
||||
|
||||
recentStickersLimitPadding: margins(22px, 4px, 22px, 8px);
|
||||
|
|
|
@ -30,13 +30,12 @@
|
|||
#include "styles/style_basic.h"
|
||||
#include "styles/style_boxes.h"
|
||||
#include "styles/style_info.h"
|
||||
#include "styles/style_menu_icons.h"
|
||||
#include "styles/style_settings.h"
|
||||
#include "styles/style_widgets.h"
|
||||
#include "styles/style_ayu_styles.h"
|
||||
|
||||
#include "icon_picker.h"
|
||||
#include "ui/painter.h"
|
||||
#include "ui/boxes/confirm_box.h"
|
||||
#include "ui/boxes/single_choice_box.h"
|
||||
#include "ui/text/text_utilities.h"
|
||||
#include "ui/toast/toast.h"
|
||||
|
@ -710,8 +709,16 @@ void Ayu::SetupCustomization(not_null<Ui::VerticalLayout *> container,
|
|||
Ui::show(std::move(box));
|
||||
});
|
||||
|
||||
AddSkip(container);
|
||||
AddDivider(container);
|
||||
AddSkip(container);
|
||||
|
||||
SetupRecentStickersLimitSlider(container);
|
||||
|
||||
AddSkip(container);
|
||||
AddDivider(container);
|
||||
AddSkip(container);
|
||||
|
||||
SetupShowPeerId(container, controller);
|
||||
|
||||
AddButtonWithIcon(
|
||||
|
@ -938,17 +945,15 @@ void Ayu::SetupRecentStickersLimitSlider(not_null<Ui::VerticalLayout *> containe
|
|||
object_ptr<Button>(container,
|
||||
tr::ayu_SettingsRecentStickersCount(),
|
||||
st::settingsButtonNoIcon)
|
||||
);
|
||||
)->setAttribute(Qt::WA_TransparentForMouseEvents);
|
||||
|
||||
auto recentStickersLimitSlider = MakeSliderWithLabel(
|
||||
container,
|
||||
st::settingsScale,
|
||||
st::autoDownloadLimitSlider,
|
||||
st::settingsScaleLabel,
|
||||
st::normalFont->spacew * 2,
|
||||
st::settingsScaleLabel.style.font->width("300%"));
|
||||
container->add(
|
||||
std::move(recentStickersLimitSlider.widget),
|
||||
st::settingsScalePadding);
|
||||
0,
|
||||
st::settingsScaleLabel.style.font->width("30%"));
|
||||
container->add(std::move(recentStickersLimitSlider.widget), st::recentStickersLimitPadding);
|
||||
const auto slider = recentStickersLimitSlider.slider;
|
||||
const auto label = recentStickersLimitSlider.label;
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 87675c6e7195b403987111abf381915f2c09c41d
|
||||
Subproject commit 9d5fb8a717d2f0aa98fa291e908e0db40e1b5b8a
|
Loading…
Add table
Reference in a new issue