Compare commits

..

1 Commits

Author SHA1 Message Date
dijunkun
0cfdcd7e00 [fix] remove duplicate 'v' prefix in GitHub release name 2025-11-14 15:42:49 +08:00

View File

@@ -8,10 +8,8 @@
namespace crossdesk {
void Hyperlink(const std::string& label, const std::string& url,
const float window_width) {
void Hyperlink(const std::string& label, const std::string& url) {
ImGui::PushStyleColor(ImGuiCol_Text, IM_COL32(0, 0, 255, 255));
ImGui::SetCursorPosX(window_width * 0.1f);
ImGui::Text("%s", label.c_str());
ImGui::PopStyleColor();
@@ -69,8 +67,7 @@ int Render::AboutWindow() {
#endif
std::string text = localization::version[localization_language_index_] +
": CrossDesk " + version;
ImGui::SetCursorPosX(about_window_width_ * 0.1f);
": CrossDesk v" + version;
ImGui::Text("%s", text.c_str());
if (update_available_) {
@@ -79,16 +76,14 @@ int Render::AboutWindow() {
": " + latest_version_;
std::string access_website =
localization::access_website[localization_language_index_];
Hyperlink(latest_version, "https://crossdesk.cn", about_window_width_);
Hyperlink(latest_version, "https://crossdesk.cn");
}
ImGui::Text("");
std::string copyright_text = "© 2025 by JUNKUN DI. All rights reserved.";
std::string license_text = "Licensed under GNU LGPL v3.";
ImGui::SetCursorPosX(about_window_width_ * 0.1f);
ImGui::Text("%s", copyright_text.c_str());
ImGui::SetCursorPosX(about_window_width_ * 0.1f);
ImGui::Text("%s", license_text.c_str());
ImGui::SetCursorPosX(about_window_width_ * 0.42f);