From 336cae5cdf073b74df702c6220504ea0a463469b Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Mon, 1 Jul 2019 19:33:53 +0200 Subject: [refactor] move svg icon to assets folder --- branding/assets/default | 1 + branding/assets/riseup/icon.icns | Bin 0 -> 4286 bytes branding/assets/riseup/icon.ico | Bin 0 -> 4286 bytes branding/assets/riseup/icon.svg | 80 +++++++++++++++++++++++++++++++++++++++ icon.svg | 80 --------------------------------------- pkg/systray/notificator.go | 7 ++-- 6 files changed, 85 insertions(+), 83 deletions(-) create mode 120000 branding/assets/default create mode 100755 branding/assets/riseup/icon.icns create mode 100755 branding/assets/riseup/icon.ico create mode 100644 branding/assets/riseup/icon.svg delete mode 100644 icon.svg diff --git a/branding/assets/default b/branding/assets/default new file mode 120000 index 0000000..f0a0a64 --- /dev/null +++ b/branding/assets/default @@ -0,0 +1 @@ +riseup \ No newline at end of file diff --git a/branding/assets/riseup/icon.icns b/branding/assets/riseup/icon.icns new file mode 100755 index 0000000..c65c9e1 Binary files /dev/null and b/branding/assets/riseup/icon.icns differ diff --git a/branding/assets/riseup/icon.ico b/branding/assets/riseup/icon.ico new file mode 100755 index 0000000..c65c9e1 Binary files /dev/null and b/branding/assets/riseup/icon.ico differ diff --git a/branding/assets/riseup/icon.svg b/branding/assets/riseup/icon.svg new file mode 100644 index 0000000..a19c6c6 --- /dev/null +++ b/branding/assets/riseup/icon.svg @@ -0,0 +1,80 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/icon.svg b/icon.svg deleted file mode 100644 index a19c6c6..0000000 --- a/icon.svg +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - diff --git a/pkg/systray/notificator.go b/pkg/systray/notificator.go index 4179759..a26c7d8 100644 --- a/pkg/systray/notificator.go +++ b/pkg/systray/notificator.go @@ -116,7 +116,7 @@ func getIconPath() string { if fileExist(icoPath) { return icoPath } - icoPath = path.Join(gopath, "src", "0xacab.org", "leap", "riseup_vpn", "assets", "riseupvpn.ico") + icoPath = path.Join(gopath, "src", "0xacab.org", "leap", "bitmask-vpn", "branding", "assets", "default", "icon.ico") if fileExist(icoPath) { return icoPath } @@ -128,7 +128,8 @@ func getIconPath() string { if fileExist(icnsPath) { return icnsPath } - icnsPath = path.Join(gopath, "src", "0xacab.org", "leap", "riseup_vpn", "assets", "riseupvpn.icns") + + icnsPath = path.Join(gopath, "src", "0xacab.org", "leap", "bitmask-vpn", "branding", "assets", "default", "icon.icns") if fileExist(icnsPath) { return icnsPath } @@ -151,7 +152,7 @@ func getIconPath() string { return svgPath } - svgPath = path.Join(gopath, "src", "0xacab.org", "leap", "bitmask-vpn", svgFileName) + svgPath = path.Join(gopath, "src", "0xacab.org", "leap", "bitmask-vpn", "branding", "assets", "default", svgFileName) if fileExist(svgPath) { return svgPath } -- cgit v1.2.3