ui: Mae sure all theme scaling values are scaled correctly

This commit is contained in:
WerWolv
2023-03-18 10:52:50 +01:00
parent 1a1bf98905
commit 367bd76046
9 changed files with 86 additions and 86 deletions

View File

@@ -42,7 +42,7 @@ namespace hex::plugin::builtin {
for (auto &[name, handler] : api::ThemeManager::getStyleHandlers()) {
if (ImGui::CollapsingHeader(name.c_str())) {
for (auto &[styleName, style] : handler.styleMap) {
auto &[value, min, max] = style;
auto &[value, min, max, needsScaling] = style;
if (auto floatValue = std::get_if<float*>(&value); floatValue != nullptr)
ImGui::SliderFloat(styleName.c_str(), *floatValue, min, max, "%.1f");