2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Fix client side generated changelogs display.

Also use message date if available in MediaView.
This commit is contained in:
John Preston
2018-09-27 23:31:48 +03:00
parent 352fc55234
commit a70613d929
17 changed files with 141 additions and 198 deletions

View File

@@ -707,30 +707,6 @@ void SetupChatBackground(not_null<Ui::VerticalLayout*> container) {
}, adaptive->lifetime());
}
void SetupNightMode(not_null<Ui::VerticalLayout*> container) {
const auto calling = Ui::AttachAsChild(container, 0);
AddButton(
container,
lng_settings_use_night_mode,
st::settingsButton
)->toggleOn(
rpl::single(Window::Theme::IsNightMode())
)->toggledValue(
) | rpl::start_with_next([=](bool toggled) {
++*calling;
const auto change = [=] {
if (!--*calling && toggled != Window::Theme::IsNightMode()) {
Window::Theme::ToggleNightMode();
Window::Theme::KeepApplied();
}
};
App::CallDelayed(
st::settingsButton.toggle.duration,
container,
change);
}, container->lifetime());
}
void SetupUseDefaultTheme(not_null<Ui::VerticalLayout*> container) {
using Update = const Window::Theme::BackgroundUpdate;
container->add(
@@ -940,7 +916,6 @@ void SetupThemeOptions(not_null<Ui::VerticalLayout*> container) {
AddSubsectionTitle(container, lng_settings_themes);
SetupDefaultThemes(container);
//SetupNightMode(container);
AddButton(
container,