Reverse favorite icon coloring in files action menu

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2017-10-30 18:17:59 +01:00
parent 9df618131b
commit 446a3d2f21
2 changed files with 6 additions and 2 deletions

View File

@ -110,10 +110,10 @@
var isFavorite = $file.data('favorite') === true;
if (isFavorite) {
return 'icon-starred';
return 'icon-star-dark';
}
return 'icon-star';
return 'icon-starred';
},
actionHandler: function(fileName, context) {
var $favoriteMarkEl = context.$file.find('.favorite-mark');

View File

@ -348,6 +348,10 @@ img, object, video, button, textarea, input, select {
background-image: url('../img/actions/star.svg?v=1');
}
.icon-star-dark {
background-image: url('../img/actions/star-dark.svg?v=1');
}
.icon-starred {
&:hover, &:focus {
background-image: url('../img/actions/star.svg?v=1');