mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Adjust text size to match design
This commit is contained in:
@ -25,6 +25,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose
|
|||||||
{
|
{
|
||||||
private readonly BindableBeatDivisor beatDivisor = new BindableBeatDivisor();
|
private readonly BindableBeatDivisor beatDivisor = new BindableBeatDivisor();
|
||||||
private int currentDivisorIndex;
|
private int currentDivisorIndex;
|
||||||
|
|
||||||
public BeatDivisorControl(BindableBeatDivisor beatDivisor)
|
public BeatDivisorControl(BindableBeatDivisor beatDivisor)
|
||||||
{
|
{
|
||||||
this.beatDivisor.BindTo(beatDivisor);
|
this.beatDivisor.BindTo(beatDivisor);
|
||||||
@ -40,9 +41,9 @@ namespace osu.Game.Screens.Edit.Screens.Compose
|
|||||||
{
|
{
|
||||||
new Box
|
new Box
|
||||||
{
|
{
|
||||||
Name = "Background",
|
Name = "Gray Background",
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = Color4.Black
|
Colour = colours.Gray4
|
||||||
},
|
},
|
||||||
new GridContainer
|
new GridContainer
|
||||||
{
|
{
|
||||||
@ -51,10 +52,23 @@ namespace osu.Game.Screens.Edit.Screens.Compose
|
|||||||
{
|
{
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
|
new Container
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
new Box
|
||||||
|
{
|
||||||
|
Name = "Black Background",
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Colour = Color4.Black
|
||||||
|
},
|
||||||
new TickSliderBar(beatDivisor, BindableBeatDivisor.VALID_DIVISORS)
|
new TickSliderBar(beatDivisor, BindableBeatDivisor.VALID_DIVISORS)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
@ -91,16 +105,6 @@ namespace osu.Game.Screens.Edit.Screens.Compose
|
|||||||
Action = beatDivisor.Next
|
Action = beatDivisor.Next
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new Drawable[]
|
|
||||||
{
|
|
||||||
null,
|
|
||||||
new TextFlowContainer(s => s.TextSize = 10)
|
|
||||||
{
|
|
||||||
Text = "beat snap divisor",
|
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
TextAnchor = Anchor.TopCentre
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
ColumnDimensions = new[]
|
ColumnDimensions = new[]
|
||||||
{
|
{
|
||||||
@ -113,6 +117,16 @@ namespace osu.Game.Screens.Edit.Screens.Compose
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
new Drawable[]
|
||||||
|
{
|
||||||
|
new TextFlowContainer(s => s.TextSize = 14)
|
||||||
|
{
|
||||||
|
Padding = new MarginPadding { Horizontal = 15 },
|
||||||
|
Text = "beat snap divisor",
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
TextAnchor = Anchor.TopCentre
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
RowDimensions = new[]
|
RowDimensions = new[]
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user