Skip to content

Commit

Permalink
Fix layout of right align buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Mar 17, 2021
1 parent a5254f4 commit fcd535b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wm/border.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ func NewBorder(win fynedesk.Window, icon fyne.Resource, canMaximize bool) *Borde
layout.NewSpacer(),
)
} else {
titleBar = newColoredHBox(win.Focused(), win, makeFiller(0),
layout.NewSpacer(),
titleBar = newColoredHBox(win.Focused(), win, layout.NewSpacer(),
title,
layout.NewSpacer(),
min,
max,
newCloseButton(win),
makeFiller(0),
)
}

Expand All @@ -88,6 +88,7 @@ func NewBorder(win fynedesk.Window, icon fyne.Resource, canMaximize bool) *Borde
titleBar.append(makeFiller(1))
} else {
titleBar.prepend(appIcon)
titleBar.prepend(makeFiller(1))
}
}

Expand Down

0 comments on commit fcd535b

Please sign in to comment.