@@ -10,7 +10,7 @@ module TextFields =
1010 open Avalonia.Layout
1111 open Avalonia.Styling
1212
13− let private whiteBg =
13+ let private whiteBg () =
1414 let bg = Avalonia.Media.Immutable.ImmutableSolidColorBrush(Colors.White)
1515 let setter = Setter(Avalonia.Controls.Border.BackgroundProperty, bg)
1616
@@ -33,7 +33,7 @@ module TextFields =
3333 (Grid() {
3434 TextBox(value, msg).fontFamily(Constants.fontFamily).verticalAlignment(VerticalAlignment.Stretch).verticalContentAlignment(VerticalAlignment.Center).background(SolidColorBrush(Colors.White))
3535 Rectangle().stroke(Colors.Black).strokeThickness (4.)
36− }).styles (whiteBg)
36+ }).styles (whiteBg ())
3737
3838 let multilineTextField value msg =
3939 Grid() {