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; var isFavorite = $file.data('favorite') === true;
if (isFavorite) { if (isFavorite) {
return 'icon-starred'; return 'icon-star-dark';
} }
return 'icon-star'; return 'icon-starred';
}, },
actionHandler: function(fileName, context) { actionHandler: function(fileName, context) {
var $favoriteMarkEl = context.$file.find('.favorite-mark'); 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'); background-image: url('../img/actions/star.svg?v=1');
} }
.icon-star-dark {
background-image: url('../img/actions/star-dark.svg?v=1');
}
.icon-starred { .icon-starred {
&:hover, &:focus { &:hover, &:focus {
background-image: url('../img/actions/star.svg?v=1'); background-image: url('../img/actions/star.svg?v=1');