Skip to content

Commit

Permalink
Include appBar in themeconfig; validate in themeSpec for appBar image…
Browse files Browse the repository at this point in the history
…, bg, and textColor
  • Loading branch information
nucleogenesis committed Dec 12, 2024
1 parent 4ae719c commit 4c0bee9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kolibri/core/assets/src/styles/themeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Vue from 'vue';

const themeConfig = Vue.observable({
appBar: {
background: null,
textColor: null,
topLogo: {
src: null,
alt: null,
Expand Down
19 changes: 19 additions & 0 deletions kolibri/core/assets/src/styles/themeSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,25 @@ const _imageSpec = {
};

export default {
appBar: {
type: Object,
default: null,
spec: {
background: {
type: String,
default: null,
},
textColor: {
type: String,
default: null,
},
topLogo: {
type: Object,
default: null,
spec: _imageSpec,
},
},
},
brandColors: {
type: Object,
default: null,
Expand Down

0 comments on commit 4c0bee9

Please sign in to comment.