Move helper method to bottom of file

This commit is contained in:
Dean Herbert 2021-10-20 12:52:38 +09:00
parent f29eb08d93
commit 4b2eb7736c
1 changed files with 12 additions and 12 deletions

View File

@ -27,18 +27,6 @@ public Color4 AccentColour
}
}
private void propagateAccentColour()
{
if (Menu is OsuDropdownMenu dropdownMenu)
{
dropdownMenu.HoverColour = accentColour;
dropdownMenu.SelectionColour = accentColour.Opacity(0.5f);
}
if (Header is OsuTabDropdownHeader tabDropdownHeader)
tabDropdownHeader.AccentColour = accentColour;
}
public OsuTabDropdown()
{
RelativeSizeAxes = Axes.X;
@ -58,6 +46,18 @@ protected override void LoadComplete()
Origin = Anchor.TopRight
};
private void propagateAccentColour()
{
if (Menu is OsuDropdownMenu dropdownMenu)
{
dropdownMenu.HoverColour = accentColour;
dropdownMenu.SelectionColour = accentColour.Opacity(0.5f);
}
if (Header is OsuTabDropdownHeader tabDropdownHeader)
tabDropdownHeader.AccentColour = accentColour;
}
private class OsuTabDropdownMenu : OsuDropdownMenu
{
public OsuTabDropdownMenu()