mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Adjust main settings buttons geometry to the mockup.
This commit is contained in:
parent
340db7662b
commit
1468be0af4
3 changed files with 8 additions and 9 deletions
|
@ -385,7 +385,7 @@ infoProfileButton: SettingsButton(defaultSettingsButton) {
|
||||||
|
|
||||||
toggle: infoProfileToggle;
|
toggle: infoProfileToggle;
|
||||||
toggleOver: infoProfileToggleOver;
|
toggleOver: infoProfileToggleOver;
|
||||||
toggleSkip: 22px;
|
toggleSkip: 20px;
|
||||||
|
|
||||||
ripple: defaultRippleAnimation;
|
ripple: defaultRippleAnimation;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ using "boxes/boxes.style";
|
||||||
|
|
||||||
settingsSectionButton: SettingsButton(infoProfileButton) {
|
settingsSectionButton: SettingsButton(infoProfileButton) {
|
||||||
font: boxTextFont;
|
font: boxTextFont;
|
||||||
padding: margins(79px, 13px, 22px, 11px);
|
padding: margins(60px, 11px, 22px, 9px);
|
||||||
}
|
}
|
||||||
settingsButton: SettingsButton(settingsSectionButton) {
|
settingsButton: SettingsButton(settingsSectionButton) {
|
||||||
padding: margins(22px, 10px, 22px, 8px);
|
padding: margins(22px, 10px, 22px, 8px);
|
||||||
|
@ -28,12 +28,13 @@ settingsOptionDisabled: SettingsButton(settingsButton) {
|
||||||
textBgOver: windowBg;
|
textBgOver: windowBg;
|
||||||
toggleOver: infoProfileToggle;
|
toggleOver: infoProfileToggle;
|
||||||
}
|
}
|
||||||
settingsSectionSkip: 9px;
|
settingsSectionSkip: 5px;
|
||||||
|
settingsSectionBottomSkip: 7px;
|
||||||
settingsSectionIconLeft: 22px;
|
settingsSectionIconLeft: 22px;
|
||||||
settingsSeparatorPadding: margins(22px, infoProfileSkip, 0px, infoProfileSkip);
|
settingsSeparatorPadding: margins(22px, infoProfileSkip, 0px, infoProfileSkip);
|
||||||
settingsButtonRightSkip: 28px;
|
settingsButtonRightSkip: 23px;
|
||||||
settingsScalePadding: margins(79px, 10px, 28px, 8px);
|
settingsScalePadding: margins(63px, 8px, 21px, 5px);
|
||||||
settingsBigScalePadding: margins(22px, 10px, 22px, 8px);
|
settingsBigScalePadding: margins(21px, 8px, 21px, 5px);
|
||||||
settingsSlider: SettingsSlider(defaultSettingsSlider) {
|
settingsSlider: SettingsSlider(defaultSettingsSlider) {
|
||||||
barFg: windowBgOver;
|
barFg: windowBgOver;
|
||||||
labelFg: windowSubTextFg;
|
labelFg: windowSubTextFg;
|
||||||
|
|
|
@ -319,7 +319,7 @@ void SetupSections(
|
||||||
|
|
||||||
SetupLanguageButton(container);
|
SetupLanguageButton(container);
|
||||||
|
|
||||||
AddSkip(container);
|
AddSkip(container, st::settingsSectionBottomSkip);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HasInterfaceScale() {
|
bool HasInterfaceScale() {
|
||||||
|
@ -499,8 +499,6 @@ void SetupHelp(
|
||||||
box->setStrictCancel(true);
|
box->setStrictCancel(true);
|
||||||
controller->show(std::move(box));
|
controller->show(std::move(box));
|
||||||
});
|
});
|
||||||
|
|
||||||
AddSkip(container);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Main::Main(
|
Main::Main(
|
||||||
|
|
Loading…
Add table
Reference in a new issue