refactor: some more Application refactors (#5551)

This commit is contained in:
pajlada
2024-08-25 13:04:48 +02:00
committed by GitHub
parent f4d6845587
commit 3e510fd9e9
14 changed files with 199 additions and 169 deletions
+2 -16
View File
@@ -21,26 +21,14 @@ using namespace chatterino;
namespace {
class MockApplication : mock::BaseApplication
class MockApplication : public mock::BaseApplication
{
public:
MockApplication()
: theme(this->paths_)
, fonts(this->settings)
, windowManager(this->paths_)
: windowManager(this->paths_, this->settings, this->theme, this->fonts)
{
}
Theme *getThemes() override
{
return &this->theme;
}
Fonts *getFonts() override
{
return &this->fonts;
}
WindowManager *getWindows() override
{
return &this->windowManager;
@@ -52,8 +40,6 @@ public:
}
AccountController accounts;
Theme theme;
Fonts fonts;
WindowManager windowManager;
};