← back to examples list

CPU-Audio theme example : Direct download instead of action button

You want to change buttons of position, shape or… whatever ? Want to recreate the Winamp classic 2.x theme or port one of the Audion ones ? Yes you can ! Check [INTERNALS.md](https://github.com/dascritch/cpu-audio/blob/master/INTERNALS.md) more more details

How to create a theme :

  1. We created a direct-download directory into src/themes
  2. We copied the original template.html from src/themes/default
  3. We do not need to copy the other files from src/themes/default, as they will be transparently used
  4. src/themes/direct-download/template.html was modified to replace the action button with the download link
  5. The theme is build in the shell with ./make.sh --theme direct-download
  6. A build/cpu-audio.direct-download.js is created
  7. We insert it instead of the usual build/cpu-audio.js

Please note :