mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
29 lines
925 B
C#
29 lines
925 B
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.
|
|
|
|
#nullable disable
|
|
|
|
using System.IO;
|
|
using osu.Framework.Graphics.Sprites;
|
|
using osu.Framework.Localisation;
|
|
|
|
namespace osu.Framework.Graphics.UserInterface
|
|
{
|
|
public partial class BasicDirectorySelectorDirectory : DirectorySelectorDirectory
|
|
{
|
|
protected override IconUsage? Icon => Directory.Name.Contains(Path.DirectorySeparatorChar)
|
|
? FontAwesome.Solid.Database
|
|
: FontAwesome.Regular.Folder;
|
|
|
|
protected override SpriteText CreateSpriteText() => new SpriteText
|
|
{
|
|
Font = FrameworkFont.Regular.With(size: FONT_SIZE)
|
|
};
|
|
|
|
public BasicDirectorySelectorDirectory(DirectoryInfo directory, LocalisableString? displayName = null)
|
|
: base(directory, displayName)
|
|
{
|
|
}
|
|
}
|
|
}
|