mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
ui: Mae sure all theme scaling values are scaled correctly
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user