diff --git a/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/LyricColorSection.cs b/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/LyricColorSection.cs index 31406875d..9a42a38f2 100644 --- a/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/LyricColorSection.cs +++ b/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/LyricColorSection.cs @@ -32,11 +32,6 @@ public LyricColorSection() }, }; } - - [BackgroundDependencyLoader] - private void load(StyleManager manager) - { - } } public enum ColorArea diff --git a/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/LyricStylePreview.cs b/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/LyricStylePreview.cs index 9ff1be5a3..2320cffdf 100644 --- a/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/LyricStylePreview.cs +++ b/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/LyricStylePreview.cs @@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Karaoke.Screens.Skin.Style; internal partial class LyricStylePreview : CompositeDrawable { [BackgroundDependencyLoader] - private void load(OverlayColourProvider colourProvider, StyleManager manager) + private void load(OverlayColourProvider colourProvider) { Masking = true; CornerRadius = 15; diff --git a/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/StyleManager.cs b/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/StyleManager.cs deleted file mode 100644 index f52c981d9..000000000 --- a/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/StyleManager.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) andy840119 . Licensed under the GPL Licence. -// See the LICENCE file in the repository root for full licence text. - -using System; -using osu.Framework.Allocation; -using osu.Framework.Bindables; -using osu.Framework.Graphics; -using osu.Game.Rulesets.Karaoke.Skinning.Elements; - -namespace osu.Game.Rulesets.Karaoke.Screens.Skin.Style; - -public partial class StyleManager : Component -{ - public readonly Bindable EditStyle = new(); - - public readonly Bindable EditNoteStyle = new(); - - [BackgroundDependencyLoader] - private void load() - { - } - - public void ApplyCurrentStyleChange(Action action) - { - action(EditStyle.Value); - EditStyle.TriggerChange(); - } - - public void ApplyCurrentNoteStyle(Action action) - { - action(EditNoteStyle.Value); - EditNoteStyle.TriggerChange(); - } -} diff --git a/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/StyleScreen.cs b/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/StyleScreen.cs index 92c69b621..725478ed1 100644 --- a/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/StyleScreen.cs +++ b/osu.Game.Rulesets.Karaoke/Screens/Skin/Style/StyleScreen.cs @@ -11,13 +11,9 @@ namespace osu.Game.Rulesets.Karaoke.Screens.Skin.Style; public partial class StyleScreen : KaraokeSkinEditorScreen { - [Cached] - protected readonly StyleManager StyleManager; - public StyleScreen(ISkin skin) : base(skin, KaraokeSkinEditorScreenMode.Style) { - AddInternal(StyleManager = new StyleManager()); } protected override Section[] CreateSelectionContainer()