1
- // Copyright (c) ppy Pty Ltd <[email protected] >. Licensed under the MIT Licence.
2
- // See the LICENCE file in the repository root for full licence text.
3
1
4
2
using System ;
5
3
using System . Collections . Generic ;
@@ -83,9 +81,6 @@ private void load()
83
81
Masking = true ;
84
82
CornerRadius = corner_radius ;
85
83
86
- // Hide the top edge of the wedge off-screen (so we don't see the corner).
87
- Margin = new MarginPadding { Top = - corner_radius } ;
88
-
89
84
InternalChildren = new Drawable [ ]
90
85
{
91
86
new WedgeBackground ( ) ,
@@ -94,28 +89,26 @@ private void load()
94
89
RelativeSizeAxes = Axes . X ,
95
90
AutoSizeAxes = Axes . Y ,
96
91
Direction = FillDirection . Vertical ,
97
- Padding = new MarginPadding { Left = SongSelect . WEDGE_CONTENT_MARGIN } ,
92
+ Padding = new MarginPadding
93
+ {
94
+ Top = SongSelect . WEDGE_CONTENT_MARGIN ,
95
+ Left = SongSelect . WEDGE_CONTENT_MARGIN
96
+ } ,
98
97
Spacing = new Vector2 ( 0f , 4f ) ,
99
98
Shear = - shear ,
100
99
Children = new Drawable [ ]
101
100
{
102
- new ShearAlignedDrawable ( shear , new Container
101
+ new ShearAlignedDrawable ( shear , statusPill = new BeatmapSetOnlineStatusPill
103
102
{
104
- RelativeSizeAxes = Axes . X ,
105
- Height = 35 ,
106
- Child = statusPill = new BeatmapSetOnlineStatusPill
107
- {
108
- AutoSizeAxes = Axes . Both ,
109
- Margin = new MarginPadding { Right = 20f , Top = 20f } ,
110
- TextSize = OsuFont . Caption . Size ,
111
- TextPadding = new MarginPadding { Horizontal = 6 , Vertical = 1 } ,
112
- }
103
+ ShowUnknownStatus = true ,
104
+ TextSize = OsuFont . Caption . Size ,
105
+ TextPadding = new MarginPadding { Horizontal = 6 , Vertical = 1 } ,
113
106
} ) ,
114
107
new ShearAlignedDrawable ( shear , titleContainer = new Container
115
108
{
116
109
RelativeSizeAxes = Axes . X ,
117
- Height = OsuFont . Title . Size + 2 ,
118
- Margin = new MarginPadding { Bottom = - 5f } ,
110
+ Height = OsuFont . Title . Size ,
111
+ Margin = new MarginPadding { Bottom = - 4f } ,
119
112
Child = titleLink = new OsuHoverContainer
120
113
{
121
114
AutoSizeAxes = Axes . Both ,
0 commit comments