aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
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
commit04407b592f4eda1824deee8a7c07fe8d2457d807 (patch)
tree6ed1673ffc9639a902cfb57d7c4e98c6f1397909 /ui
parentui: fix initial display of public key in tunnel config dialog (diff)
downloadwireguard-windows-04407b592f4eda1824deee8a7c07fe8d2457d807.tar.xz
wireguard-windows-04407b592f4eda1824deee8a7c07fe8d2457d807.zip
ui: add icons to tunnels tool bar
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-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)