~eliasnaur/scatter

4851c19829e7bb2f8d66a255531771207bf275da — Elias Naur 3 months ago d32b9a0
cmd/scatter: fix margins

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 4 insertions(+), 4 deletions(-)

M cmd/scatter/ui.go
M cmd/scatter/ui.go => cmd/scatter/ui.go +4 -4
@@ 253,7 253,7 @@ func (a *App) run() error {
					Top:    e.Insets.Top,
					Left:   e.Insets.Left,
					Right:  e.Insets.Right,
					Bottom: e.Insets.Bottom,
					Bottom: unit.Add(gtx, unit.Dp(8), e.Insets.Bottom),
				}
				a.Layout(gtx)
				if a.profiling {


@@ 1080,8 1080,8 @@ func (p *threadPage) layoutMessageBox(gtx *layout.Context) {
		in := layout.Inset{Left: unit.Dp(8)}
		in.Layout(gtx, func() {
			btn := theme.IconButton(iconLib.send)
			btn.Size = unit.Dp(30)
			btn.Padding = unit.Dp(6)
			btn.Size = unit.Dp(48)
			btn.Padding = unit.Dp(12)
			btn.Layout(gtx, p.send)
			sendHeight = gtx.Dimensions.Size.Y
		})


@@ 1094,7 1094,7 @@ func (p *threadPage) layoutMessageBox(gtx *layout.Context) {
		}
		bg := Background{
			Color:  rgb(0xeeeeee),
			Inset:  layout.Inset{Left: unit.Dp(8), Right: unit.Dp(8), Top: unit.Dp(4), Bottom: unit.Dp(4)},
			Inset:  layout.Inset{Left: unit.Dp(8), Right: unit.Dp(8)},
			Radius: unit.Dp(10),
		}
		bg.Layout(gtx, func() {