feat: add simple delete and move tools for tabs

This commit is contained in:
Anna
2022-01-14 15:40:31 -05:00
parent abf3312158
commit 878171dc56
4 changed files with 40 additions and 10 deletions
+7 -1
View File
@@ -81,7 +81,7 @@ internal static class ImGuiUtil {
}
}
internal static bool IconButton(FontAwesomeIcon icon, string? id = null) {
internal static bool IconButton(FontAwesomeIcon icon, string? id = null, string? tooltip = null) {
ImGui.PushFont(UiBuilder.IconFont);
var label = icon.ToIconString();
@@ -93,6 +93,12 @@ internal static class ImGuiUtil {
ImGui.PopFont();
if (tooltip != null && ImGui.IsItemHovered()) {
ImGui.BeginTooltip();
ImGui.TextUnformatted(tooltip);
ImGui.EndTooltip();
}
return ret;
}
}