mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 07:07:45 +08:00
Change colour to match bottom timeline (and adjust tween sligthly)
This commit is contained in:
parent
f88f05717a
commit
00a866b699
@ -44,7 +44,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
Child = new Box
|
Child = new Box
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = colours.GreyCarmineLight,
|
Colour = colours.PurpleLight,
|
||||||
Alpha = 0.4f,
|
Alpha = 0.4f,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -204,12 +204,12 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
{
|
{
|
||||||
bool active = IsHovered || IsDragged;
|
bool active = IsHovered || IsDragged;
|
||||||
|
|
||||||
var colour = colours.GreyCarmineLighter;
|
var colour = colours.PurpleLighter;
|
||||||
if (active)
|
if (active)
|
||||||
colour = colour.Lighten(0.3f);
|
colour = colour.Lighten(0.3f);
|
||||||
|
|
||||||
this.FadeColour(colour, 400, Easing.OutQuint);
|
this.FadeColour(colour, 400, Easing.OutQuint);
|
||||||
handle.ResizeWidthTo(active ? 20 : 10, 400, Easing.OutElastic);
|
handle.ResizeWidthTo(active ? 20 : 10, 400, Easing.OutElasticHalf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user