feat: Added setting to enable colored pattern row backgrounds

This commit is contained in:
WerWolv
2023-11-25 13:42:51 +01:00
parent 88032a85cd
commit 8d20277a62
6 changed files with 22 additions and 14 deletions

View File

@@ -15,6 +15,9 @@ namespace hex::plugin::builtin {
EventManager::subscribe<EventSettingsChanged>(this, [this] {
auto patternStyle = ContentRegistry::Settings::read("hex.builtin.setting.interface", "hex.builtin.setting.interface.pattern_tree_style", 0);
this->m_patternDrawer->setTreeStyle(patternStyle);
auto rowColoring = ContentRegistry::Settings::read("hex.builtin.setting.interface", "hex.builtin.setting.interface.pattern_data_row_bg", false);
this->m_patternDrawer->enableRowColoring(rowColoring);
});
// Reset the pattern drawer when the provider changes