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

Initialized empty files for tray implementations.

This commit is contained in:
23rd
2022-03-23 18:59:53 +03:00
parent 511805199f
commit de194c4aa2
12 changed files with 193 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "lang/lang_instance.h"
#include "inline_bots/bot_attach_web_view.h"
#include "mainwidget.h"
#include "tray.h"
#include "core/file_utilities.h"
#include "core/click_handler_types.h" // ClickHandlerContext.
#include "core/crash_reports.h"
@@ -149,6 +150,7 @@ Application::Application(not_null<Launcher*> launcher)
, _langpack(std::make_unique<Lang::Instance>())
, _langCloudManager(std::make_unique<Lang::CloudManager>(langpack()))
, _emojiKeywords(std::make_unique<ChatHelpers::EmojiKeywords>())
, _tray(std::make_unique<Tray>())
, _autoLockTimer([=] { checkAutoLock(); }) {
Ui::Integration::Set(&_private->uiIntegration);
@@ -300,6 +302,8 @@ void Application::run() {
startShortcuts();
startDomain();
startTray();
_primaryWindow->widget()->show();
const auto currentGeometry = _primaryWindow->widget()->geometry();
@@ -409,6 +413,9 @@ void Application::startSystemDarkModeViewer() {
}, _lifetime);
}
void Application::startTray() {
}
auto Application::prepareEmojiSourceImages()
-> std::shared_ptr<Ui::Emoji::UniversalImages> {
const auto &images = Ui::Emoji::SourceImages();

View File

@@ -103,6 +103,7 @@ namespace Core {
class Launcher;
struct LocalUrlHandler;
class Tray;
enum class LaunchState {
Running,
@@ -317,6 +318,7 @@ private:
void startDomain();
void startEmojiImageLoader();
void startSystemDarkModeViewer();
void startTray();
friend void QuitAttempt();
void quitDelayed();
@@ -377,6 +379,8 @@ private:
std::unique_ptr<Lang::Translator> _translator;
QPointer<Ui::BoxContent> _badProxyDisableBox;
const std::unique_ptr<Tray> _tray;
std::unique_ptr<Media::Player::FloatController> _floatPlayers;
Media::Player::FloatDelegate *_defaultFloatPlayerDelegate = nullptr;
Media::Player::FloatDelegate *_replacementFloatPlayerDelegate = nullptr;