Skip to content

Commit

Permalink
fix: clean up some ui padding
Browse files Browse the repository at this point in the history
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
  • Loading branch information
Ryex committed Sep 29, 2024
1 parent 705bdc2 commit c1aed6f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
28 changes: 21 additions & 7 deletions internal/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,26 @@ func (a *App) clean() {
}

func (a *App) buildMainUI() {
welcomeText := canvas.NewText(
lang.X("greeting", "Dungeondraft-GoPackager - Package and edit Dungeondraft resource packs"),
theme.Color(theme.ColorNameForeground),
)
welcomeText.TextSize = 18
welcome := container.NewCenter(welcomeText)
welcome := container.NewPadded(container.NewStack(
&canvas.Rectangle{
FillColor: theme.Color(theme.ColorNameHeaderBackground),
CornerRadius: 4,
},
container.NewPadded(container.NewVBox(
&canvas.Text{
Text: lang.X("greeting.title", "Dungeondraft-GoPackager"),
Color: theme.Color(theme.ColorNameForeground),
TextSize: 18,
Alignment: fyne.TextAlignCenter,
},
&canvas.Text{
Text: lang.X("greeting.sub-title", "Package, edit, and prepare Dungeondraft resource packs"),
Color: theme.Color(theme.ColorNameForeground),
TextSize: 14,
Alignment: fyne.TextAlignCenter,
},
)),
))

pathInput := widget.NewEntryWithData(a.operatingPath)
pathInput.SetPlaceHolder(lang.X("pathInput.placeholder", "Path to .dungeondraft_pack or folder"))
Expand Down Expand Up @@ -347,7 +361,7 @@ func (a *App) setWaitContent(msg string) (binding.Float, binding.String) {
activity,
msgText,
activityText,
progressBar,
container.NewPadded(progressBar),
layout.NewSpacer(),
)
a.setMainContent(activityContent)
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion internal/gui/translation/en-US.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"window.title": "Dungeondraft-GoPackager",
"greeting": "Dungeondraft-GoPackager - Package and edit Dungeondraft resource packs",
"greeting.title": "Dungeondraft-GoPackager",
"greeting.sub-title": "Package, edit, and prepare Dungeondraft resource packs",
"browse": "Browse",
"pathInput.placeholder": "Path to .dungeondraft_pack or folder",
"packBtn.text": "Open pack",
Expand Down

0 comments on commit c1aed6f

Please sign in to comment.