Skip to content

Commit

Permalink
Minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abcdefg30 committed Oct 6, 2019
1 parent 8dcd736 commit 0df767e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverStatsLogic.cs
Expand Up @@ -488,9 +488,7 @@ void AdjustHeader(ContainerWidget headerTemplate)
headerTemplate.Get<GradientColorBlockWidget>("HEADER_GRADIENT").Bounds.X += offset;

foreach (var headerLabel in headerTemplate.Children.OfType<LabelWidget>())
{
headerLabel.Bounds.X += offset;
}
}

static void AddPlayerFlagAndName(ScrollItemWidget template, Player player)
Expand Down Expand Up @@ -526,8 +524,12 @@ string AverageOrdersPerMinute(double orders)

static Color GetPowerColor(PowerState state)
{
if (state == PowerState.Critical) return Color.Red;
if (state == PowerState.Low) return Color.Orange;
if (state == PowerState.Critical)
return Color.Red;

if (state == PowerState.Low)
return Color.Orange;

return Color.LimeGreen;
}

Expand Down

0 comments on commit 0df767e

Please sign in to comment.