namespace moduleExamen.Helpers;

public static class AppStyles
{
    // Основной фон RGB(192, 237, 215)
    public static readonly Color BackgroundColor = Color.FromArgb(192, 237, 215);
    // Дополнительный фон RGB(133, 242, 189)
    public static readonly Color SecondaryColor = Color.FromArgb(133, 242, 189);
    // Акцентирование внимания #ff0000
    public static readonly Color AccentColor = Color.FromArgb(255, 0, 0);

    public static readonly Color PrimaryColor = Color.FromArgb(133, 242, 189);
    public static readonly Color DiscountHighColor = Color.FromArgb(144, 238, 144);
    public static readonly Color OutOfStockColor = Color.FromArgb(211, 211, 211);

    // Шрифт Comic Sans MS
    public static readonly Font TitleFont = new("Comic Sans MS", 16f, FontStyle.Bold);
    public static readonly Font RegularFont = new("Comic Sans MS", 10f);
    public static readonly Font SmallFont = new("Comic Sans MS", 9f);

    public static string IconPath => Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Resources", "icon.ico");
    public static string LogoPath => Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Resources", "logo.png");
    public static string PicturePath => Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Resources", "picture.png");

    public static void ApplyIcon(Form form)
    {
        var iconPath = IconPath;
        if (File.Exists(iconPath))
            form.Icon = new Icon(iconPath);
    }
}
