mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Merge branch 'main' into dev/h2d
This commit is contained in:
@@ -4817,7 +4817,7 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
|
|||||||
ImGui::SameLine(checkbox_pos);
|
ImGui::SameLine(checkbox_pos);
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0.0, 0.0)); // ensure no padding active
|
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0.0, 0.0)); // ensure no padding active
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0.0, 0.0)); // ensure no item spacing active
|
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0.0, 0.0)); // ensure no item spacing active
|
||||||
ImGui::Text(into_u8(visible ? ImGui::VisibleIcon : ImGui::HiddenIcon).c_str(), ImVec2(16 * m_scale, 16 * m_scale));
|
ImGui::Text("%s", into_u8(visible ? ImGui::VisibleIcon : ImGui::HiddenIcon).c_str());
|
||||||
ImGui::PopStyleVar(2);
|
ImGui::PopStyleVar(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1059,6 +1059,10 @@ void ImGuiWrapper::tooltip(const char *label, float wrap_width)
|
|||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ImGuiWrapper::tooltip(const std::string &label, float wrap_width) {
|
||||||
|
tooltip(label.c_str(), wrap_width);
|
||||||
|
}
|
||||||
|
|
||||||
void ImGuiWrapper::tooltip(const wxString &label, float wrap_width)
|
void ImGuiWrapper::tooltip(const wxString &label, float wrap_width)
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ public:
|
|||||||
void text_wrapped(const std::string &label, float wrap_width);
|
void text_wrapped(const std::string &label, float wrap_width);
|
||||||
void text_wrapped(const wxString &label, float wrap_width);
|
void text_wrapped(const wxString &label, float wrap_width);
|
||||||
void tooltip(const char *label, float wrap_width);
|
void tooltip(const char *label, float wrap_width);
|
||||||
|
void tooltip(const std::string &label, float wrap_width);
|
||||||
void tooltip(const wxString &label, float wrap_width);
|
void tooltip(const wxString &label, float wrap_width);
|
||||||
void filament_group(const std::string &filament_type, const char *hex_color, unsigned char filament_id, float align_width);
|
void filament_group(const std::string &filament_type, const char *hex_color, unsigned char filament_id, float align_width);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user