ImGui::DragFloat("Window Fill Alpha",&bg_alpha,0.005f,-0.01f,1.0f,bg_alpha<0.0f?"(default)":"%.3f");// Not exposing zero here so user doesn't "lose" the UI (zero alpha clips all widgets). But application code could have a toggle to switch between zero and non-zero.
ImGui::DragFloat("Global Alpha",&style.Alpha,0.005f,0.20f,1.0f,"%.2f");// Not exposing zero here so user doesn't "lose" the UI (zero alpha clips all widgets). But application code could have a toggle to switch between zero and non-zero.
ImGui::DragFloat("Window Fill Alpha Default",&style.WindowFillAlphaDefault,0.005f,0.0f,1.0f,"%.2f");
ImGui::PopItemWidth();
ImGui::TreePop();
}
if(ImGui::TreeNode("Sizes"))
{
ImGui::SliderFloat("Alpha",&style.Alpha,0.20f,1.0f,"%.2f");// Not exposing zero here so user doesn't "lose" the UI. But application code could have a toggle to switch between zero and non-zero.