Move remote preference help out of open flow

This commit is contained in:
Joe Julian
2026-04-01 17:37:06 -07:00
parent d8db9f14b3
commit 98be2ddf77
3 changed files with 135 additions and 18 deletions
+3 -4
View File
@@ -150,11 +150,10 @@ func (u *ui) lifecycleControls(gtx layout.Context) layout.Dimensions {
box.Color = accentColor
return box.Layout(gtx)
}),
layout.Rigid(layout.Spacer{Height: unit.Dp(2)}.Layout),
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
lbl := material.Label(u.theme, unit.Sp(11), u.remoteAuthStatusMessage())
lbl.Color = mutedColor
return lbl.Layout(gtx)
return layout.Inset{Top: unit.Dp(4)}.Layout(gtx, func(gtx layout.Context) layout.Dimensions {
return tonedButton(gtx, u.theme, &u.openRemotePrefsHelp, "Settings & Help")
})
}),
layout.Rigid(layout.Spacer{Height: unit.Dp(8)}.Layout),
)