mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Remove virtual ColourInfo
properties from DaySeparator
This commit is contained in:
@ -9,7 +9,6 @@ using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
@ -124,8 +123,7 @@ namespace osu.Game.Overlays.Chat
|
||||
|
||||
protected virtual DaySeparator CreateDaySeparator(DateTimeOffset time) => new DaySeparator(time)
|
||||
{
|
||||
TextColour = colours.ChatBlue.Lighten(0.7f),
|
||||
LineColour = colours.ChatBlue.Lighten(0.7f),
|
||||
Colour = colours.ChatBlue.Lighten(0.7f),
|
||||
Margin = new MarginPadding { Vertical = 10 },
|
||||
};
|
||||
|
||||
@ -214,12 +212,6 @@ namespace osu.Game.Overlays.Chat
|
||||
set => text.Font = text.Font.With(size: value);
|
||||
}
|
||||
|
||||
public ColourInfo TextColour
|
||||
{
|
||||
get => text.Colour;
|
||||
set => text.Colour = value;
|
||||
}
|
||||
|
||||
private float lineHeight = 2;
|
||||
|
||||
public float LineHeight
|
||||
@ -228,14 +220,6 @@ namespace osu.Game.Overlays.Chat
|
||||
set => lineHeight = leftBox.Height = rightBox.Height = value;
|
||||
}
|
||||
|
||||
private ColourInfo lineColour;
|
||||
|
||||
public ColourInfo LineColour
|
||||
{
|
||||
get => lineColour;
|
||||
set => lineColour = leftBox.Colour = rightBox.Colour = value;
|
||||
}
|
||||
|
||||
private readonly SpriteText text;
|
||||
private readonly Box leftBox;
|
||||
private readonly Box rightBox;
|
||||
|
Reference in New Issue
Block a user