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

Applying color themes with confirmation / reverting (15 seconds).

This commit is contained in:
John Preston
2016-11-02 17:44:33 +03:00
parent af9edc17d2
commit 5d10c02b5b
18 changed files with 517 additions and 73 deletions

View File

@@ -42,6 +42,13 @@ namespace Settings {
class Widget;
} // namespace Settings
namespace Window {
namespace Theme {
struct BackgroundUpdate;
class WarningWidget;
} // namespace Theme
} // namespace Window
class ConnectingWidget : public QWidget {
Q_OBJECT
@@ -228,6 +235,8 @@ private:
void showConnecting(const QString &text, const QString &reconnect = QString());
void hideConnecting();
void themeUpdated(const Window::Theme::BackgroundUpdate &data);
void updateControlsGeometry();
QPixmap grabInner();
@@ -253,6 +262,7 @@ private:
bool _isActive = false;
ChildWidget<ConnectingWidget> _connecting = { nullptr };
ChildWidget<Window::Theme::WarningWidget> _testingThemeWarning = { nullptr };
Local::ClearManager *_clearManager = nullptr;