2022-07-09 03:49:10 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
2022-07-09 04:00:48 +08:00
|
|
|
using osu.Framework.Graphics.Cursor;
|
|
|
|
using osu.Framework.Localisation;
|
2022-07-09 03:49:10 +08:00
|
|
|
using osu.Game.Graphics.UserInterface;
|
2022-07-12 04:36:17 +08:00
|
|
|
using osu.Game.Overlays;
|
2022-07-09 03:49:10 +08:00
|
|
|
using osuTK.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Graphics.UserInterfaceV2
|
|
|
|
{
|
2022-07-09 04:00:48 +08:00
|
|
|
internal class OsuDirectorySelectorHiddenToggle : OsuCheckbox, IHasTooltip
|
2022-07-09 03:49:10 +08:00
|
|
|
{
|
2022-07-09 04:00:48 +08:00
|
|
|
public LocalisableString TooltipText => @"Show hidden items";
|
|
|
|
|
2022-07-09 03:49:10 +08:00
|
|
|
public OsuDirectorySelectorHiddenToggle()
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.None;
|
|
|
|
AutoSizeAxes = Axes.Both;
|
|
|
|
Anchor = Anchor.CentreLeft;
|
|
|
|
Origin = Anchor.CentreLeft;
|
|
|
|
}
|
|
|
|
|
2022-07-12 04:36:17 +08:00
|
|
|
[BackgroundDependencyLoader(true)]
|
|
|
|
private void load(OverlayColourProvider? overlayColourProvider, OsuColour colours)
|
2022-07-09 03:49:10 +08:00
|
|
|
{
|
2022-07-12 04:36:17 +08:00
|
|
|
if (overlayColourProvider != null)
|
|
|
|
return;
|
|
|
|
|
2022-07-09 03:49:10 +08:00
|
|
|
Nub.AccentColour = colours.GreySeaFoamLighter;
|
|
|
|
Nub.GlowingAccentColour = Color4.White;
|
|
|
|
Nub.GlowColour = Color4.White;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|