Files
nixpkgs/pkgs/by-name/na/naps2/01-donate-button.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

15 lines
909 B
Diff

diff --git a/NAPS2.Lib/EtoForms/Ui/AboutForm.cs b/NAPS2.Lib/EtoForms/Ui/AboutForm.cs
--- a/NAPS2.Lib/EtoForms/Ui/AboutForm.cs
+++ b/NAPS2.Lib/EtoForms/Ui/AboutForm.cs
@@ -26,8 +26,8 @@ public class AboutForm : EtoDialogBase
_donateButton = C.Button(UiStrings.Donate, () => ProcessHelper.OpenUrl(DONATE_URL));
_donateButton.BackgroundColor = Color.FromRgb(0xfeda96);
_donateButton.TextColor = Color.FromRgb(0x1b464e);
- _donateButton.Font = new Font(_donateButton.Font.Family, _donateButton.Font.Size * 11 / 10,
- FontStyle.Italic | FontStyle.Bold);
+ try { _donateButton.Font = new Font(_donateButton.Font.Family, _donateButton.Font.Size * 11 / 10,
+ FontStyle.Italic | FontStyle.Bold); } catch {};
EtoPlatform.Current.ConfigureDonateButton(_donateButton);
_enableDebugLogging.Checked = config.Get(c => c.EnableDebugLogging);