Fix accent color not updating theme.

This commit is contained in:
Zachary Hall 2023-07-16 17:24:59 -07:00
parent 2732024611
commit 12ed2c9b41

View file

@ -388,7 +388,9 @@ int main(int, char**)
ImGui::EndListBox(); ImGui::EndListBox();
} }
ImGui::SetNextItemWidth(ImGui::GetWindowWidth() - (ImGui::GetStyle().FramePadding.x * 4)); 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(); ImGui::End();
} }