Skip to content

Commit

Permalink
Minor fix in new UI
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumechereau committed Jan 2, 2024
1 parent c26cae3 commit b2d04ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,8 @@ bool gui_input_float(const char *label, float *v, float step,
ImGui::PushID(label);

label_aligned(label, LABEL_SIZE);
ImGui::BeginGroup();
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(2, 2));
ImGui::BeginGroup();
ImGui::PushButtonRepeat(true);

ImGuiID key = ImGui::GetID("show_arrows");
Expand Down Expand Up @@ -707,9 +707,9 @@ bool gui_input_float(const char *label, float *v, float step,
}

ImGui::PopButtonRepeat();
ImGui::PopStyleVar(1);
ImGui::EndGroup();
storage->SetBool(key, ret || is_active || ImGui::IsItemHovered());
ImGui::PopStyleVar(1);
ImGui::PopID();

// ret = ImGui::InputFloat(label, v, step, 0.0, format);
Expand Down

0 comments on commit b2d04ba

Please sign in to comment.