diff --git a/src/client/app/common/views/components/drive-file-thumbnail.vue b/src/client/app/common/views/components/drive-file-thumbnail.vue index 1a3ef371935791d1837bf1d421f600fdcad620a6..d6b0092ca2386f152d21a340236e62e6fb9f9e90 100644 --- a/src/client/app/common/views/components/drive-file-thumbnail.vue +++ b/src/client/app/common/views/components/drive-file-thumbnail.vue @@ -121,7 +121,7 @@ export default Vue.extend({ if (this.file.properties.avgColor) { anime({ targets: this.$refs.thumbnail, - backgroundColor: this.file.properties.avgColor.replace('255)', '0)'), + backgroundColor: 'transparent', // TODO fade duration: 100, easing: 'linear' }); diff --git a/src/client/app/desktop/views/components/drive.file.vue b/src/client/app/desktop/views/components/drive.file.vue index 46aae9ad2b2260d40d20032fc59e4cb38442dec7..efc534ee7017fe7675b39c5cb92fe105b9eff27f 100644 --- a/src/client/app/desktop/views/components/drive.file.vue +++ b/src/client/app/desktop/views/components/drive.file.vue @@ -142,7 +142,7 @@ export default Vue.extend({ if (this.file.properties.avgColor) { anime({ targets: this.$refs.thumbnail, - backgroundColor: this.file.properties.avgColor.replace('255)', '0)'), + backgroundColor: 'transparent', // TODO fade duration: 100, easing: 'linear' }); diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index 9287fa820bd9398801cd70e2e77f162a65499a86..2f164a4d921f027b6a68f19a86f7aaee58af7dd2 100644 --- a/src/services/drive/add-file.ts +++ b/src/services/drive/add-file.ts @@ -363,9 +363,7 @@ export default async function( logger.debug(`average color is calculated: ${r}, ${g}, ${b}`); - const value = info.isOpaque ? `rgba(${r},${g},${b},0)` : `rgba(${r},${g},${b},255)`; - - properties['avgColor'] = value; + properties['avgColor'] = `rgb(${r},${g},${b})`; } catch (e) { } };