seefood_diet / Assets / UIKit / UIColor.cs
UIColor.cs
Raw
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace UIKit {

    public enum UIColorId {

        None = -1,

        // Category [0,100)
        Primary = 0,
        Secondary = 1,
        Disable = 2,
        System = 3,

        // Background [100,200)
        BgPrimary = 100,
        BgSecondary = 101,
        BgIcon = 102,
    }

    public interface IUIColorObserver {

        void OnUIColorChanged ();
    }

    [Serializable]
    public class UIColor {

        public Color Color;
        public Color Content;
        public Color Border;
        public Color Shadow;
        public Color Pressed;

        public static UIColor Create () {

            return new UIColor () {

                Color = Color.white
            };
        }
    }
}