Fix accent color not updating theme.
This commit is contained in:
parent
2732024611
commit
12ed2c9b41
1 changed files with 3 additions and 1 deletions
4
main.cpp
4
main.cpp
|
@ -388,7 +388,9 @@ int main(int, char**)
|
|||
ImGui::EndListBox();
|
||||
}
|
||||
ImGui::SetNextItemWidth(ImGui::GetWindowWidth() - (ImGui::GetStyle().FramePadding.x * 4));
|
||||
ImGui::SliderFloat("##AccentColor", &accent_color, 0.0, 360.0, "UI hue: %.0f°", ImGuiSliderFlags_NoRoundToFormat);
|
||||
if (ImGui::SliderFloat("##AccentColor", &accent_color, 0.0, 360.0, "UI hue: %.0f°", ImGuiSliderFlags_NoRoundToFormat)) {
|
||||
theme->Apply(accent_color);
|
||||
}
|
||||
}
|
||||
ImGui::End();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue