Skip to content

Commit

Permalink
Merge pull request #128 from enisn/2.0-textfield-outline-fix
Browse files Browse the repository at this point in the history
InputField Outline Color fix
  • Loading branch information
enisn authored Nov 21, 2022
2 parents 1b63a94 + ea76d3b commit 2488d7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/UraniumUI.Material/Controls/InputField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public virtual View Content
protected Border border = new Border
{
Padding = 0,
Stroke = ColorResource.GetColor("OnBackground", "OnBackgroundDark", Colors.Gray),
StrokeThickness = 1,
StrokeDashOffset = 0,
BackgroundColor = Colors.Transparent,
Expand Down Expand Up @@ -79,7 +78,8 @@ public InputField()
{
border.StrokeShape = new RoundRectangle
{
CornerRadius = this.CornerRadius
CornerRadius = this.CornerRadius,
Stroke = this.BorderColor,
};

RegisterForEvents();
Expand Down Expand Up @@ -308,7 +308,7 @@ protected virtual void OnCornerRadiusChanged()
typeof(Color),
typeof(InputField),
ColorResource.GetColor("OnBackground", "OnBackgroundDark", Colors.Gray),
propertyChanged: (bindable, oldValue, newValue) => (bindable as InputField).labelTitle.TextColor = (Color)newValue);
propertyChanged: (bindable, oldValue, newValue) => (bindable as InputField).border.Stroke = (Color)newValue);

public ImageSource Icon { get => (ImageSource)GetValue(IconProperty); set => SetValue(IconProperty, value); }

Expand Down

0 comments on commit 2488d7a

Please sign in to comment.