Customizable statusbar
This commit is contained in:
@@ -277,6 +277,14 @@ namespace FlaxEngine
|
||||
TextBoxBackgroundSelected = Color.FromBgra(0xFF3F3F46),
|
||||
CollectionBackgroundColor = Color.FromBgra(0x14CCCCCC),
|
||||
SharedTooltip = new Tooltip(),
|
||||
Statusbar = new Style.StatusbarStyle()
|
||||
{
|
||||
TextColor = Color.White,
|
||||
Normal = Color.FromBgra(0xFF007ACC),
|
||||
PlayMode = Color.ParseHex("#2f9135"),
|
||||
Failed = Color.ParseHex("#9c2424"),
|
||||
Loading = Color.ParseHex("#2d2d30")
|
||||
}
|
||||
};
|
||||
style.DragWindow = style.BackgroundSelected * 0.7f;
|
||||
|
||||
|
||||
@@ -164,6 +164,12 @@ namespace FlaxEngine.GUI
|
||||
[EditorOrder(200)]
|
||||
public Color ProgressNormal;
|
||||
|
||||
/// <summary>
|
||||
/// The status bar style
|
||||
/// </summary>
|
||||
[EditorOrder(210)]
|
||||
public StatusbarStyle Statusbar;
|
||||
|
||||
/// <summary>
|
||||
/// The arrow right icon.
|
||||
/// </summary>
|
||||
@@ -241,5 +247,37 @@ namespace FlaxEngine.GUI
|
||||
/// </summary>
|
||||
[EditorOrder(340)]
|
||||
public Tooltip SharedTooltip;
|
||||
|
||||
/// <summary>
|
||||
/// Style for the Statusbar
|
||||
/// </summary>
|
||||
[System.Serializable, ShowInEditor]
|
||||
public struct StatusbarStyle
|
||||
{
|
||||
/// <summary>
|
||||
/// Color of the text in the Statusbar
|
||||
/// </summary>
|
||||
public Color TextColor;
|
||||
|
||||
/// <summary>
|
||||
/// Color of the Statusbar in its default state
|
||||
/// </summary>
|
||||
public Color Normal;
|
||||
|
||||
/// <summary>
|
||||
/// Color of the Statusbar when in Play Mode
|
||||
/// </summary>
|
||||
public Color PlayMode;
|
||||
|
||||
/// <summary>
|
||||
/// Color of the Statusbar when in loading state (e.g. when importing assets)
|
||||
/// </summary>
|
||||
public Color Loading;
|
||||
|
||||
/// <summary>
|
||||
/// Color of the Statusbar in its failed state (e.g. with compilation errors)
|
||||
/// </summary>
|
||||
public Color Failed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user