1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 12:02:55 +08:00

Code quality fixes

This commit is contained in:
Jai Sharma 2022-03-14 21:56:56 +00:00
parent ec61b88ec2
commit 73a0373b4e
3 changed files with 3 additions and 9 deletions

View File

@ -30,8 +30,6 @@ namespace osu.Game.Overlays.Chat.ChannelControl
private Box? hoverBox;
private Box? selectBox;
private ControlItemText? text;
private ControlItemMention? mention;
private ControlItemClose? close;
[Resolved]
@ -84,12 +82,12 @@ namespace osu.Game.Overlays.Chat.ChannelControl
new[]
{
createAvatar(),
text = new ControlItemText(channel)
new ControlItemText(channel)
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
},
mention = new ControlItemMention
new ControlItemMention
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,

View File

@ -68,6 +68,5 @@ namespace osu.Game.Overlays.Chat.ChannelControl
Hide();
}, true);
}
}
}

View File

@ -53,10 +53,7 @@ namespace osu.Game.Overlays.Chat.ChannelControl
unread.BindValueChanged(change =>
{
if (change.NewValue)
text!.Colour = colourProvider.Content1;
else
text!.Colour = colourProvider.Light3;
text!.Colour = change.NewValue ? colourProvider.Content1 : colourProvider.Light3;
}, true);
}
}