2021-01-11 08:54:28 +08:00
|
|
|
/************************************************/
|
|
|
|
|
/* */
|
|
|
|
|
/* Copyright (c) 2018 - 2021 monitor1394 */
|
|
|
|
|
/* https://github.com/monitor1394 */
|
|
|
|
|
/* */
|
|
|
|
|
/************************************************/
|
2020-05-21 08:32:52 +08:00
|
|
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace XCharts
|
|
|
|
|
{
|
2021-04-27 12:47:46 +08:00
|
|
|
public static class ThemeHelper
|
2020-05-21 08:32:52 +08:00
|
|
|
{
|
2021-01-11 08:54:28 +08:00
|
|
|
public static Color32 GetBackgroundColor(ChartTheme theme, Background background)
|
2020-05-21 08:32:52 +08:00
|
|
|
{
|
2021-01-11 08:54:28 +08:00
|
|
|
if (background.show && background.hideThemeBackgroundColor) return ChartConst.clearColor32;
|
|
|
|
|
else return theme.backgroundColor;
|
2020-05-21 08:32:52 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|