1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-07 20:42:54 +08:00

Apply review

This commit is contained in:
Ganendra Afrasya 2022-04-22 22:01:56 +07:00
parent e6fbb19951
commit a436ff877f

View File

@ -12,6 +12,7 @@ using osu.Framework.Input;
using osu.Framework.Input.Events; using osu.Framework.Input.Events;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
using osu.Game.Overlays; using osu.Game.Overlays;
using osu.Game.Overlays.Mods;
using osuTK; using osuTK;
using osuTK.Graphics; using osuTK.Graphics;
using osuTK.Input; using osuTK.Input;
@ -21,9 +22,9 @@ namespace osu.Game.Graphics.UserInterface
public class ShearedSearchTextBox : CompositeDrawable, IHasCurrentValue<string> public class ShearedSearchTextBox : CompositeDrawable, IHasCurrentValue<string>
{ {
private const float icon_container_width = 50; private const float icon_container_width = 50;
private const float corner_radius = 10; private const float corner_radius = 7;
private const float height = 42; private const float height = 42;
private readonly Vector2 shear = new Vector2(0.2f, 0); private readonly Vector2 shear = new Vector2(ShearedOverlayContainer.SHEAR, 0);
public FocusedTextBox TextBox; public FocusedTextBox TextBox;
@ -78,7 +79,7 @@ namespace osu.Game.Graphics.UserInterface
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Padding = new MarginPadding Padding = new MarginPadding
{ {
Horizontal = corner_radius Horizontal = corner_radius + shear.X
} }
} }
} }