[imgui] Clean implementation of rounded edges
This commit is contained in:
committed by
Radosław Gliński
parent
464e9a1645
commit
fbad66e5bc
@@ -97,7 +97,6 @@ void NoProfileDialog::OnDraw(ImGuiIO& io) {
|
||||
const auto window_position =
|
||||
ImVec2(GetIO().DisplaySize.x * 0.35f, GetIO().DisplaySize.y * 0.4f);
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 6.0f);
|
||||
ImGui::SetNextWindowPos(window_position, ImGuiCond_FirstUseEver);
|
||||
ImGui::SetNextWindowBgAlpha(1.0f);
|
||||
|
||||
@@ -111,8 +110,6 @@ void NoProfileDialog::OnDraw(ImGuiIO& io) {
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
const std::string message =
|
||||
"There is no profile available! You will not be able to save without "
|
||||
"one.\n\nWould you like to create one?";
|
||||
@@ -169,7 +166,6 @@ void ProfileConfigDialog::OnDraw(ImGuiIO& io) {
|
||||
|
||||
auto profiles = profile_manager->GetProfiles();
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 6.0f);
|
||||
ImGui::SetNextWindowPos(ImVec2(40, 40), ImGuiCond_FirstUseEver);
|
||||
ImGui::SetNextWindowBgAlpha(0.8f);
|
||||
|
||||
@@ -182,8 +178,6 @@ void ProfileConfigDialog::OnDraw(ImGuiIO& io) {
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
if (profiles->empty()) {
|
||||
ImGui::TextUnformatted("No profiles found!");
|
||||
ImGui::Spacing();
|
||||
|
||||
Reference in New Issue
Block a user