Files
nixpkgs/pkgs/by-name/na/naps2/01-donate-button.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
909 B
Diff
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
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);