-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2274 from andy840119/refactor-toolbar-button-inherit
Refactor toolbar button inherition.
- Loading branch information
Showing
8 changed files
with
66 additions
and
99 deletions.
There are no files selected for viewing
38 changes: 0 additions & 38 deletions
38
...ame.Rulesets.Karaoke/Screens/Edit/Beatmaps/Lyrics/Content/Compose/Toolbar/ActionButton.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
...s.Karaoke/Screens/Edit/Beatmaps/Lyrics/Content/Compose/Toolbar/LyricEditorConfigButton.cs
This file was deleted.
Oops, something went wrong.
14 changes: 11 additions & 3 deletions
14
...reens/Edit/Beatmaps/Lyrics/Content/Compose/Toolbar/Panels/ToggleInvalidInfoPanelButton.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Framework.Allocation; | ||
using osu.Framework.Graphics.Sprites; | ||
using osu.Game.Rulesets.Karaoke.Configuration; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Screens.Edit.Beatmaps.Lyrics.Content.Compose.Toolbar.Panels; | ||
|
||
public partial class ToggleInvalidInfoPanelButton : LyricEditorConfigButton | ||
public partial class ToggleInvalidInfoPanelButton : ToolbarToggleButton | ||
{ | ||
protected override KaraokeRulesetLyricEditorSetting Setting => KaraokeRulesetLyricEditorSetting.ShowInvalidInfoInComposer; | ||
public ToggleInvalidInfoPanelButton() | ||
{ | ||
SetIcon(FontAwesome.Solid.ExclamationTriangle); | ||
} | ||
|
||
protected override IconUsage Icon => FontAwesome.Solid.ExclamationTriangle; | ||
[BackgroundDependencyLoader] | ||
private void load(KaraokeRulesetLyricEditorConfigManager lyricEditorConfigManager) | ||
{ | ||
lyricEditorConfigManager.BindWith(KaraokeRulesetLyricEditorSetting.ShowInvalidInfoInComposer, Active); | ||
} | ||
} |
14 changes: 11 additions & 3 deletions
14
.../Screens/Edit/Beatmaps/Lyrics/Content/Compose/Toolbar/Panels/TogglePropertyPanelButton.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Framework.Allocation; | ||
using osu.Framework.Graphics.Sprites; | ||
using osu.Game.Rulesets.Karaoke.Configuration; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Screens.Edit.Beatmaps.Lyrics.Content.Compose.Toolbar.Panels; | ||
|
||
public partial class TogglePropertyPanelButton : LyricEditorConfigButton | ||
public partial class TogglePropertyPanelButton : ToolbarToggleButton | ||
{ | ||
protected override KaraokeRulesetLyricEditorSetting Setting => KaraokeRulesetLyricEditorSetting.ShowPropertyPanelInComposer; | ||
public TogglePropertyPanelButton() | ||
{ | ||
SetIcon(FontAwesome.Solid.FileImage); | ||
} | ||
|
||
protected override IconUsage Icon => FontAwesome.Solid.FileImage; | ||
[BackgroundDependencyLoader] | ||
private void load(KaraokeRulesetLyricEditorConfigManager lyricEditorConfigManager) | ||
{ | ||
lyricEditorConfigManager.BindWith(KaraokeRulesetLyricEditorSetting.ShowPropertyPanelInComposer, Active); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters