mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 11:03:25 -08:00
[Fonts] Restore DeckList Serif default and live-update all role readers
This commit is contained in:
parent
42895e92a3
commit
a7ab30c071
18 changed files with 118 additions and 8 deletions
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include "../../../client/settings/cache_settings.h"
|
||||
#include "../../pixel_map_generator.h"
|
||||
#include "../interface/theme_manager.h"
|
||||
#include "../main.h"
|
||||
#include "../settings_page/abstract_settings_page.h"
|
||||
#include "../settings_page/appearance_settings_page.h"
|
||||
|
|
@ -189,6 +190,10 @@ void DlgSettings::setupUi()
|
|||
searchDelegate->setPageIcons(icons);
|
||||
searchResultsView->viewport()->update();
|
||||
});
|
||||
// The search delegate reads the InterfaceDefault role at paint time, so a
|
||||
// font change only needs a repaint, mirroring the theme change above.
|
||||
connect(themeManager, &ThemeManager::fontsChanged, searchResultsView,
|
||||
[this] { searchResultsView->viewport()->update(); });
|
||||
|
||||
// Build search index after pages are created
|
||||
buildSearchIndex();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue