/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once namespace Ui { class FlatButton; class ScrollArea; class CrossButton; class MultiSelect; class PlainShadow; } // namespace Ui namespace Window { class Controller; namespace Theme { bool CopyColorsToPalette( const QString &destination, const QString &themePath, const QByteArray &themeContent); class Editor : public TWidget { public: Editor(QWidget*, not_null window); protected: void paintEvent(QPaintEvent *e) override; void resizeEvent(QResizeEvent *e) override; void keyPressEvent(QKeyEvent *e) override; void focusInEvent(QFocusEvent *e) override; private: void save(); void closeEditor(); not_null _window; object_ptr _scroll; class Inner; QPointer _inner; object_ptr _close; object_ptr _select; object_ptr _leftShadow; object_ptr _topShadow; object_ptr _save; }; } // namespace Theme } // namespace Window