Draw Reset Icon.
265 {
266 bool IsReset = false;
267
268 if (isMove)
269 {
270 ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImGui::GetStyle().Colors[ImGuiCol_Button]);
271 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.31f, 0.49f, 0.62f, 1.0f));
273 ImGui::PopStyleColor(2);
274 }
275 else
276 {
277 ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImGui::GetStyle().Colors[ImGuiCol_Button]);
278 ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImGui::GetStyle().Colors[ImGuiCol_Button]);
279 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.4f, 0.4f, 0.4f, 1.0f));
280
281 ImGui::SetWindowFontScale(0.65f);
283 ImGui::SetWindowFontScale(1.0f);
284 ImGui::PopStyleColor(3);
285 }
286
287 return IsReset;
288 }
static ImVec2 GetLineItemSize()
Get Line Width's Square Size.