@@ -180,6 +180,7 @@ private void load(IAPIProvider api, OsuColour colour)
180
180
Height = 28 ,
181
181
Direction = FillDirection . Horizontal ,
182
182
Spacing = new Vector2 ( 10f , 0f ) ,
183
+ Margin = new MarginPadding { Bottom = - 2 } ,
183
184
Children = new Drawable [ ]
184
185
{
185
186
flagBadgeAndDateContainer = new FillFlowContainer
@@ -189,7 +190,7 @@ private void load(IAPIProvider api, OsuColour colour)
189
190
RelativeSizeAxes = Axes . Y ,
190
191
Direction = FillDirection . Horizontal ,
191
192
Spacing = new Vector2 ( 5f , 0f ) ,
192
- Width = 87f ,
193
+ Width = 114f ,
193
194
Masking = true ,
194
195
Children = new Drawable [ ]
195
196
{
@@ -199,22 +200,19 @@ private void load(IAPIProvider api, OsuColour colour)
199
200
Origin = Anchor . CentreLeft ,
200
201
Size = new Vector2 ( 28 , 20 ) ,
201
202
} ,
203
+ new UpdateableTeamFlag ( user . Team )
204
+ {
205
+ Anchor = Anchor . CentreLeft ,
206
+ Origin = Anchor . CentreLeft ,
207
+ Size = new Vector2 ( 40 , 20 ) ,
208
+ } ,
202
209
new DateLabel ( Score . Date )
203
210
{
204
211
Anchor = Anchor . CentreLeft ,
205
212
Origin = Anchor . CentreLeft ,
206
213
} ,
207
214
} ,
208
215
} ,
209
- new FillFlowContainer
210
- {
211
- Origin = Anchor . CentreLeft ,
212
- Anchor = Anchor . CentreLeft ,
213
- AutoSizeAxes = Axes . Both ,
214
- Direction = FillDirection . Horizontal ,
215
- Margin = new MarginPadding { Left = edge_margin } ,
216
- Children = statisticsLabels
217
- } ,
218
216
} ,
219
217
} ,
220
218
} ,
@@ -234,6 +232,7 @@ private void load(IAPIProvider api, OsuColour colour)
234
232
GlowColour = Color4Extensions . FromHex ( @"83ccfa" ) ,
235
233
Current = scoreManager . GetBindableTotalScoreString ( Score ) ,
236
234
Font = OsuFont . Numeric . With ( size : 23 ) ,
235
+ Margin = new MarginPadding { Top = 1 } ,
237
236
} ,
238
237
RankContainer = new Container
239
238
{
@@ -250,13 +249,32 @@ private void load(IAPIProvider api, OsuColour colour)
250
249
} ,
251
250
} ,
252
251
} ,
253
- modsContainer = new FillFlowContainer < ModIcon >
252
+ new FillFlowContainer
254
253
{
254
+ AutoSizeAxes = Axes . Both ,
255
255
Anchor = Anchor . BottomRight ,
256
256
Origin = Anchor . BottomRight ,
257
- AutoSizeAxes = Axes . Both ,
258
257
Direction = FillDirection . Horizontal ,
259
- ChildrenEnumerable = Score . Mods . AsOrdered ( ) . Select ( mod => new ModIcon ( mod ) { Scale = new Vector2 ( 0.375f ) } )
258
+ Children = new Drawable [ ]
259
+ {
260
+ new FillFlowContainer
261
+ {
262
+ Anchor = Anchor . CentreRight ,
263
+ Origin = Anchor . CentreRight ,
264
+ AutoSizeAxes = Axes . Both ,
265
+ Direction = FillDirection . Horizontal ,
266
+ Margin = new MarginPadding { Left = edge_margin } ,
267
+ Children = statisticsLabels
268
+ } ,
269
+ modsContainer = new FillFlowContainer < ModIcon >
270
+ {
271
+ Anchor = Anchor . CentreRight ,
272
+ Origin = Anchor . CentreRight ,
273
+ AutoSizeAxes = Axes . Both ,
274
+ Direction = FillDirection . Horizontal ,
275
+ ChildrenEnumerable = Score . Mods . AsOrdered ( ) . Select ( mod => new ModIcon ( mod ) { Scale = new Vector2 ( 0.34f ) } )
276
+ } ,
277
+ }
260
278
} ,
261
279
} ,
262
280
} ,
@@ -324,7 +342,7 @@ protected override void OnHoverLost(HoverLostEvent e)
324
342
325
343
private partial class ScoreComponentLabel : Container , IHasTooltip
326
344
{
327
- private const float icon_size = 20 ;
345
+ private const float icon_size = 16 ;
328
346
private readonly FillFlowContainer content ;
329
347
330
348
public override bool Contains ( Vector2 screenSpacePos ) => content . Contains ( screenSpacePos ) ;
@@ -340,7 +358,7 @@ public ScoreComponentLabel(LeaderboardScoreStatistic statistic)
340
358
{
341
359
AutoSizeAxes = Axes . Both ,
342
360
Direction = FillDirection . Horizontal ,
343
- Padding = new MarginPadding { Right = 10 } ,
361
+ Padding = new MarginPadding { Right = 5 } ,
344
362
Children = new Drawable [ ]
345
363
{
346
364
new Container
@@ -375,7 +393,8 @@ public ScoreComponentLabel(LeaderboardScoreStatistic statistic)
375
393
Anchor = Anchor . CentreLeft ,
376
394
Origin = Anchor . CentreLeft ,
377
395
Text = statistic . Value ,
378
- Font = OsuFont . GetFont ( size : 17 , weight : FontWeight . Bold , fixedWidth : true )
396
+ Spacing = new Vector2 ( - 1 , 0 ) ,
397
+ Font = OsuFont . GetFont ( size : 14 , weight : FontWeight . Bold , fixedWidth : true )
379
398
} ,
380
399
} ,
381
400
} ;
@@ -406,7 +425,7 @@ private partial class DateLabel : DrawableDate
406
425
public DateLabel ( DateTimeOffset date )
407
426
: base ( date )
408
427
{
409
- Font = OsuFont . GetFont ( size : 17 , weight : FontWeight . Bold , italics : true ) ;
428
+ Font = OsuFont . GetFont ( size : 13 , weight : FontWeight . Bold , italics : true ) ;
410
429
}
411
430
412
431
protected override string Format ( ) => Date . ToShortRelativeTime ( TimeSpan . FromSeconds ( 30 ) ) ;
0 commit comments