victronenergy / node-red-contrib-victron

MIT License
90 stars 18 forks source link

Use a Victron Energy icon on nodes #4

Closed pkronstrom closed 5 years ago

pkronstrom commented 5 years ago

Requires a properly formatted icon. Easy to add after that.

From node-red documentation: https://nodered.org/docs/creating-nodes/appearance "A node can provide its own icon in a directory called icons alongside its .js and .html files. These directories get added to the search path when the editor looks for a given icon filename. Because of this, the icon filename must be unique.

The icon should be white on a transparent background, 20 x 30 in size."

pkronstrom commented 5 years ago

Fitting VE logo to a 20px wide png (as instructed in the documentation) makes it look quite fuzzy. Trying SVG instead.

screenshot 2019-01-09 at 10 59 54
pkronstrom commented 5 years ago

Using an svg icon instead looks much nicer.

screenshot 2019-01-09 at 14 26 31