diff --git a/source/src/dvsku_toolkit.hpp b/source/src/dvsku_toolkit.hpp index 023c3c7..edf0f5e 100644 --- a/source/src/dvsku_toolkit.hpp +++ b/source/src/dvsku_toolkit.hpp @@ -14,6 +14,7 @@ #endif #define DT_APP_NAME "dvsku toolkit" +#define DT_WEBSITE "https://github.com/dvsku/dvsku_toolkit" #define DT_VERSION_MAJOR 1 #define DT_VERSION_MINOR 2 diff --git a/source/src/gui/dt_comp_root.cpp b/source/src/gui/dt_comp_root.cpp index 57677cd..c25fd0e 100644 --- a/source/src/gui/dt_comp_root.cpp +++ b/source/src/gui/dt_comp_root.cpp @@ -2,6 +2,8 @@ #include "dvsku_toolkit.hpp" #include "dt_app.hpp" +#include + using namespace dvsku_toolkit; /////////////////////////////////////////////////////////////////////////////// @@ -54,6 +56,19 @@ void dt_comp_root::render() { ImGui::SameLine(0.0f, 0.0f); + ImGui::SetCursorPosX(max.x - 120.0f); + ImGui::SetCursorPosY(min.y); + + if (ImGui::Button(ICON_FA_LINK"##About", { 30.0f, 25.0f })) { + ShellExecuteA(NULL, "open", DT_WEBSITE, NULL, NULL, SW_SHOWDEFAULT); + } + + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, { 6.0f, 6.0f }); + ImGui::PushStyleColor(ImGuiCol_Text, 0xFFC5C5C5); + ImGui::SetItemTooltip("About"); + ImGui::PopStyleColor(1); + ImGui::PopStyleVar(1); + ImGui::SetCursorPosX(max.x - 60.0f); ImGui::SetCursorPosY(min.y);