Reverse favorite icon coloring in files action menu
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
parent
9df618131b
commit
446a3d2f21
2 changed files with 6 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue