mirror of
https://github.com/osukey/osukey.git
synced 2025-05-03 20:57:28 +09:00
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
// 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;
|
|
using osu.Framework.Graphics.Cursor;
|
|
using osu.Framework.Localisation;
|
|
using osu.Game.Graphics.UserInterface;
|
|
using osu.Game.Overlays;
|
|
using osuTK.Graphics;
|
|
|
|
namespace osu.Game.Graphics.UserInterfaceV2
|
|
{
|
|
internal class OsuDirectorySelectorHiddenToggle : OsuCheckbox, IHasTooltip
|
|
{
|
|
public LocalisableString TooltipText => @"Show hidden items";
|
|
|
|
public OsuDirectorySelectorHiddenToggle()
|
|
{
|
|
RelativeSizeAxes = Axes.None;
|
|
AutoSizeAxes = Axes.Both;
|
|
Anchor = Anchor.CentreLeft;
|
|
Origin = Anchor.CentreLeft;
|
|
}
|
|
|
|
[BackgroundDependencyLoader(true)]
|
|
private void load(OverlayColourProvider? overlayColourProvider, OsuColour colours)
|
|
{
|
|
if (overlayColourProvider != null)
|
|
return;
|
|
|
|
Nub.AccentColour = colours.GreySeaFoamLighter;
|
|
Nub.GlowingAccentColour = Color4.White;
|
|
Nub.GlowColour = Color4.White;
|
|
}
|
|
}
|
|
}
|