mirror of https://github.com/ppy/osu
Adjust height of ShowMore button
This commit is contained in:
parent
4a444face1
commit
3b5b799d60
|
@ -40,13 +40,14 @@ public string Text
|
||||||
|
|
||||||
public ShowMoreButton()
|
public ShowMoreButton()
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both;
|
Height = 30;
|
||||||
|
Width = 140;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override Drawable CreateContent() => new CircularContainer
|
protected override Drawable CreateContent() => new CircularContainer
|
||||||
{
|
{
|
||||||
Masking = true,
|
Masking = true,
|
||||||
Size = new Vector2(140, 30),
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
background = new Box
|
background = new Box
|
||||||
|
|
|
@ -14,6 +14,8 @@ public class CommentsShowMoreButton : ShowMoreButton
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OverlayColourProvider colourProvider)
|
private void load(OverlayColourProvider colourProvider)
|
||||||
{
|
{
|
||||||
|
Height = 20;
|
||||||
|
|
||||||
IdleColour = colourProvider.Background2;
|
IdleColour = colourProvider.Background2;
|
||||||
HoverColour = colourProvider.Background1;
|
HoverColour = colourProvider.Background1;
|
||||||
ChevronIconColour = colourProvider.Foreground1;
|
ChevronIconColour = colourProvider.Foreground1;
|
||||||
|
|
Loading…
Reference in New Issue