Use common notice colors for UPnP status labels
This commit is contained in:
committed by
abcdefg30
parent
b80928bd95
commit
1020a7bfab
@@ -154,9 +154,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
noticesLabelB.Text = status == UPnPStatus.Enabled ? "Enabled" :
|
noticesLabelB.Text = status == UPnPStatus.Enabled ? "Enabled" :
|
||||||
status == UPnPStatus.NotSupported ? "Not Supported" : "Disabled";
|
status == UPnPStatus.NotSupported ? "Not Supported" : "Disabled";
|
||||||
|
|
||||||
noticesLabelB.TextColor = status == UPnPStatus.Enabled ? ChromeMetrics.Get<Color>("UPnPEnabledColor") :
|
noticesLabelB.TextColor = status == UPnPStatus.Enabled ? ChromeMetrics.Get<Color>("NoticeSuccessColor") :
|
||||||
status == UPnPStatus.NotSupported ? ChromeMetrics.Get<Color>("UPnPNotSupportedColor") :
|
status == UPnPStatus.NotSupported ? ChromeMetrics.Get<Color>("NoticeErrorColor") :
|
||||||
ChromeMetrics.Get<Color>("UPnPDisabledColor");
|
ChromeMetrics.Get<Color>("NoticeInfoColor");
|
||||||
|
|
||||||
var bWidth = Game.Renderer.Fonts[noticesLabelB.Font].Measure(noticesLabelB.Text).X;
|
var bWidth = Game.Renderer.Fonts[noticesLabelB.Font].Measure(noticesLabelB.Text).X;
|
||||||
noticesLabelB.Bounds.X = noticesLabelA.Bounds.Right;
|
noticesLabelB.Bounds.X = noticesLabelA.Bounds.Right;
|
||||||
|
|||||||
@@ -42,9 +42,6 @@ Metrics:
|
|||||||
TextfieldColorHighlight: 195BC4
|
TextfieldColorHighlight: 195BC4
|
||||||
TextfieldFont: Regular
|
TextfieldFont: Regular
|
||||||
WaitingGameColor: 00FF00
|
WaitingGameColor: 00FF00
|
||||||
UPnPDisabledColor: FFFFFF
|
|
||||||
UPnPEnabledColor: 00FF00
|
|
||||||
UPnPNotSupportedColor: FF0000
|
|
||||||
NoticeInfoColor: FFFFFF
|
NoticeInfoColor: FFFFFF
|
||||||
NoticeWarningColor: FFA500
|
NoticeWarningColor: FFA500
|
||||||
NoticeSuccessColor: 00FF00
|
NoticeSuccessColor: 00FF00
|
||||||
|
|||||||
Reference in New Issue
Block a user