Skip to content

Commit

Permalink
ci,ui: fix fyne deprecate warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lucor committed Nov 9, 2023
1 parent dccff93 commit d2b965a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/ui/action_edit_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (a *app) makeEditItemView(fyneItem FyneItem) fyne.CanvasObject {
}, a.win)
d.Show()
})
deleteBtn = container.NewMax(canvas.NewRectangle(color.NRGBA{0xd0, 0x17, 0x2d, 0xff}), button)
deleteBtn = container.NewStack(canvas.NewRectangle(color.NRGBA{0xd0, 0x17, 0x2d, 0xff}), button)
}

buttonContainer := container.NewBorder(nil, nil, deleteBtn, saveBtn, widget.NewLabel(""))
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/item_note.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func newNoteEntryWithData(bind binding.String) *noteEntry {
ne := &noteEntry{
Entry: widget.Entry{
MultiLine: true,
Wrapping: fyne.TextTruncate,
Wrapping: fyne.TextWrap(fyne.TextTruncateEllipsis),
},
}
ne.ExtendBaseWidget(ne)
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/item_totp.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (t *TOTP) Edit(ctx context.Context, w fyne.Window) (fyne.CanvasObject, *paw
form.Add(labelWithStyle("Interval"))
form.Add(container.NewBorder(nil, nil, nil, intervalEntry, intervalSlider))

dialog.ShowCustomConfirm("TOTP custom settings", "OK", "Cancel", container.NewMax(form), func(b bool) {
dialog.ShowCustomConfirm("TOTP custom settings", "OK", "Cancel", container.NewStack(form), func(b bool) {
if b {
totp = copy
}
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/items.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func newItemsWidget(vault *paw.Vault, opts *paw.VaultFilterOptions) *itemsWidget
selectedIndex: -1,
}
iw.listEntry = iw.makeList(nil, opts)
iw.view = container.NewMax(iw.listEntry)
iw.view = container.NewStack(iw.listEntry)
iw.OnSelected = func(i *paw.Metadata) {}
iw.ExtendBaseWidget(iw)
return iw
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/password_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (pd *pwgenDialog) ShowPasswordGenerator(bind binding.String, password *paw.
passwordBind.Set(secret)
})

content := container.NewMax(widget.NewLabel(""))
content := container.NewStack(widget.NewLabel(""))
typeOptions := []string{
paw.RandomPassword.String(),
paw.PassphrasePassword.String(),
Expand Down

0 comments on commit d2b965a

Please sign in to comment.