diff --git a/custom-icons/pointsLeafActive.svg b/custom-icons/pointsLeafActive.svg new file mode 100644 index 000000000..7c5be4fe4 --- /dev/null +++ b/custom-icons/pointsLeafActive.svg @@ -0,0 +1 @@ + diff --git a/custom-icons/pointsLeafInactive.svg b/custom-icons/pointsLeafInactive.svg new file mode 100644 index 000000000..8dde472d2 --- /dev/null +++ b/custom-icons/pointsLeafInactive.svg @@ -0,0 +1 @@ + diff --git a/docs/rstIconReplacements.txt b/docs/rstIconReplacements.txt index ba76590d3..3656a14fb 100644 --- a/docs/rstIconReplacements.txt +++ b/docs/rstIconReplacements.txt @@ -78,6 +78,8 @@ .. |permission| replace:: :raw-html:`` .. |person| replace:: :raw-html:`` .. |plus| replace:: :raw-html:`` +.. |pointsActive| replace:: :raw-html:`` +.. |pointsInactive| replace:: :raw-html:`` .. |print| replace:: :raw-html:`` .. |profile| replace:: :raw-html:`` .. |projects| replace:: :raw-html:`` diff --git a/lib/KIcon/iconDefinitions.js b/lib/KIcon/iconDefinitions.js index 7f6248262..571cf4d3a 100644 --- a/lib/KIcon/iconDefinitions.js +++ b/lib/KIcon/iconDefinitions.js @@ -288,6 +288,16 @@ const KolibriIcons = { }, collapseAll: { icon: require('./precompiled-icons/mdi/collapse-all.vue').default }, dragHorizontal: { icon: require('./precompiled-icons/le/drag_horizontal.vue').default }, + // Setting a color for the points* icons - they don't use the color for their fill, but this ensures they're + // displayed alongside other icons with a defaultColor + pointsActive: { + icon: require('./precompiled-icons/le/pointsLeafActive.vue').default, + defaultColor: themeTokens().text, + }, + pointsInactive: { + icon: require('./precompiled-icons/le/pointsLeafInactive.vue').default, + defaultColor: themeTokens().text, + }, classes: { icon: require('./precompiled-icons/le/class.vue').default }, email: { icon: require('./precompiled-icons/material-icons/mail_outline/baseline.vue').default }, sidebar: { diff --git a/lib/KIcon/precompiled-icons/le/pointsLeafActive.vue b/lib/KIcon/precompiled-icons/le/pointsLeafActive.vue new file mode 100644 index 000000000..dbb8656b0 --- /dev/null +++ b/lib/KIcon/precompiled-icons/le/pointsLeafActive.vue @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/lib/KIcon/precompiled-icons/le/pointsLeafInactive.vue b/lib/KIcon/precompiled-icons/le/pointsLeafInactive.vue new file mode 100644 index 000000000..396be5d1c --- /dev/null +++ b/lib/KIcon/precompiled-icons/le/pointsLeafInactive.vue @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/package.json b/package.json index ad04e5e03..f6bff6738 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kolibri-design-system", - "version": "0.2.2-beta4", + "version": "0.2.2-beta5", "private": false, "description": "The Kolibri Design System defines common design patterns and code for use in Kolibri applications", "license": "MIT",