Skip to content

Commit

Permalink
Added rounding to mina skin
Browse files Browse the repository at this point in the history
  • Loading branch information
Borf committed Sep 18, 2024
1 parent 6203378 commit 6eb72d5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion browedit/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ bool Config::showWindow(BrowEdit* browEdit)
ImGui::DragFloat("Field of View", &fov, 0.1f, 1.0f, 180.0f);
ImGui::DragFloat("Camera Mouse Speed", &cameraMouseSpeed, 0.05f, 0.01f, 3.0f);

if (ImGui::Combo("Skin", &style, "Dark\0Light\0Classic\0Tarq\0Mina's Hot Fudge 1.1\0"))
if (ImGui::Combo("Skin", &style, "Dark\0Light\0Classic\0Tarq\0Mina's Hot Fudge 1.2\0"))
{
setStyle(style);
}
Expand Down Expand Up @@ -503,6 +503,15 @@ void Config::setStyle(int style)
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f);
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f);
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f);
{
ImGuiStyle& style = ImGui::GetStyle();
style.FrameRounding = 4;
style.GrabRounding = style.FrameRounding; // Make GrabRounding always the same value as FrameRounding
style.WindowBorderSize = 1.0f;
style.FrameBorderSize = 0.0f;
style.PopupBorderSize = 1.0f;
}

break;
}
}
Expand Down

0 comments on commit 6eb72d5

Please sign in to comment.