mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Use expression body for property get/set where possible
This commit is contained in:
@ -19,7 +19,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// </summary>
|
||||
public Color4 IconColour
|
||||
{
|
||||
get { return iconColour ?? Color4.White; }
|
||||
get => iconColour ?? Color4.White;
|
||||
set
|
||||
{
|
||||
iconColour = value;
|
||||
@ -34,8 +34,8 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// </summary>
|
||||
public Color4 IconHoverColour
|
||||
{
|
||||
get { return iconHoverColour ?? IconColour; }
|
||||
set { iconHoverColour = value; }
|
||||
get => iconHoverColour ?? IconColour;
|
||||
set => iconHoverColour = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -43,8 +43,8 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// </summary>
|
||||
public FontAwesome Icon
|
||||
{
|
||||
get { return icon.Icon; }
|
||||
set { icon.Icon = value; }
|
||||
get => icon.Icon;
|
||||
set => icon.Icon = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -52,8 +52,8 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// </summary>
|
||||
public Vector2 IconScale
|
||||
{
|
||||
get { return icon.Scale; }
|
||||
set { icon.Scale = value; }
|
||||
get => icon.Scale;
|
||||
set => icon.Scale = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user