summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-07 20:54:41 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-07 20:54:41 +0100
commit3c3be024f4ca7b7fda0aac44592506788b8a5309 (patch)
treefd480187549f1cfb4fab6bda509c189c293c5c6c /src
parent34f5b833d86ea1dad98d683723cf05a17684237b (diff)
add imfiledialog credit
Diffstat (limited to 'src')
-rw-r--r--src/definitions.h3
-rw-r--r--src/main.cpp11
2 files changed, 12 insertions, 2 deletions
diff --git a/src/definitions.h b/src/definitions.h
index ede3d3f..f023e84 100644
--- a/src/definitions.h
+++ b/src/definitions.h
@@ -15,6 +15,9 @@ extern unsigned char _binary_imgui_LICENSE_end[];
extern unsigned char _binary_imspinner_LICENSE_start[];
extern unsigned char _binary_imspinner_LICENSE_end[];
+extern unsigned char _binary_imfiledialog_LICENSE_start[];
+extern unsigned char _binary_imfiledialog_LICENSE_end[];
+
extern unsigned char _binary_misc_logo_64_png_start[];
extern unsigned char _binary_misc_logo_64_png_end[];
diff --git a/src/main.cpp b/src/main.cpp
index a709ef4..3b23ad0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -60,7 +60,7 @@ static void _ts_create_popups() {
// About window
if (ImGui::BeginPopupModal("About Text-Search", NULL, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) {
- ImGui::SetWindowSize({600, 400});
+ ImGui::SetWindowSize({600, 420});
char* name = "Text-Search";
char* link = "created by Aldrik Ramaekers <aldrik.ramaekers@gmail.com>";
@@ -97,6 +97,13 @@ static void _ts_create_popups() {
ImGui::TreePop();
}
+ if (ImGui::TreeNode("https://github.com/dfranx/ImFileDialog")) {
+ char* license = (char*)_binary_imfiledialog_LICENSE_start;
+ int license_length = _binary_imfiledialog_LICENSE_end - _binary_imfiledialog_LICENSE_start;
+ ImGui::Text("%.*s", license_length, license);
+ ImGui::TreePop();
+ }
+
if (ImGui::TreeNode("https://github.com/nothings/stb/blob/master/stb_image.h")) {
ImGui::Text("public domain");
ImGui::TreePop();
@@ -105,7 +112,7 @@ static void _ts_create_popups() {
if (ImGui::TreeNode("https://github.com/sheredom/utf8.h")) {
ImGui::Text("public domain");
ImGui::TreePop();
- }
+ }
}
ImGui::Dummy({0, 10});