add default class for Folder in FolderIcon

This commit is contained in:
Milos Holba
2021-02-15 12:32:46 +01:00
parent 7eee7deba5
commit 60f02622da
3 changed files with 36 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
/>
<FontAwesomeIcon
v-if="!emoji"
:class="[{ 'is-deleted': isDeleted }, 'folder-icon']"
:class="[{ 'is-deleted': isDeleted },{'default-color' : ! color && ! isDeleted}, 'folder-icon' ]"
:style="{fill: color}"
icon="folder"
/>
@@ -42,10 +42,10 @@
color() {
// Return color if is changed from rename popup
if (this.folderIcon)
return this.folderIcon.color ? this.folderIcon.color : '#00BC7E'
return this.folderIcon.color ? this.folderIcon.color : false
// Return color if is already set
return this.item.icon_color ? this.item.icon_color : '#00BC7E'
return this.item.icon_color ? this.item.icon_color : false
}
}
}
@@ -77,6 +77,19 @@
}
}
.emoji-picker-preview {
&.is-apple .emoji-icon {
font-size: 22px;
line-height: 1.1;
}
}
.default-color {
path {
fill: $theme !important;
}
}
.folder-icon {
path {