From e3a5199e131affd096e9e7dd38ecee578aa30d74 Mon Sep 17 00:00:00 2001 From: Pontus Grandin Date: Fri, 30 Aug 2024 15:25:04 +0200 Subject: [PATCH 1/4] add autohide toolbar icon and en locale --- src/components/multiview/MultiviewToolbar.vue | 22 ++++++++++++++++++- src/locales/en/ui.yml | 1 + 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/components/multiview/MultiviewToolbar.vue b/src/components/multiview/MultiviewToolbar.vue index 3fb9609ce..50cc69574 100644 --- a/src/components/multiview/MultiviewToolbar.vue +++ b/src/components/multiview/MultiviewToolbar.vue @@ -51,6 +51,21 @@ {{ b.icon }} + + + {{ $t("views.multiview.autoHideToolbar") }} + + import copyToClipboard from "@/mixins/copyToClipboard"; -import { mdiLinkVariant, mdiClipboardPlusOutline } from "@mdi/js"; +import { mdiLinkVariant, mdiClipboardPlusOutline, mdiArrowCollapseUp } from "@mdi/js"; import { encodeLayout } from "@/utils/mv-utils"; import { mapState } from "vuex"; @@ -138,6 +153,7 @@ export default { return { mdiClipboardPlusOutline, mdiLinkVariant, + mdiArrowCollapseUp, shareDialog: false, }; }, @@ -181,6 +197,10 @@ export default { toggleMainNav() { return this.$store.commit("setNavDrawer", !this.$store.state.navDrawer); }, + toggleAutoHideToolbar() { + console.log("Test"); + // TODO implement + }, }, }; diff --git a/src/locales/en/ui.yml b/src/locales/en/ui.yml index acde0cb32..c0d6ba017 100644 --- a/src/locales/en/ui.yml +++ b/src/locales/en/ui.yml @@ -454,6 +454,7 @@ views: Videos are synced based on the stream start time, and can desync due to mid stream technical issues or deleted portions. Use offsets to manually align videos + autoHideToolbar: Auto Hide Toolbar mugen: welcome: >- Welcome to MugenClips! Everyone on this page is seeing the same randomly From 3e65b5c8df0feedb7839238512622693979f64e0 Mon Sep 17 00:00:00 2001 From: Pontus Grandin Date: Mon, 2 Sep 2024 14:49:37 +0200 Subject: [PATCH 2/4] hidden mouseenter toolbar and autoHideToolbar field --- src/components/multiview/MultiviewToolbar.vue | 33 ++++++++++++++++--- src/views/MultiView.vue | 17 ++++++++-- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/src/components/multiview/MultiviewToolbar.vue b/src/components/multiview/MultiviewToolbar.vue index 50cc69574..939eedfe4 100644 --- a/src/components/multiview/MultiviewToolbar.vue +++ b/src/components/multiview/MultiviewToolbar.vue @@ -1,5 +1,10 @@