De-capitalize "Esc".

This commit is contained in:
Pieter-Jan Briers
2019-07-18 23:33:46 +02:00
parent 068c997519
commit 6de6c6534c

View File

@@ -71,7 +71,7 @@ namespace Content.Client.UserInterface
// TODO: Pull key names here from the actual key binding config.
// Escape
_buttonEscapeMenu = new TopButton(escapeTexture, "ESC")
_buttonEscapeMenu = new TopButton(escapeTexture, "Esc")
{
ToolTip = _localizationManager.GetString("Open escape menu.")
};
@@ -177,6 +177,8 @@ namespace Content.Client.UserInterface
public sealed class TopButton : BaseButton
{
public const string StyleClassLabelTopButton = "topButtonLabel";
private static readonly Color ColorNormal = Color.FromHex("#7b7e9e");
private static readonly Color ColorHovered = Color.FromHex("#9699bb");
private static readonly Color ColorPressed = Color.FromHex("#00b061");
@@ -210,6 +212,8 @@ namespace Content.Client.UserInterface
ModulateSelfOverride = ColorNormal
});
_label.AddStyleClass(StyleClassLabelTopButton);
_container.SetAnchorAndMarginPreset(LayoutPreset.Wide);
DrawModeChanged();