Skip to content

Commit

Permalink
Merge pull request #12154 from rtibbles/theming_miss
Browse files Browse the repository at this point in the history
Fix some missed updates in theming
  • Loading branch information
marcellamaki committed May 13, 2024
2 parents 6daf78c + e239cbe commit f5e9d6d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 18 deletions.
19 changes: 4 additions & 15 deletions kolibri/core/assets/src/styles/themeSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,12 @@ import isObject from 'lodash/isObject';

const logging = logger.getLogger(__filename);

function _colorScaleValidator(value) {
function _brandColorScaleValidator(value) {
if (!isObject(value)) {
logging.error(`Expected object but got '${value}'`);
return false;
}
const COLOR_NAMES = [
'v_50',
'v_100',
'v_200',
'v_300',
'v_400',
'v_500',
'v_600',
'v_700',
'v_800',
'v_900',
];
const COLOR_NAMES = ['v_200', 'v_400', 'v_600', 'v_800', 'v_1000', 'v_1100'];
for (const colorName of COLOR_NAMES) {
if (!value[colorName]) {
logging.error(`${colorName} '${name}' not defined by theme`);
Expand Down Expand Up @@ -60,12 +49,12 @@ export default {
primary: {
type: Object,
required: true,
validator: _colorScaleValidator,
validator: _brandColorScaleValidator,
},
secondary: {
type: Object,
required: true,
validator: _colorScaleValidator,
validator: _brandColorScaleValidator,
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div
v-show="showBanner"
class="alert"
:style="{ backgroundColor: $themePalette.yellow.v_100 }"
:style="{ backgroundColor: $themePalette.yellow.v_200 }"
>
<div style="display:flex">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
...mapGetters('deviceInfo', ['isRemoteContent']),
InfoDescriptionColor() {
return {
color: this.$themePalette.grey.v_700,
color: this.$themePalette.grey.v_600,
};
},
pageTitle() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
}
},
channelColor() {
return this.$themePalette.grey.v_700;
return this.$themePalette.grey.v_600;
},
},
$trs: {
Expand Down

0 comments on commit f5e9d6d

Please sign in to comment.