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

Moved font settings to JSON file

This commit is contained in:
RadRussianRus
2019-10-04 03:58:02 +03:00
parent ff5a0b4cad
commit b30a2bd9df
6 changed files with 239 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/sandbox.h"
#include "core/local_url_handlers.h"
#include "core/launcher.h"
#include "core/kotato_settings.h"
#include "core/core_ui_integration.h"
#include "chat_helpers/emoji_keywords.h"
#include "storage/localstorage.h"
@@ -157,10 +158,12 @@ Application::~Application() {
Global::finish();
ThirdParty::finish();
KotatoSettings::Finish();
Instance = nullptr;
}
void Application::run() {
KotatoSettings::Start();
if (!cMainFont().isEmpty()) {
style::internal::SetMainFont(cMainFont());
}