Refine donation copy row and labels
This commit is contained in:
parent
3f325985ae
commit
3108882c7b
5
main.go
5
main.go
|
|
@ -562,7 +562,7 @@ func (s *appState) showAbout() {
|
||||||
feedbackLabel.Wrapping = fyne.TextWrapWord
|
feedbackLabel.Wrapping = fyne.TextWrapWord
|
||||||
|
|
||||||
btcAddress := "bc1qcq5hmtvckhhh9c6y3gvm9wu9856fmet25yfr0v"
|
btcAddress := "bc1qcq5hmtvckhhh9c6y3gvm9wu9856fmet25yfr0v"
|
||||||
btcLabel := widget.NewLabel(fmt.Sprintf("Bitcoin (BTC): %s", btcAddress))
|
btcLabel := widget.NewLabel("Bitcoin (BTC):")
|
||||||
copyBg := canvas.NewRectangle(utils.MustHex("#344256"))
|
copyBg := canvas.NewRectangle(utils.MustHex("#344256"))
|
||||||
copyBg.CornerRadius = 8
|
copyBg.CornerRadius = 8
|
||||||
copyBg.SetMinSize(fyne.NewSize(72, 32))
|
copyBg.SetMinSize(fyne.NewSize(72, 32))
|
||||||
|
|
@ -573,14 +573,15 @@ func (s *appState) showAbout() {
|
||||||
dialog.ShowInformation("Copied", "Bitcoin address copied to clipboard", s.window)
|
dialog.ShowInformation("Copied", "Bitcoin address copied to clipboard", s.window)
|
||||||
})
|
})
|
||||||
copyRow := container.NewBorder(nil, nil, nil, copyBtn, btcLabel)
|
copyRow := container.NewBorder(nil, nil, nil, copyBtn, btcLabel)
|
||||||
|
addressLabel := widget.NewLabel(btcAddress)
|
||||||
|
|
||||||
mainContent := container.NewVBox(
|
mainContent := container.NewVBox(
|
||||||
versionText,
|
versionText,
|
||||||
devText,
|
devText,
|
||||||
widget.NewLabel(""),
|
widget.NewLabel(""),
|
||||||
widget.NewLabel("Support Development"),
|
widget.NewLabel("Support Development"),
|
||||||
widget.NewLabel("Support VideoTools development (optional):"),
|
|
||||||
copyRow,
|
copyRow,
|
||||||
|
addressLabel,
|
||||||
feedbackLabel,
|
feedbackLabel,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user