mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Use expression body for property get/set where possible
This commit is contained in:
@ -74,7 +74,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
private bool glowing;
|
||||
public bool Glowing
|
||||
{
|
||||
get { return glowing; }
|
||||
get => glowing;
|
||||
set
|
||||
{
|
||||
glowing = value;
|
||||
@ -94,10 +94,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
public bool Expanded
|
||||
{
|
||||
set
|
||||
{
|
||||
this.ResizeTo(new Vector2(value ? EXPANDED_SIZE : COLLAPSED_SIZE, 12), 500, Easing.OutQuint);
|
||||
}
|
||||
set => this.ResizeTo(new Vector2(value ? EXPANDED_SIZE : COLLAPSED_SIZE, 12), 500, Easing.OutQuint);
|
||||
}
|
||||
|
||||
private readonly Bindable<bool> current = new Bindable<bool>();
|
||||
@ -118,7 +115,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
private Color4 accentColour;
|
||||
public Color4 AccentColour
|
||||
{
|
||||
get { return accentColour; }
|
||||
get => accentColour;
|
||||
set
|
||||
{
|
||||
accentColour = value;
|
||||
@ -130,7 +127,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
private Color4 glowingAccentColour;
|
||||
public Color4 GlowingAccentColour
|
||||
{
|
||||
get { return glowingAccentColour; }
|
||||
get => glowingAccentColour;
|
||||
set
|
||||
{
|
||||
glowingAccentColour = value;
|
||||
@ -142,7 +139,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
private Color4 glowColour;
|
||||
public Color4 GlowColour
|
||||
{
|
||||
get { return glowColour; }
|
||||
get => glowColour;
|
||||
set
|
||||
{
|
||||
glowColour = value;
|
||||
|
Reference in New Issue
Block a user