9/1/2023 0 Comments Export swinsian playlist mp3s![]() ![]() If you wish your theme to display at a different size then implement the function and return a single rectangle object. By default themes are shown in a window that is 480 pixels wide and 200 high: anything larger than that will be cut off. The windowSize() function allows you to customise the size of the theme. Below is an example implementation of updateWithNewTrack: function updateWithNewTrack ( trackDictionary, paused, stopped ) 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. ![]() The index.html page must include a Javascript function called updateWithNewTrack(). The index.html page may reference other resources such as images in the Contents/Resources directory. The SwinsianThemeVersion value should be 2. 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 CFBundleIdentifier / 'Bundle Identifier' value should be something unique for example your name followed by the theme name. You should replace the values in the example file with ones appropriate for your theme. The ist file contains several fields that describe the theme. 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). To view the contents right click and select Show Package Contents. Themes are standard OS X bundles (folders that the system treats like files). 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. Creating custom themesÄesktop art themes are written in HTML and Javascript. You can use themes to customise how the track tags and artwork are displayed. Swinsian allows you to display information about the current track on your desktop. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |