Merge pull request #15650 from peppy/fix-stand-alone-chat-textbox-corners

Fix `StandAloneChatDisplay`'s `TextBox` having different corner radius
This commit is contained in:
Dan Balasescu 2021-11-16 20:45:08 +09:00 committed by GitHub
commit 0146987eba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,10 @@ namespace osu.Game.Online.Chat
/// <param name="postingTextbox">Whether a textbox for posting new messages should be displayed.</param>
public StandAloneChatDisplay(bool postingTextbox = false)
{
const float corner_radius = 10;
this.postingTextbox = postingTextbox;
CornerRadius = 10;
CornerRadius = corner_radius;
Masking = true;
InternalChildren = new Drawable[]
@ -62,6 +64,7 @@ namespace osu.Game.Online.Chat
RelativeSizeAxes = Axes.X,
Height = textbox_height,
PlaceholderText = "type your message",
CornerRadius = corner_radius,
ReleaseFocusOnCommit = false,
HoldFocus = true,
Anchor = Anchor.BottomLeft,