diff --git a/src/components/TheatreModeToggle.vue b/src/components/TheatreModeToggle.vue
new file mode 100644
index 0000000..a8824ef
--- /dev/null
+++ b/src/components/TheatreModeToggle.vue
@@ -0,0 +1,28 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main.ts b/src/main.ts
index fed9702..4998057 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -36,7 +36,8 @@ import {
FaShareAlt,
IoCloseSharp,
MdDownloadRound,
- IoPerson
+ IoPerson,
+ FaExpand
} from 'oh-vue-icons/icons'
addIcons(
@@ -55,7 +56,8 @@ addIcons(
FaShareAlt,
IoCloseSharp,
MdDownloadRound,
- IoPerson
+ IoPerson,
+ FaExpand
)
app.component('v-icon', OhVueIcon)
diff --git a/src/views/ClipView.vue b/src/views/ClipView.vue
index cca72cd..69d3d3c 100644
--- a/src/views/ClipView.vue
+++ b/src/views/ClipView.vue
@@ -9,11 +9,11 @@ import LoadingScreen from '@/components/LoadingScreen.vue'
import AboutTab from '@/components/user/AboutTab.vue'
import ShareModal from '@/components/popups/ShareButtonModal.vue'
import VueTitle from '@/components/VueTitle.vue'
+import TheatreModeToggle from '@/components/TheatreModeToggle.vue'
import type { Video } from '@/types'
import { truncate, abbreviate, getEndpoint } from '@/mixins'
-
export default {
inject: ['rootBackendUrl'],
async setup() {
@@ -51,7 +51,8 @@ export default {
videoOptions,
time: ref(0),
srcUrl,
- shareModalVisible: ref(false)
+ shareModalVisible: ref(false),
+ isTheatreMode: ref(false)
}
},
async mounted() {
@@ -72,13 +73,17 @@ export default {
LoadingScreen,
AboutTab,
ShareModal,
- VueTitle
+ VueTitle,
+ TheatreModeToggle
},
methods: {
truncate,
abbreviate,
toggleShareModal() {
this.shareModalVisible = !this.shareModalVisible
+ },
+ toggleTheatreMode() {
+ this.isTheatreMode = !this.isTheatreMode
}
}
}
@@ -95,7 +100,10 @@ export default {
>