Update submodule and styling
This commit is contained in:
@@ -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
2
engine
Submodule engine updated: 2ff15f7fb0...d139203367
Reference in New Issue
Block a user