mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Replace copy-constructor/method with extension method
This commit is contained in:
@ -165,7 +165,7 @@ namespace osu.Game.Overlays.Profile
|
||||
Y = cover_height,
|
||||
Colour = OsuColour.Gray(34),
|
||||
},
|
||||
infoTextLeft = new LinkFlowContainer(t => t.Font = OsuFont.GetFont(t.Font, size: 14))
|
||||
infoTextLeft = new LinkFlowContainer(t => t.Font = t.Font.With(size: 14))
|
||||
{
|
||||
X = UserProfileOverlay.CONTENT_X_MARGIN,
|
||||
Y = cover_height + 20,
|
||||
@ -349,7 +349,7 @@ namespace osu.Game.Overlays.Profile
|
||||
colourBar.Show();
|
||||
}
|
||||
|
||||
void boldItalic(SpriteText t) => t.Font = OsuFont.GetFont(t.Font, weight: FontWeight.Bold, italics: true);
|
||||
void boldItalic(SpriteText t) => t.Font = t.Font.With(weight: FontWeight.Bold, italics: true);
|
||||
void lightText(SpriteText t) => t.Alpha = 0.8f;
|
||||
|
||||
OsuSpriteText createScoreText(string text) => new OsuSpriteText
|
||||
|
@ -119,7 +119,7 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
|
||||
}
|
||||
}
|
||||
},
|
||||
new OsuTextFlowContainer(t => t.Font = OsuFont.GetFont(t.Font, size: 19))
|
||||
new OsuTextFlowContainer(t => t.Font = t.Font.With(size: 19))
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
|
Reference in New Issue
Block a user