Media View Toggle Buttons

Tuesday, Feb 2. 2010  –  Category: Songbird  –  22 Comments

Picture 3One of the things implemented in Purple Rain (the new Feather in Songbird 1.4) was direct toggle buttons to select the current Media View.  However, we only implemented them for the built in List View & Filter View buttons.  Third party Media Views were still only listed in the arrow-drop-down menu button next to them.  I’m happy to say that we’ve landed bug 18538 on trunk yesterday which will allow Media View developers to create and define icons to represent their Media View.  They will be automatically inserted into the row of buttons to allow users to more easily switch to the available views.

All the Media View developer needs to do is create an icon file.  It must be 22×80, with all four 22×20 states (normal, hover, active, and disabled) vertically stacked in it.  Here’s a sample one I created for John M’s excellent Grid View:

mpIconAll that’s left is to point to it inside the Media View’s install.rdf file.  In the same <songbird:mediaPage> section we simply define a new <songbird:contentIcon> value, like so:

<songbird:mediaPage>
   <Description>
        <songbird:contentIcon>chrome://gridview/skin/mpIcon.png</songbird:contentIcon>
        <songbird:contentTitle>Grid View</songbird:contentTitle>
        <songbird:contentUrl>chrome://gridview/content/media-page.xul</songbird:contentUrl>
    </Description>
</songbird:mediaPage>

That’s all there is to it!


Previous posts

More posts


Photos

2010-01-28 13.06.21.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 13.06.08.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 13.06.03.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.29.41.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.28.37.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.28.26.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.28.16.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.28.07.jpg from Snowboarding at Kirkwood with Tyler & Nick

More photos


Tweets

@szooey so jealous! sounds fun!
(Thu, Mar 18. 2010, 20:35)
@webmink thanks for the tip. this is an awesome session.
(Thu, Mar 18. 2010, 16:59)
digging Iceland's tourist homepage thingy: http://is.gd/aNZpT
(Thu, Mar 18. 2010, 16:35)
i'm a ManU fan all the way, but still... don't think any team can boast the level of fans that Liverpool have
(Thu, Mar 18. 2010, 13:00)
weird crazy british ads with odd jingles are making the liverpool vs. lille match entertaining, even if the game hasn't started
(Thu, Mar 18. 2010, 12:59)
updating to Postbox 1.1.3 to get "several stability fixes" to fix all the stability problems i wasn't experiencing.
(Thu, Mar 18. 2010, 11:16)