246 lines
6.0 KiB
C#
246 lines
6.0 KiB
C#
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
|
|
|
namespace FlaxEngine.GUI
|
|
{
|
|
/// <summary>
|
|
/// Describes GUI controls style (which fonts and colors use etc.). Defines the default values used by the GUI control.s
|
|
/// </summary>
|
|
public class Style
|
|
{
|
|
/// <summary>
|
|
/// Global GUI style used by all the controls.
|
|
/// </summary>
|
|
public static Style Current { get; set; }
|
|
|
|
[Serialize]
|
|
private FontReference _fontTitle;
|
|
|
|
/// <summary>
|
|
/// The font title.
|
|
/// </summary>
|
|
[NoSerialize]
|
|
[EditorOrder(10)]
|
|
public Font FontTitle
|
|
{
|
|
get => _fontTitle.GetFont();
|
|
set => _fontTitle = new FontReference(value);
|
|
}
|
|
|
|
[Serialize]
|
|
private FontReference _fontLarge;
|
|
|
|
/// <summary>
|
|
/// The font large.
|
|
/// </summary>
|
|
[NoSerialize]
|
|
[EditorOrder(20)]
|
|
public Font FontLarge
|
|
{
|
|
get => _fontLarge.GetFont();
|
|
set => _fontLarge = new FontReference(value);
|
|
}
|
|
|
|
[Serialize]
|
|
private FontReference _fontMedium;
|
|
|
|
/// <summary>
|
|
/// The font medium.
|
|
/// </summary>
|
|
[NoSerialize]
|
|
[EditorOrder(30)]
|
|
public Font FontMedium
|
|
{
|
|
get => _fontMedium.GetFont();
|
|
set => _fontMedium = new FontReference(value);
|
|
}
|
|
|
|
[Serialize]
|
|
private FontReference _fontSmall;
|
|
|
|
/// <summary>
|
|
/// The font small.
|
|
/// </summary>
|
|
[NoSerialize]
|
|
[EditorOrder(40)]
|
|
public Font FontSmall
|
|
{
|
|
get => _fontSmall.GetFont();
|
|
set => _fontSmall = new FontReference(value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// The background color.
|
|
/// </summary>
|
|
[EditorOrder(60)]
|
|
public Color Background;
|
|
|
|
/// <summary>
|
|
/// The light background color.
|
|
/// </summary>
|
|
[EditorOrder(70)]
|
|
public Color LightBackground;
|
|
|
|
/// <summary>
|
|
/// The drag window color.
|
|
/// </summary>
|
|
[EditorOrder(80)]
|
|
public Color DragWindow;
|
|
|
|
/// <summary>
|
|
/// The foreground color.
|
|
/// </summary>
|
|
[EditorOrder(90)]
|
|
public Color Foreground;
|
|
|
|
/// <summary>
|
|
/// The foreground grey.
|
|
/// </summary>
|
|
[EditorOrder(100)]
|
|
public Color ForegroundGrey;
|
|
|
|
/// <summary>
|
|
/// The foreground disabled.
|
|
/// </summary>
|
|
[EditorOrder(110)]
|
|
public Color ForegroundDisabled;
|
|
|
|
/// <summary>
|
|
/// The background highlighted color.
|
|
/// </summary>
|
|
[EditorOrder(120)]
|
|
public Color BackgroundHighlighted;
|
|
|
|
/// <summary>
|
|
/// The border highlighted color.
|
|
/// </summary>
|
|
[EditorOrder(130)]
|
|
public Color BorderHighlighted;
|
|
|
|
/// <summary>
|
|
/// The background selected color.
|
|
/// </summary>
|
|
[EditorOrder(140)]
|
|
public Color BackgroundSelected;
|
|
|
|
/// <summary>
|
|
/// The border selected color.
|
|
/// </summary>
|
|
[EditorOrder(150)]
|
|
public Color BorderSelected;
|
|
|
|
/// <summary>
|
|
/// The background normal color.
|
|
/// </summary>
|
|
[EditorOrder(160)]
|
|
public Color BackgroundNormal;
|
|
|
|
/// <summary>
|
|
/// The border normal color.
|
|
/// </summary>
|
|
[EditorOrder(170)]
|
|
public Color BorderNormal;
|
|
|
|
/// <summary>
|
|
/// The text box background color.
|
|
/// </summary>
|
|
[EditorOrder(180)]
|
|
public Color TextBoxBackground;
|
|
|
|
/// <summary>
|
|
/// The text box background selected color.
|
|
/// </summary>
|
|
[EditorOrder(190)]
|
|
public Color TextBoxBackgroundSelected;
|
|
|
|
/// <summary>
|
|
/// The collection background color.
|
|
/// </summary>
|
|
[EditorOrder(195)]
|
|
public Color CollectionBackgroundColor;
|
|
|
|
/// <summary>
|
|
/// The progress normal color.
|
|
/// </summary>
|
|
[EditorOrder(200)]
|
|
public Color ProgressNormal;
|
|
|
|
/// <summary>
|
|
/// The arrow right icon.
|
|
/// </summary>
|
|
[EditorOrder(220)]
|
|
public SpriteHandle ArrowRight;
|
|
|
|
/// <summary>
|
|
/// The arrow down icon.
|
|
/// </summary>
|
|
[EditorOrder(230)]
|
|
public SpriteHandle ArrowDown;
|
|
|
|
/// <summary>
|
|
/// The search icon.
|
|
/// </summary>
|
|
[EditorOrder(240)]
|
|
public SpriteHandle Search;
|
|
|
|
/// <summary>
|
|
/// The settings icon.
|
|
/// </summary>
|
|
[EditorOrder(250)]
|
|
public SpriteHandle Settings;
|
|
|
|
/// <summary>
|
|
/// The cross icon.
|
|
/// </summary>
|
|
[EditorOrder(260)]
|
|
public SpriteHandle Cross;
|
|
|
|
/// <summary>
|
|
/// The CheckBox intermediate icon.
|
|
/// </summary>
|
|
[EditorOrder(270)]
|
|
public SpriteHandle CheckBoxIntermediate;
|
|
|
|
/// <summary>
|
|
/// The CheckBox tick icon.
|
|
/// </summary>
|
|
[EditorOrder(280)]
|
|
public SpriteHandle CheckBoxTick;
|
|
|
|
/// <summary>
|
|
/// The status bar size grip icon.
|
|
/// </summary>
|
|
[EditorOrder(290)]
|
|
public SpriteHandle StatusBarSizeGrip;
|
|
|
|
/// <summary>
|
|
/// The translate icon.
|
|
/// </summary>
|
|
[EditorOrder(300)]
|
|
public SpriteHandle Translate;
|
|
|
|
/// <summary>
|
|
/// The rotate icon.
|
|
/// </summary>
|
|
[EditorOrder(310)]
|
|
public SpriteHandle Rotate;
|
|
|
|
/// <summary>
|
|
/// The scale icon.
|
|
/// </summary>
|
|
[EditorOrder(320)]
|
|
public SpriteHandle Scale;
|
|
|
|
/// <summary>
|
|
/// The scalar icon.
|
|
/// </summary>
|
|
[EditorOrder(330)]
|
|
public SpriteHandle Scalar;
|
|
|
|
/// <summary>
|
|
/// The shared tooltip control used by the controls if no custom tooltip is provided.
|
|
/// </summary>
|
|
[EditorOrder(340)]
|
|
public Tooltip SharedTooltip;
|
|
}
|
|
}
|