Skip to content

Update style of extended details on profile page#38196

Open
diquoks wants to merge 2 commits into
ppy:masterfrom
diquoks:feature/update-profile-details-style
Open

Update style of extended details on profile page#38196
diquoks wants to merge 2 commits into
ppy:masterfrom
diquoks:feature/update-profile-details-style

Conversation

@diquoks

@diquoks diquoks commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

i also decided to tidy up the styling a bit and not break the DRY, don't judge me too harshly

master PR osu-web
Снимок экрана 2026-06-30 162239 Снимок экрана 2026-06-30 161851 Снимок экрана 2026-06-30 161828

@diquoks diquoks left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some side notes

{
var font = OsuFont.Default.With(size: 12);
const float vertical_spacing = 4;
const float horizontal_spacing = 20;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed actually, but i added it for consistency

Comment on lines +132 to +159
public partial class ExtendedDetailsEntryLabel : OsuSpriteText
{
public ExtendedDetailsEntryLabel(LocalisableString text)
{
Font = OsuFont.Default.With(size: 12);
Text = text;
}

[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)
{
Colour = colourProvider.Content1;
}
}

public partial class ExtendedDetailsEntryValue : OsuSpriteText
{
public ExtendedDetailsEntryValue()
{
Font = OsuFont.Default.With(size: 12, weight: FontWeight.Bold);
}

[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)
{
Colour = colourProvider.Content2;
}
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved these elements into separate classes so as not to duplicate styles each time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant