mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Fix toolbar volume bar masking
This commit is contained in:
parent
e14e2a4629
commit
9833dd955f
@ -21,7 +21,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
{
|
||||
public partial class ToolbarMusicButton : ToolbarOverlayToggleButton
|
||||
{
|
||||
private Circle volumeBar;
|
||||
private Box volumeBar;
|
||||
|
||||
protected override Anchor TooltipAnchor => Anchor.TopRight;
|
||||
|
||||
@ -45,14 +45,15 @@ namespace osu.Game.Overlays.Toolbar
|
||||
Height = IconContainer.Height,
|
||||
Margin = new MarginPadding { Horizontal = 2.5f },
|
||||
Masking = true,
|
||||
Children = new[]
|
||||
CornerRadius = 3f,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Circle
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = Color4.White.Opacity(0.25f),
|
||||
},
|
||||
volumeBar = new Circle
|
||||
volumeBar = new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Height = 0f,
|
||||
|
Loading…
Reference in New Issue
Block a user