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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user