Skip to content

Commit

Permalink
Revert Enable Theater Mode by Default removal
Browse files Browse the repository at this point in the history
Theatre mode is not mutually exclusive with the viewing mode and thus should not be included here. This also saves us the work of having to update the default viewing mode to theatre mode on first load for 1-2 releases that we would have otherwise needed.
  • Loading branch information
kommunarr committed Oct 20, 2024
1 parent 0347336 commit fcb1cfb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
9 changes: 6 additions & 3 deletions src/renderer/components/player-settings/player-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export default defineComponent({
screenshotDefaultPattern: '%Y%M%D-%H%N%S',
viewingModeValues: [
'default',
'theatre',
'fullscreen',
'fullwindow',
'pip',
Expand Down Expand Up @@ -136,6 +135,10 @@ export default defineComponent({
return this.$store.getters.getDefaultViewingMode
},

defaultTheatreMode: function () {
return this.$store.getters.getDefaultTheatreMode
},

externalPlayer: function () {
return this.$store.getters.getExternalPlayer
},
Expand Down Expand Up @@ -197,8 +200,7 @@ export default defineComponent({
viewingModeNames: function () {
const viewingModeNames = [
this.$t('Settings.General Settings.Thumbnail Preference.Default'),
this.$t('Video.Player.Theatre Mode'),
this.$t('Settings.Player Settings.Default Viewing Mode.Fullscreen'),
this.$t('Settings.Player Settings.Default Viewing Mode.Full Screen'),
this.$t('Video.Player.Full Window'),
this.$t('Settings.Player Settings.Default Viewing Mode.Picture in Picture'),
]
Expand Down Expand Up @@ -329,6 +331,7 @@ export default defineComponent({
'updateDefaultInterval',
'updateDefaultVolume',
'updateDefaultPlayback',
'updateDefaultTheatreMode',
'updateDefaultVideoFormat',
'updateDefaultQuality',
'updateVideoVolumeMouseScroll',
Expand Down
6 changes: 6 additions & 0 deletions src/renderer/components/player-settings/player-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
:default-value="enableSubtitlesByDefault"
@change="updateEnableSubtitlesByDefault"
/>
<ft-toggle-switch
:label="$t('Settings.Player Settings.Enable Theatre Mode by Default')"
:compact="true"
:default-value="defaultTheatreMode"
@change="updateDefaultTheatreMode"
/>
<ft-toggle-switch
:label="$t('Settings.Player Settings.Scroll Volume Over Video Player')"
:compact="true"
Expand Down
1 change: 1 addition & 0 deletions src/renderer/store/modules/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const state = {
defaultProfile: MAIN_PROFILE_ID,
defaultQuality: '720',
defaultSkipInterval: 5,
defaultTheatreMode: false,
defaultViewingMode: 'default',
defaultVideoFormat: 'dash',
disableSmoothScrolling: false,
Expand Down
8 changes: 5 additions & 3 deletions src/renderer/views/Watch/Watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export default defineComponent({
defaultInterval: function () {
return this.$store.getters.getDefaultInterval
},
defaultTheatreMode: function () {
return this.$store.getters.getDefaultTheatreMode
},
defaultViewingMode: function () {
return this.$store.getters.getDefaultViewingMode
},
Expand Down Expand Up @@ -329,10 +332,9 @@ export default defineComponent({
},

setViewingModeOnFirstLoad: function () {
this.useTheatreMode = this.defaultTheatreMode && this.theatrePossible

switch (this.defaultViewingMode) {
case 'theatre':
this.useTheatreMode = this.theatrePossible
return
case 'fullscreen':
this.startNextVideoInFullscreen = true
return
Expand Down
5 changes: 3 additions & 2 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,14 @@ Settings:
Player Settings:
Player Settings: Player
Play Next Video: Play Next Video
Turn on Subtitles by Default: Turn on Subtitles by Default
Turn on Subtitles by Default: Enable Subtitles by Default
Autoplay Videos: Autoplay Videos
Proxy Videos Through Invidious: Proxy Videos Through Invidious
Autoplay Playlists: Autoplay Playlists
Enable Theatre Mode by Default: Enable Theater Mode by Default
Default Viewing Mode:
Default Viewing Mode: Default Viewing Mode
Fullscreen: Fullscreen
Full Screen: Full Screen
Picture in Picture: Picture in Picture
External Player: External Player ({externalPlayerName})
Scroll Volume Over Video Player: Scroll Volume Over Video Player
Expand Down

0 comments on commit fcb1cfb

Please sign in to comment.