Skip to content
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

Add key to theme for sidebar logo #3783

Merged
merged 1 commit into from
Jul 16, 2020
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
6 changes: 6 additions & 0 deletions changelog/unreleased/themeable-logo-in-sidebar
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Enable changing sidebar logo via theming

We've added a key into the theme which enables using different logo in the sidebar.

https://github.com/owncloud/phoenix/issues/3782
https://github.com/owncloud/phoenix/pull/3783
2 changes: 1 addition & 1 deletion src/Phoenix.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default {
},
logoImage() {
return `/themes/${this.configuration.theme.name}/assets/logo.svg`
return this.configuration.theme.logo.sidebar
},
productName() {
Expand Down
1 change: 1 addition & 0 deletions src/store/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const state = {
helpDeskLinkText: 'ownCloud Central'
},
logo: {
sidebar: '',
favicon: ''
},
filesList: {
Expand Down
26 changes: 0 additions & 26 deletions src/themes/owncloud.less

This file was deleted.

11 changes: 0 additions & 11 deletions src/themes/owncloud/autocomplete.less

This file was deleted.

7 changes: 0 additions & 7 deletions src/themes/owncloud/base.less

This file was deleted.

11 changes: 0 additions & 11 deletions src/themes/owncloud/buttons.less

This file was deleted.

16 changes: 0 additions & 16 deletions src/themes/owncloud/icon-input.less

This file was deleted.

4 changes: 0 additions & 4 deletions src/themes/owncloud/label.less

This file was deleted.

18 changes: 0 additions & 18 deletions src/themes/owncloud/loader-spinner.less

This file was deleted.

13 changes: 0 additions & 13 deletions src/themes/owncloud/logo.less

This file was deleted.

19 changes: 0 additions & 19 deletions src/themes/owncloud/main.less

This file was deleted.

9 changes: 0 additions & 9 deletions src/themes/owncloud/menu-secondary.less

This file was deleted.

3 changes: 0 additions & 3 deletions src/themes/owncloud/oc-app-container.less

This file was deleted.

33 changes: 0 additions & 33 deletions src/themes/owncloud/oc-app-menu.less

This file was deleted.

7 changes: 0 additions & 7 deletions src/themes/owncloud/oc-head.less

This file was deleted.

4 changes: 0 additions & 4 deletions src/themes/owncloud/oc-public-share-icon.less

This file was deleted.

3 changes: 0 additions & 3 deletions src/themes/owncloud/oc-shared-item-card.less

This file was deleted.

33 changes: 0 additions & 33 deletions src/themes/owncloud/oc-user-menu.less

This file was deleted.

6 changes: 0 additions & 6 deletions src/themes/owncloud/offcanvas.less

This file was deleted.

3 changes: 0 additions & 3 deletions src/themes/owncloud/text.less

This file was deleted.

9 changes: 0 additions & 9 deletions src/themes/owncloud/transitions.less

This file was deleted.

11 changes: 0 additions & 11 deletions src/themes/owncloud/variables.less

This file was deleted.

1 change: 1 addition & 0 deletions themes/owncloud.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"slogan": "ownCloud – A safe home for all your data"
},
"logo": {
"sidebar": "themes/owncloud/assets/logo.svg",
"favicon": "themes/owncloud/favicon.jpg"
},
"filesList": {
Expand Down