From 6de6c6534c4a65b205a5bf481b884c59d5db07a6 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 18 Jul 2019 23:33:46 +0200 Subject: [PATCH] De-capitalize "Esc". --- Content.Client/UserInterface/GameHud.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Content.Client/UserInterface/GameHud.cs b/Content.Client/UserInterface/GameHud.cs index f06aadf18e..44e425b0da 100644 --- a/Content.Client/UserInterface/GameHud.cs +++ b/Content.Client/UserInterface/GameHud.cs @@ -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();