mirror of
https://github.com/ppy/osu
synced 2024-12-13 02:17:32 +00:00
Apply review
This commit is contained in:
parent
e6fbb19951
commit
a436ff877f
@ -12,6 +12,7 @@ using osu.Framework.Input;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Overlays;
|
||||
using osu.Game.Overlays.Mods;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
using osuTK.Input;
|
||||
@ -21,9 +22,9 @@ namespace osu.Game.Graphics.UserInterface
|
||||
public class ShearedSearchTextBox : CompositeDrawable, IHasCurrentValue<string>
|
||||
{
|
||||
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 readonly Vector2 shear = new Vector2(0.2f, 0);
|
||||
private readonly Vector2 shear = new Vector2(ShearedOverlayContainer.SHEAR, 0);
|
||||
|
||||
public FocusedTextBox TextBox;
|
||||
|
||||
@ -78,7 +79,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Horizontal = corner_radius
|
||||
Horizontal = corner_radius + shear.X
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user