Update submodule and styling

This commit is contained in:
Pieter-Jan Briers
2019-03-11 09:07:56 +01:00
parent ccaa995702
commit 2234641e4a
2 changed files with 26 additions and 1 deletions

View File

@@ -115,6 +115,18 @@ namespace Content.Client.UserInterface
BackgroundColor = new Color(160, 160, 160), ContentMarginTopOverride = 10 BackgroundColor = new Color(160, 160, 160), ContentMarginTopOverride = 10
}; };
var progressBarBackground = new StyleBoxFlat
{
BackgroundColor = new Color(0.25f, 0.25f, 0.25f)
};
progressBarBackground.SetContentMarginOverride(StyleBox.Margin.Vertical, 5);
var progressBarForeground = new StyleBoxFlat
{
BackgroundColor = new Color(0.25f, 0.50f, 0.25f)
};
progressBarForeground.SetContentMarginOverride(StyleBox.Margin.Vertical, 5);
Stylesheet = new Stylesheet(new[] Stylesheet = new Stylesheet(new[]
{ {
// Default font. // Default font.
@@ -288,6 +300,19 @@ namespace Content.Client.UserInterface
new StyleProperty(ScrollBar.StylePropertyGrabber, new StyleProperty(ScrollBar.StylePropertyGrabber,
hScrollBarGrabberGrabbed), hScrollBarGrabberGrabbed),
}), }),
// ProgressBar
new StyleRule(new SelectorElement(typeof(ProgressBar), null, null, null),
new[]
{
new StyleProperty(ProgressBar.StylePropertyBackground, progressBarBackground)
}),
new StyleRule(new SelectorElement(typeof(ProgressBar), null, null, null),
new[]
{
new StyleProperty(ProgressBar.StylePropertyForeground, progressBarForeground)
}),
}); });
} }
} }

2
engine

Submodule engine updated: 2ff15f7fb0...d139203367