on master help sign in
Make smallImageButton square with fixed 48x48 dimensions
c7fca72iko
client/Buttons.fs+2
@@ -164,6 +164,8 @@ module Buttons =
164
164
165 Rectangle().stroke(Colors.Black).strokeThickness (4.)
165 Rectangle().stroke(Colors.Black).strokeThickness (4.)
166 })
166 })
167+ .width(48.)
168+ .height(48.)
167 .background(Brushes.Transparent)
169 .background(Brushes.Transparent)
168 .onPointerPressed(fun _ -> pressed.Set true)
170 .onPointerPressed(fun _ -> pressed.Set true)
169 .onPointerReleased(fun _ -> pressed.Set false)
171 .onPointerReleased(fun _ -> pressed.Set false)