mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
82 lines
2.3 KiB
C#
82 lines
2.3 KiB
C#
using MiraAPI.Utilities.Assets;
|
|
using UnityEngine;
|
|
|
|
namespace MiraAPI.LocalSettings;
|
|
|
|
/// <summary>
|
|
/// Struct for modyfing tab apparance.
|
|
/// Defines how the settings look.
|
|
/// </summary>
|
|
public record struct LocalSettingTabAppearance()
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets main color of the tab.
|
|
/// </summary>
|
|
public Color TabColor { get; set; } = Color.white;
|
|
|
|
/// <summary>
|
|
/// Gets or sets tab button icon. No icon by default.
|
|
/// </summary>
|
|
public LoadableAsset<Sprite>? TabIcon { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets color of the tab button.
|
|
/// </summary>
|
|
public Color TabButtonColor { get; set; } = Color.white;
|
|
|
|
/// <summary>
|
|
/// Gets or sets hover color of the tab button.
|
|
/// </summary>
|
|
public Color TabButtonHoverColor { get; set; } = Palette.AcceptedGreen;
|
|
|
|
/// <summary>
|
|
/// Gets or sets active color of the tab button.
|
|
/// </summary>
|
|
public Color TabButtonActiveColor { get; set; } = Palette.AcceptedGreen;
|
|
|
|
/// <summary>
|
|
/// Gets or sets hover color of toggles.
|
|
/// </summary>
|
|
public Color ToggleHoverColor { get; set; } = Palette.AcceptedGreen;
|
|
|
|
/// <summary>
|
|
/// Gets or sets active color of toggles.
|
|
/// </summary>
|
|
public Color ToggleActiveColor { get; set; } = Palette.AcceptedGreen;
|
|
|
|
/// <summary>
|
|
/// Gets or sets inactive color of toggles.
|
|
/// </summary>
|
|
public Color ToggleInactiveColor { get; set; } = Color.red;
|
|
|
|
/// <summary>
|
|
/// Gets or sets color of number buttons.
|
|
/// </summary>
|
|
public Color NumberColor { get; set; } = Color.white;
|
|
|
|
/// <summary>
|
|
/// Gets or sets hover color of number buttons.
|
|
/// </summary>
|
|
public Color NumberHoverColor { get; set; } = Palette.AcceptedGreen;
|
|
|
|
/// <summary>
|
|
/// Gets or sets color of sliders.
|
|
/// </summary>
|
|
public Color SliderColor { get; set; } = Color.white;
|
|
|
|
/// <summary>
|
|
/// Gets or sets hover color of sliders.
|
|
/// </summary>
|
|
public Color SliderHoverColor { get; set; } = Palette.AcceptedGreen;
|
|
|
|
/// <summary>
|
|
/// Gets or sets color of enum buttons.
|
|
/// </summary>
|
|
public Color EnumColor { get; set; } = Color.white;
|
|
|
|
/// <summary>
|
|
/// Gets or sets hover color of enum buttons.
|
|
/// </summary>
|
|
public Color EnumHoverColor { get; set; } = Palette.AcceptedGreen;
|
|
}
|