Skip to content

Commit

Permalink
Improve the about window contents and size
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 4, 2025
1 parent c39fe7a commit 42762c3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/ui/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/theme"
"fyne.io/fyne/v2/widget"
"github.com/Jacalz/rymdport/v3/internal/util"

"fyne.io/x/fyne/dialog"
)
Expand All @@ -15,7 +16,14 @@ func Create(a fyne.App, w fyne.Window) fyne.CanvasObject {
dropdown.OnTapped = func() {
widget.ShowPopUpMenuAtRelativePosition(
&fyne.Menu{Items: []*fyne.MenuItem{{Label: "About", Icon: theme.InfoIcon(), Action: func() {
dialog.ShowAboutWindow("Cross-platform application for easy encrypted file, folder, and text sharing between devices.", []*widget.Hyperlink{{Text: "Website"}}, a)
links := []*widget.Hyperlink{
{Text: "Repository", URL: util.URLToGitHubProject("")},
{Text: "Issue Tracker", URL: util.URLToGitHubProject("/issues")},
{Text: "Wiki", URL: util.URLToGitHubProject("/wiki")},
}
abwin := dialog.NewAboutWindow("Easy encrypted file, folder, and text sharing between devices.", links, a)
abwin.Resize(fyne.NewSize(500, 300))
abwin.Show()
}}}}, w.Canvas(), fyne.Position{Y: dropdown.Size().Height}, dropdown)
}

Expand Down

0 comments on commit 42762c3

Please sign in to comment.