hughsk / tap-to-start

http://hughsk.io/tap-to-start/
MIT License
48 stars 2 forks source link

Add icon customization #5

Open dy opened 8 years ago

dy commented 8 years ago

Hi @hughsk!

How about adding customization for the icon? Some projects would win from custom start screen look.

hughsk commented 8 years ago

Good point! I've added options.icon to expose this in 1.2.0 — though it's a shame the default icon takes up ~1.5kB, I'm not sure on the best way to remove it while keeping the API simple...

dy commented 8 years ago

Sweet! Here’s optimized svg:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M72.3 43.2c-1.1-.1-2.1.1-3 .5-.9-2.5-3.1-4.4-5.9-4.5-1.3-.1-2.5.2-3.6.8-1.1-1.9-3.1-3.2-5.3-3.4-.9-.1-1.8.1-2.6.4v-6.5c0-3.7-2.8-6.7-6.3-6.9-1.8-.1-3.6.5-4.9 1.8-1.3 1.2-2.1 3-2.1 4.8v24.6l-1.9-1.7c-3.1-2.5-5.9-3-8.4-1.6-1.5.9-2.6 2.4-3 4.2-.4 1.8-.1 3.8 1 5.4l15.6 23.5v6.2c0 1.2 1 2.2 2.2 2.2h26.7c1.2 0 2.2-1 2.2-2.2v-8.3l4.5-8.3c.8-1.4 1.1-2.9 1.1-4.5V50c0-3.6-2.8-6.6-6.3-6.8zm2.3 17.9l-.4 8.7c0 .9-.2 1.7-.6 2.4L68.8 81c-.2.3-.3.7-.3 1v6.7H46.2V84c0-.4-.1-.8-.4-1.2l-16-24c-.4-.6-.5-1.3-.4-2 .1-.3.3-1 1-1.4.4-.2 1.2-.7 3.5 1.1l3.7 3.2c.6.6 1 1.4 1 2.2v1.4c0 1.2 1 2.2 2.2 2.2s2.2-1 2.2-2.2v-33c0-.6.3-1.2.7-1.7.5-.4 1.1-.7 1.7-.6 1.2.1 2.2 1.2 2.2 2.5V53.3c0 1.2 1 2.2 2.2 2.2 1.2 0 2.2-1 2.2-2.2v-10c0-.6.3-1.2.7-1.7.4-.4 1.1-.7 1.7-.6 1.2.1 2.2 1.2 2.2 2.5V53.4c0 1.2 1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