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

Default background changed to green, "video file" -> "video" in lang.

This commit is contained in:
John Preston
2016-11-07 18:24:28 +03:00
parent dd9bd43331
commit fac8e48381
34 changed files with 251 additions and 227 deletions

View File

@@ -28,10 +28,9 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
namespace Window {
MainWindow::MainWindow() : QMainWindow()
MainWindow::MainWindow() : QWidget()
, _positionUpdatedTimer(this)
, _body(this) {
setCentralWidget(_body);
subscribe(Theme::Background(), [this](const Theme::BackgroundUpdate &data) {
using Type = Theme::BackgroundUpdate::Type;
if (data.type == Type::TestingTheme || data.type == Type::RevertingTheme || data.type == Type::ApplyingTheme) {
@@ -40,20 +39,21 @@ MainWindow::MainWindow() : QMainWindow()
}
}
});
_title = Platform::CreateTitleWidget(this);
}
void MainWindow::init() {
_positionUpdatedTimer->setSingleShot(true);
connect(_positionUpdatedTimer, SIGNAL(timeout()), this, SLOT(savePositionByTimer()));
_title = Platform::CreateTitleWidget(this);
auto p = palette();
p.setColor(QPalette::Window, st::windowBg->c);
setPalette(p);
initSize();
if (_title) _title->init();
initSize();
initHook();
}