Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: right alignment of the donation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 3, 2023
1 parent eb0b0b2 commit 2314dfe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RotationSolver/Windows/RotationConfigWindow_Help.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using RotationSolver.Commands;
using RotationSolver.Localization;
using System.Numerics;
using static System.Net.Mime.MediaTypeNames;

namespace RotationSolver.Windows.RotationConfigWindow
{
Expand Down Expand Up @@ -38,10 +39,13 @@ private void DrawHelpTab()
}

ImGui.SameLine();

var support = "Support on Ko-fi";
ImGui.SetCursorPosX(ImGui.GetWindowSize().X - ImGui.CalcTextSize(support).X - ImGui.GetStyle().ItemSpacing.X * 2);
ImGui.PushStyleColor(ImGuiCol.Button, 0xFF5E5BFF);
ImGui.PushStyleColor(ImGuiCol.ButtonActive, 0xDD5E5BFF);
ImGui.PushStyleColor(ImGuiCol.ButtonHovered, 0xAA5E5BFF);
if (ImGui.Button("Support on Ko-fi"))
if (ImGui.Button(support))
{
Util.OpenLink("https://ko-fi.com/rotationsolver");
}
Expand Down

0 comments on commit 2314dfe

Please sign in to comment.