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

Theme preview ready.

Also style::color is now copyable, constructed only inside a palette.
Also macOS setup new background ready.
This commit is contained in:
John Preston
2016-12-23 16:21:01 +03:00
parent 1d895cd953
commit ef927c8465
135 changed files with 3516 additions and 1391 deletions

View File

@@ -34,8 +34,7 @@ MainWindow::MainWindow() : QWidget()
, _titleText(qsl("Telegram")) {
using Update = Theme::BackgroundUpdate;
subscribe(Theme::Background(), [this](const Update &data) {
if (data.type == Update::Type::TestingTheme
|| data.type == Update::Type::RevertingTheme) {
if (data.paletteChanged()) {
if (_title) {
_title->update();
}