using System;
using Intrepid.Utilities;
using UnityEngine;

namespace Intrepid.Core.Themes
{
    [Serializable]
    public class UIWindowTheme : AbstractThemeRelated
    {
        private float Alpha { get; }

        public UIWindowTheme(Palettes palettes, float alpha = 1) : base(palettes)
        {
            Alpha = alpha;
        }

        public Color Text => Palettes.Bundle.Contrast.Text;
        public Color Background => Palettes.Bundle.Contrast.Background;
        public Color Border => Palettes.Bundle.Contrast.BorderOut;
        public Color TransparentBackground => Functions.ChangeAlpha(Background, Alpha);
    }
}