Installing a theme is simple: just double click it and it should appear as an option in the Swinsian preferences. At this point the folder should change icon and appear as a theme file. If you have created the theme folder structure manually, rather than modifying the example theme, remember to first add the extension '.swinsiantheme' to the top theme folder. To distribute your theme to others you will need to compress it into a zip archive. These are playPause(), forward() and back(). Themes can control playback by calling methods of the window.Player object. 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. For a full list of changes see the change notes.Swinsian allows you to display information about the current track on your desktop. It’s also now possible to hide the album and artist labels in the art column for a cleaner appearance. The height for each album is now adjusted to save space when an album only contains a few tracks and the art column has been made narrow. The layout of the track table when the art column is visible and the “Show Every Album in Album Art Column” option is enabled has been improved. It’s now possible to change the character used to split the field from a comma to a slash. The option to split a genre into several values in the genre browser column (so that a track with the genre “Pop, Rock” will show up under “Pop” and “Rock”) has been extended to the artist field as well. It’s also now easier to change the field shown in each browser column right click the top row to select a different type for that column. It’s now possible to make Swinsian automatically select the currently playing track by enabling “Automatically Select Playing Track” in the Navigate menu. There are several new features as well as some improvements to the interface. Version 2.1 of Swinsian is now available to download.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |