aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2019-04-23 15:24:59 +0200
committerAlexander Neumann <alexander.neumann@picos-software.com>2019-04-23 15:24:59 +0200
commitc3807f0639608028ca2ed1875a0556c3760c91a7 (patch)
tree6ed1673ffc9639a902cfb57d7c4e98c6f1397909
parentui: fix initial display of public key in tunnel config dialog (diff)
downloadwireguard-windows-c3807f0639608028ca2ed1875a0556c3760c91a7.tar.xz
wireguard-windows-c3807f0639608028ca2ed1875a0556c3760c91a7.zip
ui: add icons to tunnels tool bar
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com>
-rw-r--r--ui/manage_tunnels.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/manage_tunnels.go b/ui/manage_tunnels.go
index cc4fadaf..f5e41fed 100644
--- a/ui/manage_tunnels.go
+++ b/ui/manage_tunnels.go
@@ -91,7 +91,7 @@ func NewManageTunnelsWindow(icon *walk.Icon, logger *ringlogger.Ringlogger) (*Ma
toolBarContainer, _ := walk.NewComposite(tunnelsContainer)
toolBarContainer.SetLayout(walk.NewHBoxLayout())
- tunnelsToolBar, _ := walk.NewToolBar(toolBarContainer)
+ tunnelsToolBar, _ := walk.NewToolBarWithOrientationAndButtonStyle(toolBarContainer, walk.Horizontal, walk.ToolBarButtonTextOnly)
importAction := walk.NewAction()
importAction.SetText("Import tunnels from file...")
@@ -114,11 +114,11 @@ func NewManageTunnelsWindow(icon *walk.Icon, logger *ringlogger.Ringlogger) (*Ma
addMenu.Actions().Add(addAction)
addMenu.Actions().Add(importAction)
addMenuAction, _ := tunnelsToolBar.Actions().AddMenu(addMenu)
- addMenuAction.SetText("Add")
+ addMenuAction.SetText("➕")
deleteAction := walk.NewAction()
tunnelsToolBar.Actions().Add(deleteAction)
- deleteAction.SetText("Delete")
+ deleteAction.SetText("➖")
deleteAction.Triggered().Attach(mtw.onDelete)
settingsMenu, _ := walk.NewMenu()
@@ -126,7 +126,7 @@ func NewManageTunnelsWindow(icon *walk.Icon, logger *ringlogger.Ringlogger) (*Ma
settingsMenu.Actions().Add(viewLogAction)
settingsMenu.Actions().Add(exportTunnelsAction)
settingsMenuAction, _ := tunnelsToolBar.Actions().AddMenu(settingsMenu)
- settingsMenuAction.SetText("Export")
+ settingsMenuAction.SetText("⚙")
}
currentTunnelContainer, _ := walk.NewComposite(splitter)