[imgui] Clean implementation of rounded edges

This commit is contained in:
Xphalnos
2024-11-01 16:09:27 +01:00
committed by Radosław Gliński
parent 464e9a1645
commit fbad66e5bc
3 changed files with 5 additions and 11 deletions

View File

@@ -142,9 +142,11 @@ void ImGuiDrawer::Initialize() {
InitializeFonts();
auto& style = ImGui::GetStyle();
style.ScrollbarRounding = 0;
style.WindowRounding = 0;
style.TabRounding = 0;
style.ScrollbarRounding = 6.0f;
style.WindowRounding = 6.0f;
style.PopupRounding = 6.0f;
style.TabRounding = 6.0f;
style.Colors[ImGuiCol_Text] = ImVec4(0.89f, 0.90f, 0.90f, 1.00f);
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f);
style.Colors[ImGuiCol_WindowBg] = ImVec4(0.00f, 0.06f, 0.00f, 1.00f);