2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Forbid auto-night mode with theme editor.

This commit is contained in:
John Preston
2020-07-24 10:01:37 +04:00
parent 9a186cd8ce
commit 511067981d
4 changed files with 20 additions and 2 deletions

View File

@@ -309,6 +309,9 @@ void Application::checkSystemDarkMode() {
}
void Application::startSystemDarkModeViewer() {
if (Window::Theme::Background()->editingTheme()) {
_settings.setSystemDarkModeEnabled(false);
}
rpl::merge(
_settings.systemDarkModeChanges() | rpl::to_empty,
_settings.systemDarkModeEnabledChanges() | rpl::to_empty