From eaf8b0cdfcd78b9e69c33df1110d073146d598b8 Mon Sep 17 00:00:00 2001 From: Steven Honson Date: Sat, 11 May 2019 10:21:44 +1000 Subject: ui: optimise window sizing for a single peer Increasing the default size of the manage window allows all of the detail and status for a basic single peer configuration with a preshared key to be visible without scrolling. Also sets a minimum window size for the manage window. Signed-off-by: Steven Honson [zx2c4: reduced from 800x600 to 670x525] --- ui/managewindow.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/managewindow.go') diff --git a/ui/managewindow.go b/ui/managewindow.go index 7f0bd608..48fdec2d 100644 --- a/ui/managewindow.go +++ b/ui/managewindow.go @@ -54,7 +54,8 @@ func NewManageTunnelsWindow() (*ManageTunnelsWindow, error) { mtw.SetTitle("WireGuard") mtw.AddDisposable(font) mtw.SetFont(font) - mtw.SetSize(walk.Size{640, 480}) + mtw.SetSize(walk.Size{670, 525}) + mtw.SetMinMaxSize(walk.Size{500, 400}, walk.Size{0, 0}) vlayout := walk.NewVBoxLayout() vlayout.SetMargins(walk.Margins{5, 5, 5, 5}) mtw.SetLayout(vlayout) -- cgit v1.2.3-59-g8ed1b