2020-05-21 08:32:52 +08:00
|
|
|
/******************************************/
|
|
|
|
|
/* */
|
|
|
|
|
/* Copyright (c) 2018 monitor1394 */
|
|
|
|
|
/* https://github.com/monitor1394 */
|
|
|
|
|
/* */
|
|
|
|
|
/******************************************/
|
|
|
|
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace XCharts
|
|
|
|
|
{
|
|
|
|
|
internal static class ThemeHelper
|
|
|
|
|
{
|
2020-05-31 07:43:29 +08:00
|
|
|
public static Color GetBackgroundColor(ThemeInfo themeInfo, Background background)
|
2020-05-21 08:32:52 +08:00
|
|
|
{
|
2020-05-31 07:43:29 +08:00
|
|
|
if (background.show && background.runtimeActive && background.hideThemeBackgroundColor) return Color.clear;
|
2020-05-21 08:32:52 +08:00
|
|
|
else return themeInfo.backgroundColor;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|