Skip to content

Commit

Permalink
Align right shear from info wedges
Browse files Browse the repository at this point in the history
  • Loading branch information
Joehuu committed Jul 18, 2024
1 parent 19435da commit 736affb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
12 changes: 12 additions & 0 deletions osu.Game/Screens/Select/BeatmapInfoWedgeV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ private void load()
},
new InfoWedgeBackground
{
Padding = new MarginPadding
{
Top = 10,
Left = -WEDGE_CORNER_RADIUS,
Right = SHEAR_WIDTH + COLOUR_BAR_WIDTH
},
Child = new BasicBeatmapInfoContent
{
Padding = new MarginPadding
Expand All @@ -167,6 +173,12 @@ private void load()
},
new InfoWedgeBackground
{
Padding = new MarginPadding
{
Top = 5,
Left = -WEDGE_CORNER_RADIUS,
Right = SHEAR_WIDTH + COLOUR_BAR_WIDTH + 8f,
},
Child = new ExtendedBeatmapInfoContent
{
Padding = new MarginPadding
Expand Down
9 changes: 0 additions & 9 deletions osu.Game/Screens/Select/InfoWedgeBackground.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ public InfoWedgeBackground()
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;

Padding = new MarginPadding
{
Top = 10,
Left = -BeatmapInfoWedgeV2.WEDGE_CORNER_RADIUS,

// TODO: should account top wedge's shear width for alignment (hard to do as this auto-sizes height right now)
Right = BeatmapInfoWedgeV2.SHEAR_WIDTH + BeatmapInfoWedgeV2.COLOUR_BAR_WIDTH
};
}

[BackgroundDependencyLoader]
Expand Down

0 comments on commit 736affb

Please sign in to comment.