Skip to content

Commit

Permalink
fix incorrect uses of themeConfig and themeTokens utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Dec 13, 2024
1 parent ec00222 commit ad78b7d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions kolibri/core/assets/src/styles/themeSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ export default {
spec: {
background: {
type: String,
default: themeTokens.appBar,
default: themeTokens().appBar,
},
textColor: {
type: String,
default: themeTokens.text,
default: themeTokens().text,
},
topLogo: {
type: Object,
Expand Down
15 changes: 9 additions & 6 deletions kolibri/core/assets/src/views/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

<div
v-show="!$isPrint"
:style="{ backgroundColor: $themeConfig.appBar.background }"
:style="{
backgroundColor: themeConfig.appBar.background,
color: themeConfig.appBar.textColor,
}"
>
<header>
<SkipNavigationLink />

<UiToolbar
:removeNavIcon="showAppNavView"
type="clear"
:textColor="$themeConfig.appBar.textColor"
:textColor="themeConfig.appBar.textColor"
class="app-bar"
:style="{
height: topBarHeight + 'px',
color: $themeConfig.appBar.textColor,
color: themeConfig.appBar.textColor,
}"
:raised="false"
:removeBrandDivider="true"
Expand All @@ -29,7 +32,7 @@
>
<KIconButton
icon="menu"
:color="$themeConfig.appBar.textColor"
:color="themeConfig.appBar.textColor"
:ariaLabel="$tr('openNav')"
@click="$emit('toggleSideNav')"
/>
Expand All @@ -52,7 +55,7 @@
<slot name="sub-nav">
<Navbar
v-if="links.length > 0"
:textColor="$themeConfig.appBar.textColor"
:textColor="themeConfig.appBar.textColor"
:navigationLinks="links"
/>
</slot>
Expand Down Expand Up @@ -98,7 +101,7 @@
<KIcon
icon="person"
:style="{
fill: $themeConfig.appBar.textColor,
fill: themeConfig.appBar.textColor,
height: '24px',
width: '24px',
margin: '4px',
Expand Down
3 changes: 2 additions & 1 deletion kolibri/core/assets/src/views/SideNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@
height: topBarHeight + 'px',
width: `${width}`,
paddingTop: windowIsSmall ? '4px' : '8px',
backgroundColor: $themeConfig.appBar.background,
backgroundColor: themeConfig.appBar.background,
color: themeConfig.appBar.textColor,
}"
>
<KIconButton
Expand Down

0 comments on commit ad78b7d

Please sign in to comment.