diff options
Diffstat (limited to 'src/imgui_ui.cpp')
-rw-r--r-- | src/imgui_ui.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/imgui_ui.cpp b/src/imgui_ui.cpp index 1feb1e5..c545e80 100644 --- a/src/imgui_ui.cpp +++ b/src/imgui_ui.cpp @@ -118,26 +118,6 @@ ImGui_File(project_data *File, project_state *State, memory *Memory, ImGuiIO io, static void -ImGui_Opt_Shape(shape_options *Opt) -{ - // TODO(fox): Combine with RGBA function? - char *Names[3] = { "Fill only", "Stroke only", "Fill and stroke" }; - if (ImGui::BeginListBox("Shape render type")) { - for (int i = 0; i < 3; i++) { - if (ImGui::Selectable(Names[i], (Opt->Visibility == i))) { - Opt->Visibility = i; - } - } - ImGui::EndListBox(); - } - ImGui::ColorEdit4("Fill color", (real32 *)&Opt->FillCol, ImGuiColorEditFlags_Float); - ImGui::ColorEdit4("Stroke color", (real32 *)&Opt->StrokeCol, ImGuiColorEditFlags_Float); - real32 StrokeWidthMin = 0; - real32 StrokeWidthMax = 1024; - ImGui::DragScalar("Stroke width", ImGuiDataType_Float, &Opt->StrokeWidth, 1, &StrokeWidthMin, &StrokeWidthMax, "%.3f"); -} - -static void ImGui_ColorPanel(project_data *File, project_state *State, ui *UI, memory *Memory, ImGuiIO io) { ImGuiStyle& style = ImGui::GetStyle(); @@ -196,7 +176,7 @@ ImGui_ColorPanel(project_data *File, project_state *State, ui *UI, memory *Memor State_BindBrushTexture(Memory, &State->Brush, 4); } } else if (State->Tool == tool_pen && State->MostRecentlySelectedLayer == -1) { - ImGui_Opt_Shape(&State->Pen.Opt); + // ImGui_Opt_Shape(&State->Pen.Opt); } ImGui::End(); |