Skip to content

Commit

Permalink
Merge pull request #3783 from owncloud/feature/themeable-sidebar-logo
Browse files Browse the repository at this point in the history
Add key to theme for sidebar logo
  • Loading branch information
Lukas Hirt authored Jul 16, 2020
2 parents ab337ae + 9c2642b commit d067883
Show file tree
Hide file tree
Showing 24 changed files with 9 additions and 247 deletions.
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

0 comments on commit d067883

Please sign in to comment.