Removed customization for "Normal" and "TextColor"
This commit is contained in:
@@ -568,8 +568,7 @@ namespace FlaxEditor
|
||||
BackgroundColorSelected = Color.Transparent,
|
||||
BorderColorHighlighted = Color.Transparent,
|
||||
Text = "Save Now",
|
||||
TooltipText = "Saves now and restarts the auto save timer.",
|
||||
TextColor = Style.Current.Statusbar.TextColor
|
||||
TooltipText = "Saves now and restarts the auto save timer."
|
||||
};
|
||||
_saveNowButton.LocalX += 120;
|
||||
_saveNowButton.Clicked += () => _autoSaveNow = true;
|
||||
@@ -591,8 +590,7 @@ namespace FlaxEditor
|
||||
BackgroundColorSelected = Color.Transparent,
|
||||
BorderColorHighlighted = Color.Transparent,
|
||||
Text = "Cancel",
|
||||
TooltipText = "Cancels this auto save.",
|
||||
TextColor = Style.Current.Statusbar.TextColor
|
||||
TooltipText = "Cancels this auto save."
|
||||
};
|
||||
_cancelSaveButton.LocalX += 180;
|
||||
_cancelSaveButton.Clicked += () =>
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace FlaxEditor.GUI
|
||||
/// <summary>
|
||||
/// Gets or sets the status text color
|
||||
/// </summary>
|
||||
public Color TextColor { get; set; } = Style.Current.Statusbar.TextColor;
|
||||
public Color TextColor { get; set; } = Style.Current.Foreground;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="StatusBar"/> class.
|
||||
|
||||
@@ -281,7 +281,7 @@ namespace FlaxEditor.Modules
|
||||
if (Editor.StateMachine.IsPlayMode)
|
||||
color = Style.Current.Statusbar.PlayMode;
|
||||
else
|
||||
color = Style.Current.Statusbar.Normal;
|
||||
color = Style.Current.BackgroundSelected;
|
||||
|
||||
string text;
|
||||
if (_statusMessages != null && _statusMessages.Count != 0)
|
||||
@@ -761,8 +761,7 @@ namespace FlaxEditor.Modules
|
||||
HorizontalAlignment = TextAlignment.Far,
|
||||
AnchorPreset = AnchorPresets.HorizontalStretchMiddle,
|
||||
Parent = progressPanel,
|
||||
Offsets = new Margin(progressBarRightMargin, progressBarWidth + progressBarLeftMargin + progressBarRightMargin, 0, 0),
|
||||
TextColor = Style.Current.Statusbar.TextColor
|
||||
Offsets = new Margin(progressBarRightMargin, progressBarWidth + progressBarLeftMargin + progressBarRightMargin, 0, 0)
|
||||
};
|
||||
|
||||
UpdateStatusBar();
|
||||
|
||||
@@ -246,8 +246,6 @@ namespace FlaxEditor.Options
|
||||
|
||||
Statusbar = new Style.StatusbarStyle()
|
||||
{
|
||||
TextColor = Color.White,
|
||||
Normal = Color.FromBgra(0xFF007ACC),
|
||||
PlayMode = Color.FromBgra(0xFF2F9135),
|
||||
Failed = Color.FromBgra(0xFF9C2424),
|
||||
Loading = Color.FromBgra(0xFF2D2D30)
|
||||
|
||||
@@ -279,8 +279,6 @@ namespace FlaxEngine
|
||||
SharedTooltip = new Tooltip(),
|
||||
Statusbar = new Style.StatusbarStyle()
|
||||
{
|
||||
TextColor = Color.White,
|
||||
Normal = Color.FromBgra(0xFF007ACC),
|
||||
PlayMode = Color.FromBgra(0xFF2F9135),
|
||||
Failed = Color.FromBgra(0xFF9C2424),
|
||||
Loading = Color.FromBgra(0xFF2D2D30)
|
||||
|
||||
@@ -254,16 +254,6 @@ namespace FlaxEngine.GUI
|
||||
[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>
|
||||
|
||||
Reference in New Issue
Block a user