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:
parent
ec61b88ec2
commit
73a0373b4e
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user