diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-03-28 15:36:16 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-03-28 15:36:16 +1100 |
| commit | 10441162c4323d6e41f54425a8d7641fda18f711 (patch) | |
| tree | 811665df77322a8f6786da057b4923a22e9572ac /src/ui/themes.cpp | |
| parent | bf58cb7acf402420158f3ac2530f62ddc3057914 (diff) | |
| download | tangara-fw-10441162c4323d6e41f54425a8d7641fda18f711.tar.gz | |
Fix for adding multiple styles with the same key
Diffstat (limited to 'src/ui/themes.cpp')
| -rw-r--r-- | src/ui/themes.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/themes.cpp b/src/ui/themes.cpp index 88f45b1b..b13f226a 100644 --- a/src/ui/themes.cpp +++ b/src/ui/themes.cpp @@ -70,6 +70,7 @@ void Theme::Callback(lv_obj_t* obj) { void Theme::ApplyStyle(lv_obj_t* obj, std::string style_key) { if (auto search = style_map.find(style_key); search != style_map.end()) { for (const auto& pair : search->second) { + lv_obj_remove_style(obj, pair.second, pair.first); lv_obj_add_style(obj, pair.second, pair.first); } } |
