mirror of
https://github.com/ppy/osu.git
synced 2026-05-16 10:22:53 +08:00
14d8cf7275
- depends on https://github.com/ppy/osu-framework/pull/6700 - closes https://github.com/ppy/osu/issues/36340 - supersedes and closes https://github.com/ppy/osu/pull/36352 <img width="676" height="451" alt="image" src="https://github.com/user-attachments/assets/4f11c761-175b-495a-8b24-16fb6c481a15" /> --------- Co-authored-by: Dean Herbert <pe@ppy.sh>
43 lines
1.5 KiB
C#
43 lines
1.5 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.Game.Graphics.UserInterface;
|
|
using osu.Game.Localisation;
|
|
using osu.Game.Overlays;
|
|
using osuTK;
|
|
using osuTK.Graphics;
|
|
|
|
namespace osu.Game.Graphics.UserInterfaceV2.FileSelection
|
|
{
|
|
internal partial class HiddenFilesToggleCheckbox : OsuCheckbox
|
|
{
|
|
public HiddenFilesToggleCheckbox()
|
|
{
|
|
RelativeSizeAxes = Axes.None;
|
|
AutoSizeAxes = Axes.None;
|
|
Size = new Vector2(140, OsuDirectorySelectorBreadcrumbDisplay.HEIGHT);
|
|
Margin = new MarginPadding { Right = OsuDirectorySelectorBreadcrumbDisplay.HORIZONTAL_PADDING, };
|
|
Anchor = Anchor.CentreLeft;
|
|
Origin = Anchor.CentreLeft;
|
|
LabelTextFlowContainer.Anchor = Anchor.CentreLeft;
|
|
LabelTextFlowContainer.Origin = Anchor.CentreLeft;
|
|
LabelText = UserInterfaceStrings.ShowHidden;
|
|
|
|
Scale = new Vector2(0.8f);
|
|
}
|
|
|
|
[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;
|
|
}
|
|
}
|
|
}
|