2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2022-05-03 06:36:12 +08:00
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Graphics.UserInterface
|
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public partial class BasicSearchTextBox : SearchTextBox
|
2022-05-03 06:36:12 +08:00
|
|
|
|
{
|
|
|
|
|
public BasicSearchTextBox()
|
|
|
|
|
{
|
|
|
|
|
Add(new SpriteIcon
|
|
|
|
|
{
|
|
|
|
|
Icon = FontAwesome.Solid.Search,
|
|
|
|
|
Origin = Anchor.CentreRight,
|
|
|
|
|
Anchor = Anchor.CentreRight,
|
|
|
|
|
Margin = new MarginPadding { Right = 10 },
|
|
|
|
|
Size = new Vector2(20),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
TextFlow.Padding = new MarginPadding { Right = 35 };
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-06-17 15:37:17 +08:00
|
|
|
|
}
|