💄 Site > Favicon > Update chat notif color

This commit is contained in:
brunosimon
2017-09-07 14:31:58 +02:00
parent 3416c1b5e7
commit 1c7b076641
+5 -4
View File
@@ -21,7 +21,7 @@ export default
this.$favicon = document.querySelector('.favicon')
this.size = 16 * window.devicePixelRatio
this.notifSize = 0.2
this.notifSize = 0.17
this.canvas = document.createElement('canvas')
this.canvas.width = this.size
@@ -68,13 +68,14 @@ export default
if(this.chatUnreadCount > 0)
{
this.context.beginPath()
this.context.arc(this.size * (1 - this.notifSize), this.size * (1 - this.notifSize), this.size * this.notifSize, 0, Math.PI * 2)
this.context.arc(this.size * (1 - this.notifSize) - 1, this.size * (1 - this.notifSize) - 1, this.size * this.notifSize, 0, Math.PI * 2)
// this.context.arc(this.size * (1 - this.notifSize * 2.25), this.size * (1 - this.notifSize), this.size * this.notifSize, 0, Math.PI * 2)
this.context.fillStyle = '#ff763d'
this.context.fillStyle = '#4bd1c5' // ff763d
this.context.fill()
this.context.strokeStyle = '#ad1d3c'
this.context.lineWidth = 2
this.context.strokeStyle = '#0071ab' // ad1d3c
this.context.stroke()
}