diff --git a/src/main/menu.js b/src/main/menu.js index b4d1506c..e9e38f04 100644 --- a/src/main/menu.js +++ b/src/main/menu.js @@ -97,23 +97,25 @@ export function setMenu(window) { }, { role: 'help', - submenu: [{ - label: 'Community', - click() { - shell.openExternal('https://spectrum.chat/reflex-app') - } - }, { - label: 'Report a Bug', - click() { - shell.openExternal('https://github.com/nwittwer/reflex/issues/new') - } - }, - { - label: 'Follow on Twitter', - click() { - shell.openExternal('https://twitter.com/reflex_app') + submenu: [ + // { + // label: 'Community', + // click() { + // shell.openExternal('https://spectrum.chat/reflex-app') + // } + // }, + { + label: 'Report a Bug', + click() { + shell.openExternal('https://github.com/nwittwer/reflex/issues/new') + } + }, + { + label: 'Follow on Twitter', + click() { + shell.openExternal('https://twitter.com/reflex_app') + } } - } ] } ] diff --git a/src/renderer/components/ArtboardControls.vue b/src/renderer/components/ArtboardControls.vue deleted file mode 100644 index f8b8bf72..00000000 --- a/src/renderer/components/ArtboardControls.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - diff --git a/src/renderer/views/MainView.vue b/src/renderer/views/MainView.vue index ee9f2689..cbbf2124 100644 --- a/src/renderer/views/MainView.vue +++ b/src/renderer/views/MainView.vue @@ -3,7 +3,6 @@
-
@@ -15,15 +14,14 @@ import ToolBar from "../components/ToolBar"; import Artboards from "../components/Artboards.vue"; import SidePanel from "../components/SidePanel"; -import ArtboardControls from "../components/ArtboardControls.vue"; import { Panzoom } from "../mixins/panzoom"; import store from "@/store"; +import { ipcRenderer } from "electron"; export default { name: "MainView", components: { Artboards, - ArtboardControls, SidePanel, ToolBar }, @@ -74,6 +72,20 @@ export default { }); }); }); + + // Listen for menu bar events + // TODO Add tests for these + ipcRenderer.on("menu_zoom-to-fit", () => { + document.$panzoom.fitToScreen(); + }); + + ipcRenderer.on("menu_zoom-in", () => { + document.$panzoom.zoomIn() + }); + + ipcRenderer.on("menu_zoom-out", () => { + document.$panzoom.zoomOut() + }); } };