1/12/2023 0 Comments Tag swinsianCreating custom themesÄesktop art themes are written in HTML and Javascript. Download it from the link below and expand the zip file: The easiest way to get started writing your own theme is to modify the example theme. Themes are standard OS X bundles (folders that the system treats like files). To view the contents right click and select Show Package Contents. The proper location for these is shown in the file layout below: Info property list There are two files that must be present in every theme: the property list file that describes the theme (ist) and the main html file (index.html). The ist file contains several fields that describe the theme. You should replace the values in the example file with ones appropriate for your theme. ![]() The CFBundleIdentifier / 'Bundle Identifier' value should be something unique for example your name followed by the theme name. The ThemeName value should be replaced with the name of your theme - this is the name that will show up in the Swinsian preferences window. The SwinsianThemeVersion value should be 2. ![]() The index.html page may reference other resources such as images in the Contents/Resources directory. The index.html page must include a Javascript function called updateWithNewTrack(). This function is called by Swinsian when a track starts to play and you should use it to update the page with the new tags and artwork values. Below is an example implementation of updateWithNewTrack: function updateWithNewTrack ( trackDictionary, paused, stopped ) #SWINSIAN VS ENQUEUE UPDATE#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |