Files
XCharts/Runtime/Helper/ThemeHelper.cs

20 lines
657 B
C#
Raw Normal View History

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
{
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
}
}
}