refactor: Fonts (#5228)

This commit is contained in:
pajlada
2024-03-10 14:27:08 +01:00
committed by GitHub
parent e56f7136a9
commit e7508332ff
16 changed files with 128 additions and 143 deletions
+5 -1
View File
@@ -9,6 +9,7 @@
#include "singletons/Emotes.hpp"
#include "singletons/Fonts.hpp"
#include "singletons/Paths.hpp"
#include "singletons/Settings.hpp"
#include "singletons/Theme.hpp"
#include "singletons/WindowManager.hpp"
#include "widgets/Notebook.hpp"
@@ -28,7 +29,9 @@ class MockApplication : mock::EmptyApplication
{
public:
MockApplication()
: windowManager(this->paths)
: settings(this->settingsDir.filePath("settings.json"))
, fonts(this->settings)
, windowManager(this->paths)
{
}
Theme *getThemes() override
@@ -66,6 +69,7 @@ public:
return &this->emotes;
}
Settings settings;
Theme theme;
HotkeyController hotkeys;
Fonts fonts;