diff --git a/osu.Game/Screens/SelectV2/Panel.cs b/osu.Game/Screens/SelectV2/Panel.cs index 878248dcae..6a1b5cc3a6 100644 --- a/osu.Game/Screens/SelectV2/Panel.cs +++ b/osu.Game/Screens/SelectV2/Panel.cs @@ -120,35 +120,28 @@ namespace osu.Game.Screens.SelectV2 }, Children = new[] { - new BufferedContainer + backgroundBorder = new Box { RelativeSizeAxes = Axes.Both, - Children = new Drawable[] + Colour = Color4.Black, + }, + backgroundLayerHorizontalPadding = new Container + { + RelativeSizeAxes = Axes.Both, + Child = new Container { - backgroundBorder = new Box + RelativeSizeAxes = Axes.Both, + Masking = true, + CornerRadius = corner_radius, + Children = new Drawable[] { - RelativeSizeAxes = Axes.Both, - Colour = Color4.Black, - }, - backgroundLayerHorizontalPadding = new Container - { - RelativeSizeAxes = Axes.Both, - Child = new Container + backgroundGradient = new Box + { + RelativeSizeAxes = Axes.Both, + }, + backgroundContainer = new Container { RelativeSizeAxes = Axes.Both, - Masking = true, - CornerRadius = corner_radius, - Children = new Drawable[] - { - backgroundGradient = new Box - { - RelativeSizeAxes = Axes.Both, - }, - backgroundContainer = new Container - { - RelativeSizeAxes = Axes.Both, - }, - } }, } }, diff --git a/osu.Game/Screens/SelectV2/PanelSetBackground.cs b/osu.Game/Screens/SelectV2/PanelSetBackground.cs index d81a6007d8..ea82755810 100644 --- a/osu.Game/Screens/SelectV2/PanelSetBackground.cs +++ b/osu.Game/Screens/SelectV2/PanelSetBackground.cs @@ -18,7 +18,7 @@ using osuTK.Graphics; namespace osu.Game.Screens.SelectV2 { - public partial class PanelSetBackground : BufferedContainer + public partial class PanelSetBackground : Container { [Resolved] private BeatmapCarousel? beatmapCarousel { get; set; } @@ -52,10 +52,6 @@ namespace osu.Game.Screens.SelectV2 } public PanelSetBackground() - // TODO: for performance reasons we may want this to be true. - // Setting to true will require that the buffered portion is moved to a child such that `FadeIn`/`FadeOut` transforms - // still work. - : base(cachedFrameBuffer: false) { RelativeSizeAxes = Axes.Both; }