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

Improve edit privacy box design.

Also move calls peer-to-peer settings to EditPrivacyBox.
This commit is contained in:
John Preston
2018-09-19 12:06:21 +03:00
parent 3ba2a7931e
commit 9388e154cf
9 changed files with 316 additions and 409 deletions

View File

@@ -45,11 +45,11 @@ public:
MTPInputPrivacyKey apiKey() override;
QString title() override;
QString description() override;
QString warning() override;
QString exceptionLinkText(Exception exception, int count) override;
LangKey optionsTitleKey() override;
rpl::producer<QString> warning() override;
LangKey exceptionButtonTextKey(Exception exception) override;
QString exceptionBoxTitle(Exception exception) override;
QString exceptionsDescription() override;
rpl::producer<QString> exceptionsDescription() override;
void confirmSave(bool someAreDisallowed, FnMut<void()> saveCallback) override;
@@ -65,10 +65,10 @@ public:
QString title() override;
bool hasOption(Option option) override;
QString description() override;
QString exceptionLinkText(Exception exception, int count) override;
LangKey optionsTitleKey() override;
LangKey exceptionButtonTextKey(Exception exception) override;
QString exceptionBoxTitle(Exception exception) override;
QString exceptionsDescription() override;
rpl::producer<QString> exceptionsDescription() override;
};
@@ -81,10 +81,13 @@ public:
MTPInputPrivacyKey apiKey() override;
QString title() override;
QString description() override;
QString exceptionLinkText(Exception exception, int count) override;
LangKey optionsTitleKey() override;
LangKey exceptionButtonTextKey(Exception exception) override;
QString exceptionBoxTitle(Exception exception) override;
QString exceptionsDescription() override;
rpl::producer<QString> exceptionsDescription() override;
Fn<void()> setupAdditional(
not_null<Ui::VerticalLayout*> container) override;
};