mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Compare commits
No commits in common. "d46b553c53529272c04b1e8c2a4e1d2408e01557" and "596484f5a3b01049215b8d560b37b856838a2fdc" have entirely different histories.
d46b553c53
...
596484f5a3
|
@ -117,7 +117,7 @@
|
||||||
- Dev: Channels without any animated elements on screen will skip updates from the GIF timer. (#5042, #5043, #5045)
|
- Dev: Channels without any animated elements on screen will skip updates from the GIF timer. (#5042, #5043, #5045)
|
||||||
- Dev: Autogenerate docs/plugin-meta.lua. (#5055)
|
- Dev: Autogenerate docs/plugin-meta.lua. (#5055)
|
||||||
- Dev: Refactor `NetworkPrivate`. (#5063)
|
- Dev: Refactor `NetworkPrivate`. (#5063)
|
||||||
- Dev: Refactor `Paths` & `Updates`, focusing on reducing their singletoniability. (#5092)
|
- Dev: Refactor `Paths` & `Updates`, focusing on reducing their singletoniability. (#5093)
|
||||||
- Dev: Removed duplicate scale in settings dialog. (#5069)
|
- Dev: Removed duplicate scale in settings dialog. (#5069)
|
||||||
- Dev: Fix `NotebookTab` emitting updates for every message. (#5068)
|
- Dev: Fix `NotebookTab` emitting updates for every message. (#5068)
|
||||||
- Dev: Added benchmark for parsing and building recent messages. (#5071)
|
- Dev: Added benchmark for parsing and building recent messages. (#5071)
|
||||||
|
|
|
@ -120,7 +120,7 @@ Application::Application(Settings &_settings, const Paths &paths,
|
||||||
, toasts(&this->emplace<Toasts>())
|
, toasts(&this->emplace<Toasts>())
|
||||||
, imageUploader(&this->emplace<ImageUploader>())
|
, imageUploader(&this->emplace<ImageUploader>())
|
||||||
, seventvAPI(&this->emplace<SeventvAPI>())
|
, seventvAPI(&this->emplace<SeventvAPI>())
|
||||||
, crashHandler(&this->emplace(new CrashHandler(paths)))
|
, crashHandler(&this->emplace<CrashHandler>(new CrashHandler(paths)))
|
||||||
|
|
||||||
, commands(&this->emplace<CommandController>())
|
, commands(&this->emplace<CommandController>())
|
||||||
, notifications(&this->emplace<NotificationController>())
|
, notifications(&this->emplace<NotificationController>())
|
||||||
|
|
|
@ -228,7 +228,7 @@ void Theme::initialize(Settings &settings, const Paths &paths)
|
||||||
},
|
},
|
||||||
false);
|
false);
|
||||||
|
|
||||||
this->loadAvailableThemes(paths);
|
this->loadAvailableThemes();
|
||||||
|
|
||||||
this->update();
|
this->update();
|
||||||
}
|
}
|
||||||
|
@ -328,11 +328,11 @@ std::vector<std::pair<QString, QVariant>> Theme::availableThemes() const
|
||||||
return packagedThemes;
|
return packagedThemes;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Theme::loadAvailableThemes(const Paths &paths)
|
void Theme::loadAvailableThemes()
|
||||||
{
|
{
|
||||||
this->availableThemes_ = Theme::builtInThemes;
|
this->availableThemes_ = Theme::builtInThemes;
|
||||||
|
|
||||||
auto dir = QDir(paths.themesDirectory);
|
auto dir = QDir(getIApp()->getPaths().themesDirectory);
|
||||||
for (const auto &info :
|
for (const auto &info :
|
||||||
dir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot, QDir::Name))
|
dir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot, QDir::Name))
|
||||||
{
|
{
|
||||||
|
|
|
@ -169,7 +169,7 @@ private:
|
||||||
*
|
*
|
||||||
* NOTE: This is currently not built to be reloadable
|
* NOTE: This is currently not built to be reloadable
|
||||||
**/
|
**/
|
||||||
void loadAvailableThemes(const Paths &paths);
|
void loadAvailableThemes();
|
||||||
|
|
||||||
std::optional<ThemeDescriptor> findThemeByKey(const QString &key);
|
std::optional<ThemeDescriptor> findThemeByKey(const QString &key);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue