diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index ee7a84574..a3b85711f 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,5 +1,5 @@ # Sponsor links -patreon: werwolv -custom: https://werwolv.net/donate github: WerWolv +ko_fi: WerWolv +custom: "https://werwolv.net/donate" diff --git a/README.md b/README.md index cdcc70f0c..ef578ce6f 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,11 @@ ## Supporting -If you like my work, please consider supporting me on GitHub Sponsors, Patreon or PayPal. Thanks a lot! +If you like my work, please consider supporting me on GitHub Sponsors, Ko-Fi or PayPal. Thanks a lot!

GitHub donate button -Patreon donate button +Ko-Fi donate button PayPal donate button

diff --git a/plugins/builtin/romfs/assets/common/donation/ko-fi.png b/plugins/builtin/romfs/assets/common/donation/ko-fi.png new file mode 100644 index 000000000..32bc93e60 Binary files /dev/null and b/plugins/builtin/romfs/assets/common/donation/ko-fi.png differ diff --git a/plugins/builtin/romfs/assets/common/donation/patreon.png b/plugins/builtin/romfs/assets/common/donation/patreon.png deleted file mode 100644 index bfa689468..000000000 Binary files a/plugins/builtin/romfs/assets/common/donation/patreon.png and /dev/null differ diff --git a/plugins/builtin/romfs/assets/common/globe.png b/plugins/builtin/romfs/assets/common/globe.png index 48249bcff..e2bdccd59 100644 Binary files a/plugins/builtin/romfs/assets/common/globe.png and b/plugins/builtin/romfs/assets/common/globe.png differ diff --git a/plugins/builtin/source/content/views/view_about.cpp b/plugins/builtin/source/content/views/view_about.cpp index 3a0616a07..3140ac2d6 100644 --- a/plugins/builtin/source/content/views/view_about.cpp +++ b/plugins/builtin/source/content/views/view_about.cpp @@ -159,18 +159,20 @@ namespace hex::plugin::builtin { ImGui::EndChild(); struct DonationPage { - DonationPage(const std::fs::path &path, std::string link) : + DonationPage(std::string name, const std::fs::path &path, std::string link) : + name(std::move(name)), texture(ImGuiExt::Texture::fromImage(romfs::get(path).span(), ImGuiExt::Texture::Filter::Linear)), link(std::move(link)) { } + std::string name; AutoReset texture; std::string link; }; static std::array DonationPages = { - DonationPage("assets/common/donation/paypal.png", "https://werwolv.net/donate"), - DonationPage("assets/common/donation/github.png", "https://github.com/sponsors/WerWolv"), - DonationPage("assets/common/donation/patreon.png", "https://patreon.com/werwolv") + DonationPage("GitHub Sponsors", "assets/common/donation/github.png", "https://github.com/sponsors/WerWolv"), + DonationPage("Ko-Fi", "assets/common/donation/ko-fi.png", "https://ko-fi.com/werwolv"), + DonationPage("PayPal", "assets/common/donation/paypal.png", "https://werwolv.net/donate") }; if (ImGui::BeginTable("DonationLinks", 5, ImGuiTableFlags_SizingStretchSame)) { @@ -183,7 +185,7 @@ namespace hex::plugin::builtin { const auto size = (page.texture->getSize() * 1_scaled) / 1.5F; const auto startPos = ImGui::GetCursorScreenPos(); ImGui::Image(*page.texture, size); - + ImGui::SetItemTooltip("%s (%s)", page.name.c_str(), page.link.c_str()); if (ImGui::IsItemHovered()) { ImGui::GetForegroundDrawList()->AddShadowCircle(startPos + size / 2, size.x / 2, ImGui::GetColorU32(ImGuiCol_Button), 100.0F, ImVec2(), ImDrawFlags_ShadowCutOutShapeBackground); }