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

Add some icons to Advanced settings.

This commit is contained in:
John Preston
2022-02-18 19:26:57 +03:00
parent 3c2caeb43a
commit f5b8683b33
8 changed files with 64 additions and 29 deletions

View File

@@ -74,7 +74,8 @@ void SetupConnectionType(
// Handle language switch.
tr::lng_connection_auto_connecting() | rpl::to_empty
) | rpl::map(connectionType),
st::settingsButtonNoIcon);
st::settingsButton,
{ &st::settingsIconArrows, kIconGreen });
button->addClickHandler([=] {
controller->show(ProxiesBoxController::CreateOwningBox(account));
});
@@ -747,14 +748,6 @@ void Advanced::setupContent(not_null<Window::SessionController*> controller) {
if (!cAutoUpdate()) {
addUpdate();
}
addDivider();
AddSkip(content);
AddSubsectionTitle(content, tr::lng_settings_network_proxy());
SetupConnectionType(
&controller->window(),
&controller->session().account(),
content);
AddSkip(content);
SetupDataStorage(controller, content);
SetupAutoDownload(controller, content);
SetupSystemIntegration(controller, content, [=](Type type) {
@@ -779,6 +772,11 @@ void Advanced::setupContent(not_null<Window::SessionController*> controller) {
addUpdate();
}
AddSkip(content);
AddDivider(content);
AddSkip(content);
SetupExport(controller, content);
Ui::ResizeFitChild(this, content);
}