Skip to content

Commit

Permalink
Merge pull request #2186 from nextcloud/fix/noid/dashboard-icon-dark
Browse files Browse the repository at this point in the history
Fix Tasks icon color in Dashboard widget
  • Loading branch information
raimund-schluessler authored Feb 2, 2023
2 parents 937e145 + ca9608f commit 7b597a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Dashboard/TasksWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getOrder(): int {
* @inheritDoc
*/
public function getIconClass(): string {
return 'icon-tasks';
return 'app-icon-tasks';
}

/**
Expand Down
7 changes: 2 additions & 5 deletions src/css/dashboard.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
.icon-tasks {
.app-icon-tasks {
background-image: url(./../../img/tasks-dark.svg);
}

body.theme--dark .icon-tasks {
background-image: url(./../../img/tasks.svg);
filter: var(--background-invert-if-dark);
}

0 comments on commit 7b597a0

Please sign in to comment.