1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 05:59:53 +08:00

Code quality fixes

This commit is contained in:
Jai Sharma
2022-03-14 21:56:56 +00:00
Unverified
parent ec61b88ec2
commit 73a0373b4e
3 changed files with 3 additions and 9 deletions
@@ -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,
@@ -68,6 +68,5 @@ namespace osu.Game.Overlays.Chat.ChannelControl
Hide();
}, true);
}
}
}
@@ -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);
}
}