| 1745 | } |
| 1746 | |
| 1747 | void UI::SetUserFontScale(float scale) { |
| 1748 | float& currentScale = Window::GetCurrentWindow().userFontScale; |
| 1749 | const float ratio = scale / currentScale; |
| 1750 | if (ratio != 1.f) |
| 1751 | ImGui::GetStyle().ScaleAllSizes(ratio); |
| 1752 | ImGui::GetIO().FontGlobalScale = currentScale = scale; |
| 1753 | SetupStyle(); |
| 1754 | Window::RequestRedraw(); |
| 1755 | } |
| 1756 | |
| 1757 | void UI::ShowRenderingControls(Window& window) { |
| 1758 | ImGui::Text("Rendering"); |