Completely removed GDI
Some checks failed
Build Windows Avalonia / build (push) Failing after 1m47s
Release Windows Avalonia / build (push) Failing after 1m47s
Release Windows Avalonia / release (push) Has been skipped

This commit is contained in:
Maddo 2026-05-28 20:27:05 +02:00
commit d76e133f18
31 changed files with 236 additions and 2592 deletions

View file

@ -1,6 +1,6 @@
using System;
using System.Drawing;
using System.IO;
using SixLabors.ImageSharp.PixelFormats;
namespace MaddoShared;
@ -35,7 +35,7 @@ public class PicSettings
public int Margine { get; set; }
public int LogoAltezza { get; set; }
public int LogoLarghezza { get; set; }
public Color FontColoreRGB { get; set; }
public Rgba32 FontColoreRGB { get; set; } = new(255, 255, 0, 255);
public bool LogoAggiungi { get; set; }
// Initialize logo-related strings to safe defaults to avoid null reference issues
public string LogoNomeFile { get; set; } = string.Empty;
@ -81,6 +81,4 @@ public class PicSettings
public bool FotoRuotaASinistra { get; set; } = false;
public string TempMinText { get; set; } = string.Empty;
public bool OverwriteFiles { get; set; } = false;
// Which image creator to use: "Sharp" for current implementation, "Alternate" for alternate library
public string ImageCreatorProvider { get; set; } = "Sharp";
}