mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 20:07:01 +00:00
This commit is contained in:
parent
abbf836fd0
commit
28a31997b7
@ -1877,13 +1877,11 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref)
|
|||||||
// Simplified Settings
|
// Simplified Settings
|
||||||
if (ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f"))
|
if (ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f"))
|
||||||
style.GrabRounding = style.FrameRounding; // Make GrabRounding always the same value as FrameRounding
|
style.GrabRounding = style.FrameRounding; // Make GrabRounding always the same value as FrameRounding
|
||||||
bool window_border = (style.WindowBorderSize > 0.0f);
|
{ bool window_border = (style.WindowBorderSize > 0.0f); if (ImGui::Checkbox("WindowBorder", &window_border)) style.WindowBorderSize = window_border ? 1.0f : 0.0f; }
|
||||||
if (ImGui::Checkbox("WindowBorder", &window_border))
|
|
||||||
style.WindowBorderSize = window_border ? 1.0f : 0.0f;
|
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
bool frame_border = (style.FrameBorderSize > 0.0f);
|
{ bool frame_border = (style.FrameBorderSize > 0.0f); if (ImGui::Checkbox("FrameBorder", &frame_border)) style.FrameBorderSize = frame_border ? 1.0f : 0.0f; }
|
||||||
if (ImGui::Checkbox("FrameBorder", &frame_border))
|
ImGui::SameLine();
|
||||||
style.FrameBorderSize = frame_border ? 1.0f : 0.0f;
|
{ bool popup_border = (style.PopupBorderSize > 0.0f); if (ImGui::Checkbox("PopupBorder", &popup_border)) style.PopupBorderSize = popup_border ? 1.0f : 0.0f; }
|
||||||
|
|
||||||
// Save/Revert button
|
// Save/Revert button
|
||||||
if (ImGui::Button("Save Ref"))
|
if (ImGui::Button("Save Ref"))
|
||||||
|
Loading…
Reference in New Issue
Block a user