From 77f043752d2937d91726e3e9aca7151c44c72d3b Mon Sep 17 00:00:00 2001 From: Rémy Raes Date: Thu, 22 Dec 2022 23:14:42 +0100 Subject: feat: Maximize button + clean menubar layout (#119) * feat: add a button to toggle window maximize status * fix: attach services container to bottom Container was fixed, but with no positioning indication, which fucked its location while going fullscreen. * refactor: encase menu in navigation container * fix: remove CSS ID duplication * refactor: put window controls inside menu bar * feat: add style to additional submenu * fix: don't color focused menu items * fix: restore menu bar debug indicator --- src-vue/src/App.vue | 70 +++++++++++++++++++++++++++--------------- src-vue/src/plugins/store.ts | 3 +- src-vue/src/style.css | 3 +- src-vue/src/views/PlayView.vue | 1 + 4 files changed, 50 insertions(+), 27 deletions(-) (limited to 'src-vue') diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue index 9096110c..fc6992b7 100644 --- a/src-vue/src/App.vue +++ b/src-vue/src/App.vue @@ -23,6 +23,9 @@ export default { store.commit('initialize'); }, methods: { + async toggleMaximize() { + await appWindow.toggleMaximize(); + }, minimize() { appWindow.minimize() }, @@ -44,33 +47,48 @@ export default {
- + + + > Play Changelog Mods Thunderstore Settings Dev - - - + -
+ +
+ -
+
+ + +