11#include "imgui/imgui.h"
52 ImGui::SameLine(0, 12.0f);
53 ImGui::TextDisabled(
"|");
54 ImGui::SameLine(0, 12.0f);
57 auto bg_radio = [&](
const char* label,
BackgroundType type,
const char* tip) {
61 if (ImGui::IsItemHovered()) {
62 ImGui::SetTooltip(
"%s", tip);
72 ImGui::SameLine(0, 12.0f);
73 ImGui::TextDisabled(
"|");
74 ImGui::SameLine(0, 12.0f);
77 for (
const auto& tool : kToolDefs) {
83 if (ImGui::IsItemHovered()) {
84 ImGui::SetTooltip(
"%s (%s)", tool.tooltip, tool.shortcut);
89 ImGui::SameLine(0, 12.0f);
90 ImGui::TextDisabled(
"|");
91 ImGui::SameLine(0, 12.0f);
103 for (
const auto& tool : kToolDefs) {
const Theme & GetCurrentTheme() const
static ThemeManager & Get()
#define ICON_MD_SENSOR_DOOR
#define ICON_MD_INVENTORY
#define ICON_MD_PEST_CONTROL
#define ICON_MD_NAVIGATION
Editors are the view controllers for the application.
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.