Fixed type inconsistency and rounding

This commit is contained in:
Ondřej Vajďák 2024-04-14 15:10:05 +02:00
parent 9833dd955f
commit ed6680a61d
1 changed files with 3 additions and 4 deletions

View File

@ -37,7 +37,7 @@ private void load(NowPlayingOverlay music)
StateContainer = music;
Flow.Padding = new MarginPadding { Horizontal = Toolbar.HEIGHT / 4 };
Flow.Add(volumeDisplay = new Container
Flow.Add(volumeDisplay = new CircularContainer
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
@ -45,10 +45,9 @@ private void load(NowPlayingOverlay music)
Height = IconContainer.Height,
Margin = new MarginPadding { Horizontal = 2.5f },
Masking = true,
CornerRadius = 3f,
Children = new Drawable[]
Children = new[]
{
new Circle
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4.White.Opacity(0.25f),