1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-13 20:33:35 +08:00

Adjust padding and text size in editor inspector (#36843)

It was taking up way too much vertical space previously.

I'm using the same font specs that are in the new dropdown header, which
seem to work quite well. Negative padding because without it everything
is way too vertically sparse.

Why? I was looking at [this
discussion](https://github.com/ppy/osu/discussions/36708) and like "we
need to have SV visible here" but there's really not much room with all
this text in the way.
This commit is contained in:
Dean Herbert
2026-03-06 19:32:19 +09:00
committed by GitHub
Unverified
parent c1555af620
commit 8fe63ade31
@@ -35,14 +35,14 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected void AddHeader(string header) => InspectorText.AddParagraph($"{header}: ", s =>
{
s.Padding = new MarginPadding { Top = 2 };
s.Font = s.Font.With(size: 12);
s.Font = OsuFont.Style.Caption1;
s.Colour = colourProvider.Content2;
});
protected void AddValue(string value) => InspectorText.AddParagraph(value, s =>
{
s.Font = s.Font.With(weight: FontWeight.SemiBold);
s.Padding = new MarginPadding { Top = -5 };
s.Font = OsuFont.Style.Body;
s.Colour = colourProvider.Content1;
});
}