|
|
Songbird Wiki > Developer Center > Articles > Maintaining Add-Ons > Updating 0.3 Feathers to be 0.4 Compatible
Updating 0.3 Feathers to be 0.4 CompatibleFrom $1Table of contents
Applicable to Songbird version: 0.4 Required Knowledge: CSS IntroductionFeathers created for 0.3 are basically compatible with 0.4, and updating should be pretty easy.
This document lists important Rubberducky changes that you may want to copy in your feathers. The code listings shown are styled such that If you run into problems, come to irc.mozilla.org#songbird. install.rdf changesReally the only thing preventing 0.4 compatibility is the version target in your install.rdf. The Extension Manager reads the min and max version when you try to install an .XPI, and decides whether or not to proceed. The first thing you should do is change your minVersion to 0.4pre and your max version to 0.5pre. install.rdf <em:targetApplication> <Description> <em:id>songbird@songbirdnest.com</em:id>
A new install.rdf <Description> <songbird:internalName>rubberducky/0.2</songbird:internalName> <songbird:showChrome>false</songbird:showChrome> <songbird:onTop>false</songbird:onTop> </Description> colors.cssChanges
The colors.css
New StylesThe most important addition in 0.4 is the display pane functionality. Add rules similar to those below to make sure display panes look good in your feathers. colors.css listheader, We've also added some popup blocker styles that you may want to copy. colors.css /* popup blocker icon in the status bar */
#page-report-button[blocked] > image {
border:1px solid transparent;
-moz-border-radius:2px;
}
#page-report-button[blocked]:hover > image {
border-top:1px solid #797f76; /** Button Highlight */
border-right:1px solid #202220; /** Button Shadow */
border-bottom:1px solid #202220; /** Button Shadow */
border-left:1px solid #202220; /** Button Shadow */
}
#page-report-button[blocked]:active > image {
border-top:1px solid #202220; /** Button Shadow */
border-right:1px solid #797f76; /** Button Highlight */
border-bottom:1px solid #797f76; /** Button Highlight */
border-left:1px solid #797f76; /** Button Highlight */
}
As well as some new rules to make bottom tabs look decent. colors.css /** Bottom tabs **/
.tab-bottom {
border-top: 1px solid #313131 !important;
border-right: 1px solid #474948 !important; /** Rubber Highlight */
border-bottom: 1px solid #474948 !important; /** Rubber Highlight */
border-left: 1px solid #474948 !important; /** Rubber Highlight */
background-color: #313131;
}
.tab-bottom:not([selected="true"]) {
border-top: 1px solid #313131 !important;
border-right: 1px solid #474948 !important; /** Rubber Highlight */
border-bottom: 1px solid #474948 !important; /** Rubber Highlight */
border-left: 1px solid #474948 !important; /** Rubber Highlight */
background-color: #313131;
}
.tab-bottom:hover:not([selected="true"]) {
border-top: 1px solid #313131 !important;
border-right: 1px solid #202220 !important; /** Button Shadow */
border-bottom: 1px solid #202220 !important; /** Button Shadow */
border-left: 1px solid #202220 !important; /** Button Shadow */
background-color: #313131;
}
.tab-bottom[selected="true"] {
border-top: 1px solid #313131 !important;
border-right: 1px solid #797f76 !important; /** Button Highlight */
border-bottom: 1px solid #474948 !important; /** Rubber Highlight */
border-left: 1px solid #797f76 !important; /** Button Highlight */
background-color: #313131;
}
/** General tab styles **/
Keisuke added some new rules to better style the preferences window. You don't have to copy them, but if you are unhappy with the way the prefs look give it a try. colors.css
formsImport.css
Mook has figured out how to style the selection color within text boxes. If you'd like to do this, copy ImagesKoshi and Keisuke updated quite a few images during 0.4 development. To get the new images you can:
chrome.manifestThese optional lines override the display pane icons when run on Mac OS X. Menus on Mac are white, so the standard light icons don't show up very well. chrome.manifest override chrome://songbird/skin/icons/displaypane-contentpane-bottom.png chrome://songbird/skin/icons/mac/displaypane-contentpane-bottom.png os=darwin override chrome://songbird/skin/icons/displaypane-servicepane-bottom.png chrome://songbird/skin/icons/mac/displaypane-servicepane-bottom.png os=darwin override chrome://songbird/skin/icons/displaypane-right-sidebar.png chrome://songbird/skin/icons/mac/displaypane-right-sidebar.png os=darwin Layouts
If you were adventurous and made your own window layout (
Tags:
|
Powered by MindTouch Deki Wiki |