aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tunneleditdialog.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-01 13:57:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-01 13:59:51 +0200
commit6000be26591cc29230783206db54f6f4b6934a40 (patch)
treef332efeea79b943a5ed1348dd4c73ead7944a0ab /ui/tunneleditdialog.go
parentui: better tab icon dot hack (diff)
downloadwireguard-windows-6000be26591cc29230783206db54f6f4b6934a40.tar.xz
wireguard-windows-6000be26591cc29230783206db54f6f4b6934a40.zip
ui: rework margins
Diffstat (limited to 'ui/tunneleditdialog.go')
-rw-r--r--ui/tunneleditdialog.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/tunneleditdialog.go b/ui/tunneleditdialog.go
index 7efd68d2..6f5ca8ab 100644
--- a/ui/tunneleditdialog.go
+++ b/ui/tunneleditdialog.go
@@ -76,14 +76,14 @@ func runTunnelEditDialog(owner walk.Form, tunnel *service.Tunnel) *conf.Config {
layout := walk.NewGridLayout()
layout.SetSpacing(6)
- layout.SetMargins(walk.Margins{18, 18, 18, 18})
+ layout.SetMargins(walk.Margins{10, 10, 10, 10})
layout.SetColumnStretchFactor(1, 3)
dlg.Dialog, _ = walk.NewDialog(owner)
dlg.SetIcon(owner.Icon())
dlg.SetTitle(title)
dlg.SetLayout(layout)
- dlg.SetMinMaxSize(walk.Size{500, 400}, walk.Size{9999, 9999})
+ dlg.SetMinMaxSize(walk.Size{500, 400}, walk.Size{0, 0})
nameLabel, _ := walk.NewTextLabel(dlg)
layout.SetRange(nameLabel, walk.Rectangle{0, 0, 1, 1})