mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Move private methods below public
This commit is contained in:
parent
406bc23fde
commit
6dee287a82
@ -16,6 +16,27 @@ namespace osu.Game.Overlays
|
||||
this.colourScheme = colourScheme;
|
||||
}
|
||||
|
||||
public Color4 Highlight1 => convert(1, 0.7f);
|
||||
public Color4 Content1 => convert(0.4f, 1);
|
||||
public Color4 Content2 => convert(0.4f, 0.9f);
|
||||
public Color4 Light1 => convert(0.4f, 0.8f);
|
||||
public Color4 Light2 => convert(0.4f, 0.75f);
|
||||
public Color4 Light3 => convert(0.4f, 0.7f);
|
||||
public Color4 Light4 => convert(0.4f, 0.5f);
|
||||
public Color4 Dark1 => convert(0.2f, 0.35f);
|
||||
public Color4 Dark2 => convert(0.2f, 0.3f);
|
||||
public Color4 Dark3 => convert(0.2f, 0.25f);
|
||||
public Color4 Dark4 => convert(0.2f, 0.2f);
|
||||
public Color4 Dark5 => convert(0.2f, 0.15f);
|
||||
public Color4 Dark6 => convert(0.2f, 0.1f);
|
||||
public Color4 Foreground1 => convert(0.1f, 0.6f);
|
||||
public Color4 Background1 => convert(0.1f, 0.4f);
|
||||
public Color4 Background2 => convert(0.1f, 0.3f);
|
||||
public Color4 Background3 => convert(0.1f, 0.25f);
|
||||
public Color4 Background4 => convert(0.1f, 0.2f);
|
||||
public Color4 Background5 => convert(0.1f, 0.15f);
|
||||
public Color4 Background6 => convert(0.1f, 0.1f);
|
||||
|
||||
private Color4 convert(float saturation, float lightness) => Color4.FromHsl(new Vector4(getBaseHue(colourScheme), saturation, lightness, 1));
|
||||
|
||||
// See https://github.com/ppy/osu-web/blob/4218c288292d7c810b619075471eaea8bbb8f9d8/app/helpers.php#L1463
|
||||
@ -55,27 +76,6 @@ namespace osu.Game.Overlays
|
||||
|
||||
return hue / 360f;
|
||||
}
|
||||
|
||||
public Color4 Highlight1 => convert(1, 0.7f);
|
||||
public Color4 Content1 => convert(0.4f, 1);
|
||||
public Color4 Content2 => convert(0.4f, 0.9f);
|
||||
public Color4 Light1 => convert(0.4f, 0.8f);
|
||||
public Color4 Light2 => convert(0.4f, 0.75f);
|
||||
public Color4 Light3 => convert(0.4f, 0.7f);
|
||||
public Color4 Light4 => convert(0.4f, 0.5f);
|
||||
public Color4 Dark1 => convert(0.2f, 0.35f);
|
||||
public Color4 Dark2 => convert(0.2f, 0.3f);
|
||||
public Color4 Dark3 => convert(0.2f, 0.25f);
|
||||
public Color4 Dark4 => convert(0.2f, 0.2f);
|
||||
public Color4 Dark5 => convert(0.2f, 0.15f);
|
||||
public Color4 Dark6 => convert(0.2f, 0.1f);
|
||||
public Color4 Foreground1 => convert(0.1f, 0.6f);
|
||||
public Color4 Background1 => convert(0.1f, 0.4f);
|
||||
public Color4 Background2 => convert(0.1f, 0.3f);
|
||||
public Color4 Background3 => convert(0.1f, 0.25f);
|
||||
public Color4 Background4 => convert(0.1f, 0.2f);
|
||||
public Color4 Background5 => convert(0.1f, 0.15f);
|
||||
public Color4 Background6 => convert(0.1f, 0.1f);
|
||||
}
|
||||
|
||||
public enum OverlayColourScheme
|
||||
|
Loading…
Reference in New Issue
Block a user