Skip to content

Add option to hide the header FreeTube logo #2893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/renderer/components/theme-settings/theme-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export default Vue.extend({
return this.$store.getters.getHideLabelsSideBar
},

hideHeaderLogo: function () {
return this.$store.getters.getHideHeaderLogo
},

restartPromptMessage: function () {
return this.$t('Settings["The app needs to restart for changes to take effect. Restart and apply change?"]')
},
Expand Down Expand Up @@ -154,7 +158,8 @@ export default Vue.extend({
'updateExpandSideBar',
'updateUiScale',
'updateDisableSmoothScrolling',
'updateHideLabelsSideBar'
'updateHideLabelsSideBar',
'updateHideHeaderLogo'
])
}
})
6 changes: 6 additions & 0 deletions src/renderer/components/theme-settings/theme-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
:default-value="hideLabelsSideBar"
@change="updateHideLabelsSideBar"
/>
<ft-toggle-switch
:label="$t('Settings.Theme Settings.Hide FreeTube Header Logo')"
:compact="true"
:default-value="hideHeaderLogo"
@change="updateHideHeaderLogo"
/>
</ft-flex-box>
<ft-flex-box>
<ft-slider
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/components/top-nav/top-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export default Vue.extend({
return this.$store.getters.getHideSearchBar
},

hideHeaderLogo: function () {
return this.$store.getters.getHideHeaderLogo
},

enableSearchSuggestions: function () {
return this.$store.getters.getEnableSearchSuggestions
},
Expand Down
1 change: 1 addition & 0 deletions src/renderer/components/top-nav/top-nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
@keydown.enter.prevent="createNewWindow"
/>
<div
v-if="!hideHeaderLogo"
class="logo"
role="link"
tabindex="0"
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 @@ -198,6 +198,7 @@ const state = {
hideVideoDescription: false,
hideLiveChat: false,
hideLiveStreams: false,
hideHeaderLogo: false,
hidePlaylists: false,
hidePopularVideos: false,
hideRecommendedVideos: false,
Expand Down
1 change: 1 addition & 0 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ Settings:
Disable Smooth Scrolling: Disable Smooth Scrolling
UI Scale: UI Scale
Hide Side Bar Labels: Hide Side Bar Labels
Hide FreeTube Header Logo: Hide FreeTube Header Logo
Base Theme:
Base Theme: Base Theme
Black: Black
Expand Down