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
+7
View File
@@ -5,6 +5,7 @@
#include "gmock/gmock.h"
#include "mocks/EmptyApplication.hpp"
#include "singletons/Fonts.hpp"
#include "singletons/Settings.hpp"
#include "singletons/Theme.hpp"
#include "widgets/Notebook.hpp"
@@ -21,6 +22,11 @@ namespace {
class MockApplication : mock::EmptyApplication
{
public:
MockApplication()
: settings(this->settingsDir.filePath("settings.json"))
, fonts(this->settings)
{
}
Theme *getThemes() override
{
return &this->theme;
@@ -36,6 +42,7 @@ public:
return &this->fonts;
}
Settings settings;
Theme theme;
HotkeyController hotkeys;
Fonts fonts;