Adjust colours and metrics

This commit is contained in:
Dean Herbert
2022-07-20 23:59:09 +09:00
parent f54aff2ece
commit 75453b78c0
2 changed files with 10 additions and 6 deletions

View File

@ -49,13 +49,14 @@ namespace osu.Game.Graphics.UserInterface
mainContent = new Container mainContent = new Container
{ {
Alpha = 0, Alpha = 0,
AutoSizeAxes = Axes.Both, Size = new Vector2(42, 26),
Children = new Drawable[] Children = new Drawable[]
{ {
background = new Container background = new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
CornerRadius = 5, CornerRadius = 5,
CornerExponent = 5f,
Masking = true, Masking = true,
Alpha = idle_background_alpha, Alpha = idle_background_alpha,
Children = new Drawable[] Children = new Drawable[]
@ -71,12 +72,15 @@ namespace osu.Game.Graphics.UserInterface
{ {
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight, Origin = Anchor.TopRight,
Margin = new MarginPadding(1),
Y = -1,
}, },
fpsCounter = new FramesPerSecondCounter fpsCounter = new FramesPerSecondCounter
{ {
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight, Origin = Anchor.TopRight,
Y = 11, Margin = new MarginPadding(1),
Y = 10,
Scale = new Vector2(0.8f), Scale = new Vector2(0.8f),
} }
} }
@ -135,7 +139,7 @@ namespace osu.Game.Graphics.UserInterface
{ {
fadeOutDelegate = Scheduler.AddDelayed(() => fadeOutDelegate = Scheduler.AddDelayed(() =>
{ {
mainContent.FadeTo(0, 1000, Easing.In); mainContent.FadeTo(0, 300, Easing.OutQuint);
isDisplayed = false; isDisplayed = false;
}, 2000); }, 2000);
} }
@ -177,9 +181,9 @@ namespace osu.Game.Graphics.UserInterface
private ColourInfo getColour(double performanceRatio) private ColourInfo getColour(double performanceRatio)
{ {
if (performanceRatio < 0.5f) if (performanceRatio < 0.5f)
return Interpolation.ValueAt(performanceRatio, colours.Red, colours.Orange2, 0, 0.5, Easing.Out); return Interpolation.ValueAt(performanceRatio, colours.Red, colours.Orange2, 0, 0.5);
return Interpolation.ValueAt(performanceRatio, colours.Orange2, colours.Lime3, 0.5, 1, Easing.Out); return Interpolation.ValueAt(performanceRatio, colours.Orange2, colours.Lime0, 0.5, 0.9);
} }
public ITooltip GetCustomTooltip() => new FPSCounterTooltip(); public ITooltip GetCustomTooltip() => new FPSCounterTooltip();

View File

@ -820,7 +820,7 @@ namespace osu.Game
{ {
Anchor = Anchor.BottomRight, Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight, Origin = Anchor.BottomRight,
Margin = new MarginPadding(10), Margin = new MarginPadding(5),
}, topMostOverlayContent.Add); }, topMostOverlayContent.Add);
if (!args?.Any(a => a == @"--no-version-overlay") ?? true) if (!args?.Any(a => a == @"--no-version-overlay") ?? true)