[Defaults] Native frame on Linux by default

This commit is contained in:
Eric Kotato 2022-09-11 06:29:07 +03:00 committed by Eric Kotato
parent 305827ff30
commit dd0a776729

View file

@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/ */
#pragma once #pragma once
#include "base/platform/base_platform_info.h"
#include "core/core_settings_proxy.h" #include "core/core_settings_proxy.h"
#include "media/media_common.h" #include "media/media_common.h"
#include "window/themes/window_themes_embedded.h" #include "window/themes/window_themes_embedded.h"
@ -991,7 +992,7 @@ private:
rpl::variable<float64> _dialogsWidthRatio; // per-window rpl::variable<float64> _dialogsWidthRatio; // per-window
rpl::variable<int> _thirdColumnWidth = kDefaultThirdColumnWidth; // p-w rpl::variable<int> _thirdColumnWidth = kDefaultThirdColumnWidth; // p-w
bool _notifyFromAll = true; bool _notifyFromAll = true;
rpl::variable<bool> _nativeWindowFrame = false; rpl::variable<bool> _nativeWindowFrame = Platform::IsLinux();
rpl::variable<std::optional<bool>> _systemDarkMode = std::nullopt; rpl::variable<std::optional<bool>> _systemDarkMode = std::nullopt;
rpl::variable<bool> _systemDarkModeEnabled = false; rpl::variable<bool> _systemDarkModeEnabled = false;
rpl::variable<WindowTitleContent> _windowTitleContent; rpl::variable<WindowTitleContent> _windowTitleContent;