diff --git a/.gitignore b/.gitignore
index fa74bb69..a05e8fe1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,10 @@
######################
## Files build by make
######################
-/css/src/sprites.scss
-/img/sprites.svg
+/css/src/sprites-bw.scss
+/css/src/sprites-color.scss
+/img/bw.svg
+/img/color.svg
/js/
#################
diff --git a/css/src/style.scss b/css/src/style.scss
index 621ae26c..68d1ce0d 100644
--- a/css/src/style.scss
+++ b/css/src/style.scss
@@ -18,7 +18,7 @@
z-index: -1;
width: 16px;
height: 16px;
- background: url('../../../apps/tasks/css/../img/sprites.svg') no-repeat;
+ background: var(--icon-tasks-bw-000) no-repeat;
margin: 14px;
margin-left: -30px;
background-position: inherit;
@@ -721,7 +721,13 @@
.icon {
height: 24px;
width: 24px;
- background-size: 144px 144px;
+ &.icon-color {
+ background-size: 96px 72px;
+ }
+
+ &.icon-bw {
+ background-size: 120px 120px;
+ }
}
}
@@ -798,7 +804,8 @@
&.date .icon {
&.icon-calendar-due,
&.icon-calendar-overdue,
- &.icon-percent {
+ &.icon-percent,
+ &.icon-percent-active {
opacity: 1;
}
}
diff --git a/css/tasks.scss b/css/tasks.scss
index f57ba033..6813755e 100644
--- a/css/tasks.scss
+++ b/css/tasks.scss
@@ -21,5 +21,6 @@
@import './src/vars';
@import './src/nc12';
-@import './src/sprites';
+@import './src/sprites-color';
+@import './src/sprites-bw';
@import './src/style';
diff --git a/img/sprites.svg b/img/sprites.svg
new file mode 100644
index 00000000..bbdd523f
--- /dev/null
+++ b/img/sprites.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/img/src/add.svg b/img/src/bw/add.svg
similarity index 100%
rename from img/src/add.svg
rename to img/src/bw/add.svg
diff --git a/img/src/all.svg b/img/src/bw/all.svg
similarity index 100%
rename from img/src/all.svg
rename to img/src/bw/all.svg
diff --git a/img/src/alphabetically.svg b/img/src/bw/alphabetically.svg
similarity index 100%
rename from img/src/alphabetically.svg
rename to img/src/bw/alphabetically.svg
diff --git a/img/src/calendar.svg b/img/src/bw/calendar.svg
similarity index 100%
rename from img/src/calendar.svg
rename to img/src/bw/calendar.svg
diff --git a/img/src/checkmark.svg b/img/src/bw/checkmark.svg
similarity index 100%
rename from img/src/checkmark.svg
rename to img/src/bw/checkmark.svg
diff --git a/img/src/clock.svg b/img/src/bw/clock.svg
similarity index 100%
rename from img/src/clock.svg
rename to img/src/bw/clock.svg
diff --git a/img/src/close.svg b/img/src/bw/close.svg
similarity index 100%
rename from img/src/close.svg
rename to img/src/bw/close.svg
diff --git a/img/src/current.svg b/img/src/bw/current.svg
similarity index 100%
rename from img/src/current.svg
rename to img/src/bw/current.svg
diff --git a/img/src/hide.svg b/img/src/bw/hide.svg
similarity index 100%
rename from img/src/hide.svg
rename to img/src/bw/hide.svg
diff --git a/img/src/list.svg b/img/src/bw/list.svg
similarity index 100%
rename from img/src/list.svg
rename to img/src/bw/list.svg
diff --git a/img/src/manual.svg b/img/src/bw/manual.svg
similarity index 100%
rename from img/src/manual.svg
rename to img/src/bw/manual.svg
diff --git a/img/src/note.svg b/img/src/bw/note.svg
similarity index 100%
rename from img/src/note.svg
rename to img/src/bw/note.svg
diff --git a/img/src/percent.svg b/img/src/bw/percent.svg
similarity index 100%
rename from img/src/percent.svg
rename to img/src/bw/percent.svg
diff --git a/img/src/random.svg b/img/src/bw/random.svg
similarity index 100%
rename from img/src/random.svg
rename to img/src/bw/random.svg
diff --git a/img/src/settings.svg b/img/src/bw/settings.svg
similarity index 100%
rename from img/src/settings.svg
rename to img/src/bw/settings.svg
diff --git a/img/src/sort-down.svg b/img/src/bw/sort-down.svg
similarity index 100%
rename from img/src/sort-down.svg
rename to img/src/bw/sort-down.svg
diff --git a/img/src/sort-up.svg b/img/src/bw/sort-up.svg
similarity index 100%
rename from img/src/sort-up.svg
rename to img/src/bw/sort-up.svg
diff --git a/img/src/subtasks-hidden.svg b/img/src/bw/subtasks-hidden.svg
similarity index 100%
rename from img/src/subtasks-hidden.svg
rename to img/src/bw/subtasks-hidden.svg
diff --git a/img/src/subtasks-hidden~hover.svg b/img/src/bw/subtasks-hidden~hover.svg
similarity index 100%
rename from img/src/subtasks-hidden~hover.svg
rename to img/src/bw/subtasks-hidden~hover.svg
diff --git a/img/src/subtasks-visible.svg b/img/src/bw/subtasks-visible.svg
similarity index 100%
rename from img/src/subtasks-visible.svg
rename to img/src/bw/subtasks-visible.svg
diff --git a/img/src/tag.svg b/img/src/bw/tag.svg
similarity index 100%
rename from img/src/tag.svg
rename to img/src/bw/tag.svg
diff --git a/img/src/task-star.svg b/img/src/bw/task-star.svg
similarity index 100%
rename from img/src/task-star.svg
rename to img/src/bw/task-star.svg
diff --git a/img/src/toggle.svg b/img/src/bw/toggle.svg
similarity index 100%
rename from img/src/toggle.svg
rename to img/src/bw/toggle.svg
diff --git a/img/src/trash.svg b/img/src/bw/trash.svg
similarity index 100%
rename from img/src/trash.svg
rename to img/src/bw/trash.svg
diff --git a/img/src/calendar-due.svg b/img/src/color/calendar-due.svg
similarity index 100%
rename from img/src/calendar-due.svg
rename to img/src/color/calendar-due.svg
diff --git a/img/src/calendar-overdue.svg b/img/src/color/calendar-overdue.svg
similarity index 100%
rename from img/src/calendar-overdue.svg
rename to img/src/color/calendar-overdue.svg
diff --git a/img/src/checkmark-color.svg b/img/src/color/checkmark-color.svg
similarity index 100%
rename from img/src/checkmark-color.svg
rename to img/src/color/checkmark-color.svg
diff --git a/img/src/clock-due.svg b/img/src/color/clock-due.svg
similarity index 100%
rename from img/src/clock-due.svg
rename to img/src/color/clock-due.svg
diff --git a/img/src/clock-overdue.svg b/img/src/color/clock-overdue.svg
similarity index 100%
rename from img/src/clock-overdue.svg
rename to img/src/color/clock-overdue.svg
diff --git a/img/src/percent-active.svg b/img/src/color/percent-active.svg
similarity index 100%
rename from img/src/percent-active.svg
rename to img/src/color/percent-active.svg
diff --git a/img/src/tag-active.svg b/img/src/color/tag-active.svg
similarity index 100%
rename from img/src/tag-active.svg
rename to img/src/color/tag-active.svg
diff --git a/img/src/task-star-high.svg b/img/src/color/task-star-high.svg
similarity index 100%
rename from img/src/task-star-high.svg
rename to img/src/color/task-star-high.svg
diff --git a/img/src/task-star-low.svg b/img/src/color/task-star-low.svg
similarity index 100%
rename from img/src/task-star-low.svg
rename to img/src/color/task-star-low.svg
diff --git a/img/src/task-star-medium.svg b/img/src/color/task-star-medium.svg
similarity index 100%
rename from img/src/task-star-medium.svg
rename to img/src/color/task-star-medium.svg
diff --git a/package.json b/package.json
index fd5dbcbb..d3295301 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,7 @@
"lint": "eslint --ext .js,.vue src tests",
"lint:fix": "eslint --ext .js,.vue src tests --fix",
"test": "jest --verbose",
- "svg_sprite": "svg-sprite --config svg-sprite.json img/src/**/*.svg"
+ "svg_sprite": "svg-sprite --config svg-sprite-color.json img/src/color/*.svg && svg-sprite --config svg-sprite-bw.json img/src/bw/*.svg"
},
"repository": {
"type": "git",
diff --git a/src/components/SortorderDropdown.vue b/src/components/SortorderDropdown.vue
index c3327cd0..ab4e8a24 100644
--- a/src/components/SortorderDropdown.vue
+++ b/src/components/SortorderDropdown.vue
@@ -24,8 +24,8 @@ License along with this library. If not, see