Skip to content

Commit

Permalink
Update appbar & sidenav to use appbar themeConfig values
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Dec 12, 2024
1 parent 1851e10 commit ec00222
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 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,19 @@

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

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

0 comments on commit ec00222

Please sign in to comment.