Moved settings menu
This commit is contained in:
parent
29610ddda2
commit
002a1db93a
4 changed files with 20 additions and 20 deletions
|
|
@ -852,8 +852,8 @@ PRIVATE
|
|||
settings/settings_information.h
|
||||
settings/settings_intro.cpp
|
||||
settings/settings_intro.h
|
||||
settings/settings_kotato.cpp
|
||||
settings/settings_kotato.h
|
||||
kotato/settings_menu.cpp
|
||||
kotato/settings_menu.h
|
||||
settings/settings_main.cpp
|
||||
settings/settings_main.h
|
||||
settings/settings_notifications.cpp
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ the unofficial app based on Telegram Desktop.
|
|||
For license and copyright information please follow this link:
|
||||
https://github.com/kotatogram/kotatogram-desktop/blob/dev/LEGAL
|
||||
*/
|
||||
#include "settings/settings_kotato.h"
|
||||
#include "kotato/settings_menu.h"
|
||||
|
||||
#include "settings/settings_common.h"
|
||||
#include "settings/settings_chat.h"
|
||||
|
|
@ -64,7 +64,7 @@ void SetupKotatoChats(not_null<Ui::VerticalLayout*> container) {
|
|||
const auto updateRecentStickersLimitHeight = [=](int value) {
|
||||
updateRecentStickersLimitLabel(value);
|
||||
SetRecentStickersLimit(value);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
};
|
||||
recentStickersLimitSlider->resize(st::settingsAudioVolumeSlider.seekSize);
|
||||
recentStickersLimitSlider->setPseudoDiscrete(
|
||||
|
|
@ -85,7 +85,7 @@ void SetupKotatoChats(not_null<Ui::VerticalLayout*> container) {
|
|||
return (enabled != cProfileTopBarNotifications());
|
||||
}) | rpl::start_with_next([](bool enabled) {
|
||||
cSetProfileTopBarNotifications(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddButton(
|
||||
|
|
@ -99,7 +99,7 @@ void SetupKotatoChats(not_null<Ui::VerticalLayout*> container) {
|
|||
return (enabled != cDisableUpEdit());
|
||||
}) | rpl::start_with_next([](bool enabled) {
|
||||
cSetDisableUpEdit(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddButton(
|
||||
|
|
@ -113,7 +113,7 @@ void SetupKotatoChats(not_null<Ui::VerticalLayout*> container) {
|
|||
return (enabled != (DialogListLines() == 1));
|
||||
}) | rpl::start_with_next([](bool enabled) {
|
||||
SetDialogListLines(enabled ? 1 : 2);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddButton(
|
||||
|
|
@ -128,7 +128,7 @@ void SetupKotatoChats(not_null<Ui::VerticalLayout*> container) {
|
|||
}) | rpl::start_with_next([](bool enabled) {
|
||||
cSetAlwaysShowScheduled(enabled);
|
||||
Notify::showScheduledButtonChanged();
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddButton(
|
||||
|
|
@ -165,7 +165,7 @@ void SetupKotatoMessages(not_null<Ui::VerticalLayout*> container) {
|
|||
const auto updateStickerHeight = [=](int value) {
|
||||
updateStickerHeightLabel(value);
|
||||
SetStickerHeight(value);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
};
|
||||
stickerHeightSlider->resize(st::settingsAudioVolumeSlider.seekSize);
|
||||
stickerHeightSlider->setPseudoDiscrete(
|
||||
|
|
@ -186,7 +186,7 @@ void SetupKotatoMessages(not_null<Ui::VerticalLayout*> container) {
|
|||
return (enabled != AdaptiveBubbles());
|
||||
}) | rpl::start_with_next([](bool enabled) {
|
||||
SetAdaptiveBubbles(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddButton(
|
||||
|
|
@ -200,7 +200,7 @@ void SetupKotatoMessages(not_null<Ui::VerticalLayout*> container) {
|
|||
return (enabled != BigEmojiOutline());
|
||||
}) | rpl::start_with_next([](bool enabled) {
|
||||
SetBigEmojiOutline(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddSkip(container);
|
||||
|
|
@ -241,7 +241,7 @@ void SetupKotatoFolders(
|
|||
return (enabled != cUnmutedFilterCounterOnly());
|
||||
}) | rpl::start_with_next([=](bool enabled) {
|
||||
cSetUnmutedFilterCounterOnly(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
controller->reloadFiltersMenu();
|
||||
App::wnd()->fixOrder();
|
||||
}, container->lifetime());
|
||||
|
|
@ -257,7 +257,7 @@ void SetupKotatoFolders(
|
|||
return (enabled != cHideFilterAllChats());
|
||||
}) | rpl::start_with_next([=](bool enabled) {
|
||||
cSetHideFilterAllChats(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
controller->reloadFiltersMenu();
|
||||
App::wnd()->fixOrder();
|
||||
}, container->lifetime());
|
||||
|
|
@ -273,7 +273,7 @@ void SetupKotatoFolders(
|
|||
return (enabled != cHideFilterEditButton());
|
||||
}) | rpl::start_with_next([=](bool enabled) {
|
||||
cSetHideFilterEditButton(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
controller->reloadFiltersMenu();
|
||||
App::wnd()->fixOrder();
|
||||
}, container->lifetime());
|
||||
|
|
@ -289,7 +289,7 @@ void SetupKotatoFolders(
|
|||
return (enabled != cHideFilterNames());
|
||||
}) | rpl::start_with_next([=](bool enabled) {
|
||||
cSetHideFilterNames(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
controller->reloadFiltersMenu();
|
||||
App::wnd()->fixOrder();
|
||||
}, container->lifetime());
|
||||
|
|
@ -313,7 +313,7 @@ void SetupKotatoSystem(not_null<Ui::VerticalLayout*> container) {
|
|||
return (enabled != cNoTaskbarFlashing());
|
||||
}) | rpl::start_with_next([](bool enabled) {
|
||||
cSetNoTaskbarFlashing(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddSkip(container);
|
||||
|
|
@ -335,7 +335,7 @@ void SetupKotatoOther(not_null<Ui::VerticalLayout*> container) {
|
|||
return (enabled != cShowPhoneInDrawer());
|
||||
}) | rpl::start_with_next([](bool enabled) {
|
||||
cSetShowPhoneInDrawer(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddButton(
|
||||
|
|
@ -349,7 +349,7 @@ void SetupKotatoOther(not_null<Ui::VerticalLayout*> container) {
|
|||
return (enabled != cShowChatId());
|
||||
}) | rpl::start_with_next([](bool enabled) {
|
||||
cSetShowChatId(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddButton(
|
||||
|
|
@ -363,7 +363,7 @@ void SetupKotatoOther(not_null<Ui::VerticalLayout*> container) {
|
|||
return (enabled != cConfirmBeforeCall());
|
||||
}) | rpl::start_with_next([](bool enabled) {
|
||||
cSetConfirmBeforeCall(enabled);
|
||||
Kotato::JsonSettings::Write();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
|
||||
AddSkip(container);
|
||||
|
|
@ -15,7 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "settings/settings_privacy_security.h"
|
||||
#include "settings/settings_folders.h"
|
||||
#include "settings/settings_calls.h"
|
||||
#include "settings/settings_kotato.h"
|
||||
#include "kotato/settings_menu.h"
|
||||
#include "ui/wrap/padding_wrap.h"
|
||||
#include "ui/wrap/vertical_layout.h"
|
||||
#include "ui/widgets/labels.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue