49 ImGui::SameLine(0, 12.0f);
50 ImGui::TextDisabled(
"|");
51 ImGui::SameLine(0, 12.0f);
54 auto bg_radio = [&](
const char* label,
BackgroundType type,
const char* tip) {
58 if (ImGui::IsItemHovered()) {
59 ImGui::SetTooltip(
"%s", tip);
69 ImGui::SameLine(0, 12.0f);
70 ImGui::TextDisabled(
"|");
71 ImGui::SameLine(0, 12.0f);
74 for (
const auto& tool : kToolDefs) {
80 if (ImGui::IsItemHovered()) {
81 ImGui::SetTooltip(
"%s (%s)", tool.tooltip, tool.shortcut);
86 ImGui::SameLine(0, 12.0f);
87 ImGui::TextDisabled(
"|");
88 ImGui::SameLine(0, 12.0f);
bool ThemedIconButton(const char *icon, const char *tooltip, const ImVec2 &size, bool is_active, bool is_disabled, const char *panel_id, const char *anim_id)
Draw a standard icon button with theme-aware colors.