this commit is too big

This commit is contained in:
fourtf
2018-08-02 14:23:27 +02:00
parent 3b3c5d8d75
commit c2e2dfb577
186 changed files with 3626 additions and 2656 deletions
+3 -11
View File
@@ -29,28 +29,20 @@ Fonts::Fonts()
this->fontsByType_.resize(size_t(EndType));
}
void Fonts::initialize(Application &app)
void Fonts::initialize(Settings &, Paths &)
{
this->chatFontFamily.connect([this, &app](const std::string &, auto) {
this->chatFontFamily.connect([this](const std::string &, auto) {
assertInGuiThread();
if (app.windows) {
app.windows->incGeneration();
}
for (auto &map : this->fontsByType_) {
map.clear();
}
this->fontChanged.invoke();
});
this->chatFontSize.connect([this, &app](const int &, auto) {
this->chatFontSize.connect([this](const int &, auto) {
assertInGuiThread();
if (app.windows) {
app.windows->incGeneration();
}
for (auto &map : this->fontsByType_) {
map.clear();
}