Search completed in 1.31 seconds.
111 results for "themes":
Your results are loading. Please wait...
Frequently Asked Questions for Lightweight themes
Introducing Lightweight themes What are Lightweight themes? Lightweight themes are easy-to-install, easy-to-use skins that change the look of your Firefox web browser. There are hundreds of thousands community-designed themes to choose from, with more added every day. Start looking here for designs that fit your style. What kind of computers and operating systems do Lightweight themes work with? Lightweight themes work with any type of computer that has Firefox installed. This includes Mac, Linux, Windows, and Android platforms. What can Lightweight themes do? ...
...ds of thousands community-designed themes to choose from, with more added every day. Start looking here for designs that fit your style. What kind of computers and operating systems do Lightweight themes work with? Lightweight themes work with any type of computer that has Firefox installed. This includes Mac, Linux, Windows, and Android platforms. What can Lightweight themes do? Lightweight themes change the header area of your browser, including the tab text color and the background tab colors. You can easily preview a design and install it without needing to restart. Installing Lightweight themes How do I add Lightweight themes to my Firefox? In just a few seconds, you can install a theme and transform the look of your Firefox web browser. Preview any theme by clicking "Tap to Previe...
...ur Firefox web browser. Preview any theme by clicking "Tap to Preview"; the design appears in your browser header so you can "try it on." When you're ready, just click the blue Install Theme button. Once a theme is installed, it is saved in the Add-ons Manager, where you can enable or disable them as you wish. Simply go to the Tools > Add-ons menu and click on the Appearance tab. Are Lightweight themes free? Yes. Themes are free to download and free to use. Using Lightweight themes How do I change my current Lightweight theme? There are two easy ways to change your theme. You can either: Visit the gallery, choose your favorite theme, and click on your choice to instantly change the look of your browser. Once a theme is installed, it is saved in the Add-ons Manager, where you can enable ...
...And 4 more matches
Installing Extensions and Themes From Web Pages - Archive of obsolete content
Extension and web authors are encouraged to use the method described below to install XPIs, as it provides the best experience to users. ...
...file being served by a mirror download server, for example. You can use any hash function supported by nsICryptoHash. The hash is specified as hash function:hash value, for example, sha1:28857e60d043447c5f4550853f2d40770b326a13. toString() The toString() property should return the XPI URL, for compatibility with Firefox browsers older than version 1.0, and other applications such as Seamonkey. Themes Pretty much everything I've described applies to themes too, except you'll use the installChrome function. Because so many sites installed extensions by direct-linking the XPI file and relying on content handling to invoke the confirmation UI, many sites are (incorrectly) doing so for theme JAR files too and wondering why they aren't auto-detected and installed. Well, XPI is a Mozilla-specific e...
...nction. Because so many sites installed extensions by direct-linking the XPI file and relying on content handling to invoke the confirmation UI, many sites are (incorrectly) doing so for theme JAR files too and wondering why they aren't auto-detected and installed. Well, XPI is a Mozilla-specific extension and so we can have special handling for it, but JAR is not - not all .jar files are Firefox themes, so if you click on a .jar link you'll be shown the Save As decision dialog. For this reason you should always use the InstallTrigger API to install themes. A Note on updateEnabled() InstallTrigger exposes a function called updateEnabled that some of you may be calling before you call InstallTrigger.install. This is not necessary as install calls updateEnabled itself internally. Furthermore, ca...
lightweightthemes - Archive of obsolete content
...
... ...
Lightweight themes
Finished Your Design? You can submit it right now! Creating a theme header image The header image is displayed as the background of the top of the browser window, nestling in behind the toolbars, address bar, search bar and the tab strip. It will be anchored to the top-right corner of the browser window. View a sample Theme Header here. ...
...sure you have the rights to use the image in your theme! Upload your image -- make sure it is under 300 KB in size and JPG or PNG format! Select text and tab colors -- you can choose the tab ("background") color and foreground text color that work best with your header image. Submit your theme -- if everything looks right, click the Submit Theme button and you're done! You can see all the themes you've authored on your profile page. Tip: to ensure that your theme is approved for the gallery, be sure it complies with the content guidelines and terms of service! Submit Your Theme Now Frequently asked questions For more information about Lightweight themes, including content guidelines, please see these Frequently Asked Questions. More tutorials Mozilla Themes Focal Point o...
Themes
Only browser themes will be accepted going forward. ...
... Themes allow you to change the look and feel of the user interface and personalize it to your tastes. Learn how to create and share themes! Browser Themes Browser theme concepts Get an introduction to creating themes for the latest versions of Firefox Using the AMO theme generator Use the theme generator to create and submit a new theme to AMO Lightweight Themes Lightweight themes have been deprecated and are no longer accepted by AMO. Only browser themes will be accepted going forward. Tools & Resources Browser theme manifest.json keys Browser extensions theme API Discourse forum Theme related blog posts Archived resources ...
lightweightthemesfooter - Archive of obsolete content
...
Index - Archive of obsolete content
5 Extension Library No summary! 236 Extension Packaging Add-ons, Extensions, Guide, Toolkit API No summary! 237 Extension Samples No summary! 238 Extension Theming Guidelines Add-ons, Extensions This is a set of guidelines on how to control the look and feel of your extension while leaving it open for styling by custom themes. 239 Extension Versioning, Update and Compatibility Add-ons, Extensions Add-ons should specify their versions using the Toolkit version format. As a rough overview this is a version string split by periods, some examples: 240 Extensions support in SeaMonkey 2 Add-ons, CodingScripting, Extensions, JavaScript, SeaMonkey, URL, thunderbird Starting with SeaMo...
...r-enabled XUL application (e.g. Firefox or Thunderbird) uses to determine information about an add-on as it is being installed. It contains metadata identifying the add-on, providing information about who created it, where more information can be found about it, which versions of what applications it is compatible with, how it should be updated, and so on. 247 Installing Extensions and Themes From Web Pages Add-ons, Extensions, Obsolete, Themes There are a variety of ways you can install extensions and themes from web pages, including direct linking to the XPI files and using the InstallTrigger object. 248 Interaction between privileged and non-privileged pages Add-ons, Code snippets, Extensions An easy way to send data from a web page to an extension is...
...9 Signing an XPI Add-ons, Code snippets, Extensions, Guide, NeedsHelp, XPInstall This article describes how to sign your own Firefox extensions with a code-signing certificate on a Windows platform. It was developed from the linux article So you want to sign your XPI package? by MozDev Group's Pete Collins. 300 Signing an extension Add-ons, Administration, Extensions, Themes, XPInstall, enterprise This article describes how to digitally sign your extension for Firefox and Thunderbird, with a code signing certificate for Object Signing. The following instructions also apply to a theme and other XPI files. 301 Supporting search suggestions in search plugins Add-ons, OpenSearch, Search, Search plugins Firefox supports search suggestions in Ope...
...And 20 more matches
Theme concepts
These theme options can be implemented as static themes (although the theme images themselves may be animated) or as dynamic themes created in a browser extension. If you have a lightweight theme it will be converted to this new theme format automatically before lightweight themes are deprecated. You do not need to port your theme. However, please feel free to update your themes to use any of the new features described here. ...
...ader area of the Firefox browser; this is the area behind the menu bar, toolbars, address bar, search bar, and tab strip. These theme options can be implemented as static themes (although the theme images themselves may be animated) or as dynamic themes created in a browser extension. If you have a lightweight theme it will be converted to this new theme format automatically before lightweight themes are deprecated. You do not need to port your theme. However, please feel free to update your themes to use any of the new features described here. Static themes Static themes are specified using the same resources as a browser extension: a manifest.json file to define the theme components with those components stored in the same folder as the manifest.json file or a sub folder. These resources...
...r on AMO to create a static theme. Additionally, Firefox Color can be used to preview customizations to the browser's theme with options to share and export a theme. A theme and browser extension functionality cannot be defined in one package, such as including a theme to complement an extension. You can, however, programmatically include a theme in an extension using the Theme API. See Dynamic themes. Defining a theme To create a theme (in this example a simple, single image theme): Create a folder in a suitable location on your computer. Add the theme image file to the folder: <mytheme> <your_header_image>.<type> Create a file called manifest.json in the folder and edit its content as follows: { "manifest_version": 2, "version": "1.0", "name": "<your_theme_name>", "the...
...And 12 more matches
Building a Theme - Archive of obsolete content
For an older tutorial, see Creating a Skin for Firefox. Note: Firefox for Mac OS X has changed some directories so the guide may be obsolete. ...
...For an older tutorial, see Creating a Skin for Firefox. Note: Firefox for Mac OS X has changed some directories so the guide may be obsolete. ...
... which updates the background color of the toolbars in Firefox. Note: This tutorial is about building themes for Firefox 29 and later. Other tutorials exist for building themes for earlier versions of Firefox. For an older tutorial, see Creating a Skin for Firefox. Note: Firefox for Mac OS X has changed some directories so the guide may be obsolete. Setting up the Development Environment Themes and extensions are packaged and distributed in ZIP files or Bundles, with the XPI (pronounced "zippy") file extension. An example of the content within a typical XPI file for a theme: example.xpi: /install.rdf /chrome.manifest /preview.png /icon.png /chrome/ browser/ communicator/ ...
...And 5 more matches
Index
ozilla.org (AMO), whether you choose to distribute your add-on through AMO or to do it yourself. 678 Make money from browser extensions Guide, Monetization, WebExtensions, distribution While users can download browser extensions for Firefox free of cost from addons.mozilla.org (AMO), this doesn't mean you can't make money from browser extensions, and to a more limited extent themes. 679 Promoting your extension or theme Add-ons, Extensions, Promotion, Themes, WebExtensions, distribution So you've written a great extension, but only a few people have found and installed it from addons.mozilla.org--despite your efforts to create an appealing listing. So, how do you encourage more people to install your extension? This page looks at how. 680 Res...
...e build processes render extension code difficult to read. These processes include minifying your code, as well as the use of module bundlers or similar tools, such as webpack. In this case, when you upload your extension to AMO, you will need to provide your source code and instructions for building that source code, where build processes render your extension's code hard to read. ...
...n code difficult to read. These processes include minifying your code, as well as the use of module bundlers or similar tools, such as webpack. In this case, when you upload your extension to AMO, you will need to provide your source code and instructions for building that source code, where build processes render your extension's code hard to read. ...
...And 3 more matches
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
sions is not mentioned here (you can check this document's change history for older revisions, though). These are the current icon sets for Firefox: Windows Mac OS X (Lion and above) Mac OS X Linux (Gnome) Note: the images above are probably not distributable under the same CC license, unlike the rest of this material. Here are the key similarities and differences between the 3 themes: All systems use small icons that are 16x16 pixels. Only the Gnome theme has a set of large icons that are 24x24 pixels. Only a few icons have different states (rows). The disabled state for most buttons is handled with CSS. The icon sets have different paddings for their icons. The one for Windows has 19x19 pixel frames, while the Mac OS ones are 20x20 pixels. This doesn't really matter as ...
...n/win/ os=WINNT skin xulschoolhello classic/1.0 skin/mac/ os=Darwin The osversion flag can be used in case we wanted to have different icons for Mac OS X Lion and above, and others for older systems. In this example we won't bother. There is a separate skin directory for each system, with the Unix theme as the default (as most other systems are Unix-based). This makes it easy to keep the themes separate and to make changes to one of them without having to worry about the rest. On the other hand, it is often the case that there are multiple images and CSS sheets that are the same for all systems. For example, your extension logo icon will probably be the same. Having multiple copies of these files can be wasteful, so you may want to have a "common" directory. Image files use the most s...
...the region that corresponds to a specific state of an icon, the -moz-image-region CSS property is used. Here are some examples of how the CSS for a toolbarbutton would look like on the 3 major platforms. This assumes that you've set the class xs-hw-toolbarbutton to all of your buttons. Windows: /* The second and third selectors at the bottom are necessary to prevent conflicts with installed themes. */ toolbarbutton.xulschoolhello-toolbarbutton, window:not([active="true"]) toolbarbutton.xulschoolhello-toolbarbutton, toolbar[iconsize="small"] toolbarbutton.xulschoolhello-toolbarbutton { list-style-image: url("chrome://xulschoolhello-os/skin/toolbar.png"); } #xulschoolhello-hello-world-button { -moz-image-region: rect(0px, 16px, 16px, 0px); } Mac OS X: /* The second and third selecto...
...And 2 more matches
XULRunner tips - Archive of obsolete content
1.9 the XULRunner directory is ignored, while the profile and application directories are checked. ...
... and theme manager work: pref("xpinstall.dialog.confirm", "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul"); pref("xpinstall.dialog.progress.skin", "chrome://mozapps/content/extensions/extensions.xul?type=themes"); pref("xpinstall.dialog.progress.chrome", "chrome://mozapps/content/extensions/extensions.xul?type=extensions"); pref("xpinstall.dialog.progress.type.skin", "Extension:Manager-themes"); pref("xpinstall.dialog.progress.type.chrome", "Extension:Manager-extensions"); pref("extensions.update.enabled", true); pref("extensions.update.interval", 86400); pref("extensions.dss.enabled", false); pref("extensions.dss.switchPending", false); pref("extensions.ignoreMTimeChanges", false); pref("extensions.logging.enabled", false); pref("general.skins.selectedSkin", "classic/1.0"); // NB the...
...hPending", false); pref("extensions.ignoreMTimeChanges", false); pref("extensions.logging.enabled", false); pref("general.skins.selectedSkin", "classic/1.0"); // NB these point at AMO pref("extensions.update.url", "chrome://mozapps/locale/extensions/extensions.properties"); pref("extensions.getMoreExtensionsURL", "chrome://mozapps/locale/extensions/extensions.properties"); pref("extensions.getMoreThemesURL", "chrome://mozapps/locale/extensions/extensions.properties"); If your application is based on Gecko 2.0, you need to register a component through the new component registration because the extension manager uses FUEL, namely Application.restart(), to restart your xulrunner-based application after any change (installation, removal, enabling, disabling) in the extensions' list: copy files ...
...And 2 more matches
Theme changes in Firefox 3 - Archive of obsolete content
If anyone with theming experience would like to write one, please do! Browser changes requiring theme updates There are a number of changed and deleted files in the browser that may require you to make changes to your theme. The table lists both the changed XUL file and the theme's corresponding CSS file that you might need to update. ...
...nding CSS file that you might need to update. Filename CSS File Details Changes to the default theme The table below lists changes made in the default theme for Firefox 3; you can use this information as a starting point for figuring out the changes you need to make. All file list All platforms File Description of change browser/themes/*/browser/browser.css The width of the drag and drop indicator is no longer calculated during the drag (tabbrowser.xml). Instead a '-moz-margin-start' property must be added to .tab-drop-indicator-bar, with a value that is half of the width of the indicator image. Also, the visibility of the indicator is now controlled by setting collapsed in tabbrowser.xml. As a result, the 'display' property...
... property must be added to .tab-drop-indicator-bar, with a value that is half of the width of the indicator image. Also, the visibility of the indicator is now controlled by setting collapsed in tabbrowser.xml. As a result, the 'display' property should be removed from .tab-drop-indicator-bar (including for dragging="true"). Mac OS X File Description of change browser/themes/pinstripe/browser/tabbrowser/tabDragIndicator.png Removed superfluous blank pixels from the edges, so that the image is smaller. May or may not affect other Mac themes that use it. browser/themes/pinstripe/browser/browser.css .tabbrowser-tab[first-tab="true"] > .tab-image-left no longer has a margin-left. Instead .tabs-left now displayed and given the same width as the former margi...
...And 2 more matches
Content Scripts - Archive of obsolete content
listen for DOM events in a content script just as you can in a normal page script, but there are two important differences: First, if you define an event listener by passing it as a string into setAttribute(), then the listener is evaluated in the page's context, so it will not have access to any variables defined in the content script. For example, this content script will fail with the error "theMessage is not defined": var theMessage = "Hello from content script!"; anElement.setAttribute("onclick", "alert(theMessage);"); Second, if you define an event listener by direct assignment to a global event handler like onclick, then the assignment might be overridden by the page. For example, here's an add-on that tries to add a click handler by assignment to window.onclick: var myScript = "wind...
... to send messages from one side to the other, use port.e...
... to send messages from one side to the other, use port.emit() to receive messages sent from the other side, use port.on() Messages are asy...
... to send messages from one side to the other, use port.emit() to receive messages sent from the other side, use port.on() Messages are asynchronous: that is, the sender does not wait for a reply from the recipient but...
Enhanced Extension Installation - Archive of obsolete content
application directory, e.g. C:\Program Files\Mozilla Firefox\extensions Extension Metadata The Extension System stores metadata in both of the two locations, in the following files: <location>/extensions/Extensions.rdf - an XML/RDF datasource listing all the Extensions installed at that location. <location>/extensions.ini - an INI manifest listing the directories for all the Extensions and Themes at the location (used by the Component Manager, Preferences system, Chrome Registry etc to locate files during the startup process). In the profile directory, the file compatibility.ini stores information about the version of the application (build info) that last started this profile - during startup this file is checked and if the version info held by the running app disagrees with the info h...
... relationship itself is not stored directly in the datasource. Rather, if the system needs to know where an item is located, it checks to see if the item is a member of the the appropriate type container (urn:mozilla:extension:root or urn:mozilla:theme:root) in each of the two datasources. This is clumsy. Item Type The Extension System in Firefox 1.0 supports only two item types, Extensions and Themes. This is a by-product of the fact that there are physical per-type containers in the datasource. Sections of UI that display installed items are rooted on these containers. Tracking Item Type Item type is tracked for the most part by containment in one or other of the two containers. In situations where an item is not yet a member of one of the containers, type is inelegantly determined by chec...
...e one specified by the item, or the default one) if there is remote compatibility information that supercedes the compatibility information held by the item. If there is, and this remote information makes it so that the item is now compatible with the running version of the application, the item is configured in the manner described above (metadata written, added to container). Finalization For Themes, the item is immediately installed fully, rather than awaiting the next restart, since Themes do not supply XPCOM components, preferences defaults etc. For Extensions, on the next startup, the startup system notices the presence of the .autoreg file and starts the Extension manager with a "dirty" flag, telling it to finish any install operations that may be pending. The Extension manager loads ...
... nature of RDF resources. Extension metadata is structured and not relational in the sense encouraged by RDF, and so a simple text storage format is probably desirable. Making the database file format human readable would also help developers debug their installation problems. Footnotes The term "Extension" is used in this document to imply any item managed by the Extension Manager, including themes. The term "Firefox" is used in this document to imply any application built on XULRunner that uses the Extension System. Original Document Information Author(s): Ben Goodger Last Updated Date: April 18, 2005 Copyright Information: Copyright (C) Ben Goodger ...
Extension Packaging - Archive of obsolete content
is launched. When using this method you must verify that the file system permissions for the directories, and files for the extension, are set properly. Otherwise, the Extension Manager may not function properly with the extension, or the extension itself may not work properly. Including add-ons in a customized application A customized application can include add-ons, including extensions and themes, by placing the unpacked (that is, not the XPI files, but the packages' contents) in the <appdir>/distribution/extensions directory. This directory containing the add-on must be named the same as the ID of the add-on or theme. Add-ons packaged in this way will not be visible to the user. Register an extension location using the Windows Registry External installers, such as the Java runtime, may...
... visible to the user. Register an extension location using the Windows Registry External installers, such as the Java runtime, may wish to install application integration points as an extension, even if the application is not yet installed. This can be accomplished on Windows using the registry. Multi-item extension XPIs In some cases, a single XPI file may wish to install multiple extensions/themes. A special kind of extension XPI, called the Multiple Item Package, explains how to create this kind of package. (Firefox 1.5/XULRunner 1.8 required.) From the release of Firefox 53, multiple item extension packages are no longer supported and will not load. As a consequence, these packages are no longer accepted by AMO. Official references for Toolkit API Structure of an Installable B...
... create this kind of package. (Firefox 1.5/XULRunner 1.8 required.) From the release of Firefox 53, multiple item extension packages are no longer supported and will not load. As a consequence, these packages are no longer accepted by AMO. ...
...t load. As a consequence, these packages are no longer accepted by AMO. ...
Multiple item extension packaging - Archive of obsolete content
equirements as an extension except as noted below. There is currently no feature to prevent or warn the user when installing an older version of an extension. Multiple Item Package File Layout The multiple item package file layout is a simplified form of an installable bundle and requires a file extension of xpi. A multiple item package may contain both extensions (e.g. xpi file extension) and themes (e.g. jar file extension). The basic structure is shown below: /install.rdf Install Manifest /extension1.xpi Extension /extension2.xpi Extension /theme1.jar Theme /theme2.jar Theme ... The Extension Manager will read the install.rdf Install Manifest to determine if this is a Multiple ...
...should be the lowest maxVersion from all of the installable bundles contained by the multiple item package for the em:targetApplication. If this is not done, any items that are not compatible will not be installed unless a compatibility check discovers updated compatibility information. Installation Installation can be performed using any of the existing methods used for installing extensions / themes. The same user interface is used for installing a multiple item package (i.e. the individual packages contained in the multiple item package will not be listed). This also allows displaying of signing information for the multiple item package. If a manager (e.g. extension / theme manager) is used, the manager will display the individual items contained by the multiple item package after the down...
...r add-on ID must not be the same as the ID of any of the contained add-ons. Official References for Toolkit API Official References. Do not add to this list without contacting Benjamin Smedberg. Note that this page is included from the pages listed below. ...
...tacting Benjamin Smedberg. Note that this page is included from the pages listed below. ...
Structure of an installable bundle - Archive of obsolete content
Basic structure of a bundle A bundle may include any of the following files: Path from the root of the bundle Description Version information /install.rdf Extension/Theme Install Manifest /application.ini Application Launch Manifest /bootstrap.js The bootstrap script for extensions not requiring a restart (those with <em:bootstrap>true</em:bootstrap> in their install.rdf). Note that other files and directories (e.g. ...
...me.manifest) Application-specific /searchplugins/*.src Sherlock search plugins Firefox 1.5 and greater. /searchplugins/*.xml MozSearch and OpenSearch plugins Firefox 2 and greater /dictionaries/*.{aff|dic} Myspell dictionaries Firefox 2 and greater Of course, an extension need not (and normally won't) have all of these directories. Themes are limited for security reasons, and can normally only provide a chrome.manifest which registers the theme and a JAR file. Platform-specific files Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) removed support for platform-specific subdirectories, described below. Instead, you need to use manifest flags, such as the OS and ABI flags, in your chrome manifest to specify components that ...
...se directory first, followed by the applicable platform directories (first /{OS_TARGET}/, then /{OS_TARGET}_{TARGET_XPCOM_ABI}/). When default preferences are defined in several directories, the ones loaded later overwrite the earlier ones. ...
...l directories, the ones loaded later overwrite the earlier ones. ...
Complete - Archive of obsolete content
ns, see the main Extensions page here. Features of this extension This extension is a more complex version of the original Custom Toolbar Button extension. It provides a user interface in two languages (English and French). It supports Firefox, Thunderbird, Sunbird and Flock--these are referred to as "Firefox etc." in the rest of this page. It also supports SeaMonkey. In SeaMonkey it supports two themes (Classic and Modern). It provides all five custom toolbar buttons on all the toolbars, and it provides corresponding menu choices in SeaMonkey's ChatZilla window. The following sections describe this extension's overall structure, and how it implements languages and themes. Overall structure This extension's internal name is allcustom. It uses this name as the default file name throughout. Where ...
...lish and French without needing any language pack. Some versions of Firefox etc. have a bug that prevents this from working. To work around the bug, close the application, delete the file XUL.mfl in its profile, then restart it with the command line switch. Firefox etc. support specifying the language alone, without any region--for example, just: -uiLocale fr SeaMonkey does not support this. Themes A theme changes the appearance of the user interface, affecting fonts, colours, graphics, and sometimes layout. A theme consists of a skin for each component. This extension is just one component, allcustom, so it contains a skin for this component in each of the themes that it supports. These themes are: Classic for Firefox etc. Classic for SeaMonkey Modern for SeaMonkey To make it easie...
...pearance of the user interface, affecting fonts, colours, graphics, and sometimes layout. A theme consists of a skin for each component. This extension is just one component, allcustom, so it contains a skin for this component in each of the themes that it supports. These themes are: Classic for Firefox etc. Classic for SeaMonkey Modern for SeaMonkey To make it easier to support different themes, developers place anything that might depend on the theme in separate files in a separate directory. In this extension, the only things that depend on the theme are the icon images on the buttons and the CSS style rules. For more information about themes, see the main Themes page here. How a button gets themed When you look at button 1 in SeaMonkey, you see an image or style that depends on your ...
...top loads a stylesheet from chrome://allcustom/skin/. The application's chrome registry converts this to the correct CSS file for the theme you are using. The XUL toolbarbutton tag has an ID all-custom-1. The CSS stylesheet uses the corresponding selector #all-custom-1 to provide the appropriate image: button-1.png File structure In the new file structure, there is a skin directory for all the themes. Each theme has its own directory there. In each theme's directory, there is an allcustom directory. This is useful when files from various components and extensions and all unpacked in the same place--it keeps each set of files separate. The allcustom directory contains the icon images and the CSS stylesheet. The file contents.rdf contains registration data used by SeaMonkey. Testing a theme To ...
Sunbird Theme Tutorial - Archive of obsolete content
and editing images Note: Some zip tools only work with files whose names have <tt>.zip</tt> at the end. You can use this kind of zip tool if you rename each file before and after using the tool. You also need knowledge of: Using your operating system to create files and directories Using the tools listed above CSS Graphic design Knowledge of XUL, XBL and JavaScript is useful for advanced themes. Making a theme A theme consists of: A unique identifier A file containing information about the theme A file that registers the theme with Sunbird Some files containing the theme itself Set up your theme in Sunbird's profile directory. For information on how to find the profile directory, see the Mozillazine article: Profile Folder Inside the profile directory, go to the <tt>extensions<...
... CSS and image files in any way you like. For testing purposes, go to the <tt>calendar</tt> directory that you have just pasted. Edit the file <tt>calendar.css</tt> there. Add this line at the end: label {color: red;} Save the file. Fixing bug 320823 If you are using the Sunbird 0.3a1 release, or a test build before 2005-12-21, then you must apply a fix for bug 320823 to allow Sunbird to use themes. Go to Sunbird's program directory, then to the <tt>defaults</tt> directory there. In the <tt>pref</tt> directory, edit the file <tt>sunbird.js</tt> and search for the <tt>pref("extensions</tt> entries. Add the line: pref("extensions.dss.enabled", false); Save the file. Using your theme To use your theme, restart Sunbird. From the menu bar, choose Tools - Themes... In the Themes window, chec...
...t waste time styling the old views. Work with a recent test build so that your theme will be compatible with the next release. Testing further changes When you make further changes to your theme, test them by restarting Sunbird. To detect errors, choose Tools - JavaScript Console... The JavaScript Console window displays CSS errors, not just JavaScript errors. Making an icon and preview The Themes window can display an icon and a preview graphic. You normally make these after you have designed the rest of your theme. Make an image file 32 by 32 pixels, and save it as <tt>icon.png</tt> in your theme directory. Make an image file about 200 by 100 pixels, and save it as <tt>preview.png</tt> in your theme directory. Adding other components Your theme only modifies the calendar component. Su...
... pack any component directories. Name the packed file with the <tt>.jar</tt> extension. For example, when I wrote this article I used this command in my theme directory: zip -9 testing-0.1.jar * chrome/testing.jar Make this jar file available to users. Installing a packaged theme Install your packaged theme in the normal way, by dragging the jar (or a link to it) and dropping it in Sunbird's Themes window. Select the newly installed theme and press the Use Theme button. Restart Sunbird. ...
Theme changes in Firefox 2 - Archive of obsolete content
If anyone with theming experience would like to write one, please do! Browser changes requiring theme updates There are a number of changed and deleted files in the browser that may require you to make changes to your theme. The table lists both the changed XUL file and the theme's corresponding CSS file that you might need to update. ...
...date wizard, has fewer styles in it due to the redesigned update wizard. mozapps/extensions/viewButtons.png New file; contains icons for each of the views that may be available in the add-ons manager. In the default theme, these look something like this: The top row contains dimmed versions of the icons below them. The first icon is for the extensions view. The second is for themes. The third is for locales, the fourth is for plugins, the fifth is for updates, and the sixth is for installs. mozapps/pref This entire directory is no longer used in Firefox 2 and should be removed. Changes in browser bookmarks/addBookmark.css The addBookmarks.css file should have the following lines added to the top: @namespace url("http://www.mozilla.org/keymaster/gat...
...se"] > menupopup This file styles addBookmark2.xul. bookmarks/bookmarksProperties.css This is a new file in Firefox 2, and should contain the same CSS code as you added to addBookmark.css. This file styles bookmarksProperties.xul. Note: This CSS may be moved out into a separate file that will be referenced by both files in the future. ...
...so forth. There are three severity levels for messages, info, warning and critical. ...
Chrome registration
Note: With Gecko 1.9.2 and older, Mozilla reads chrome/*.manifest files from applications. ...
...er, the matching locale and skin packages will also be exposed to content. n.b.: Because older versions of Firefox do not understand the contentaccessible flag, any extension designed to work with both Firefox 3 and older versions of Firefox will need to provide a fallback. For example: content packagename chrome/path/ content packagename chrome/path/ contentaccessible=yes os Extensions (or themes) may offer different features depending on the operating system on which Firefox is running. The value is compared to the value of OS_TARGET for the platform. os=WINNT os=Darwin See OS_TARGET for a more complete list of os names. The os name is case insensitive. osversion An extension or theme may need to operate differently depending on which version of an operating system is running. For ...
... that it installs correctly after updating it to use a plaintext manifest. Official references for Toolkit API Official References. Do not add to this list without contacting Benjamin Smedberg. Note that this page is included from the pages listed below. ...
...tacting Benjamin Smedberg. Note that this page is included from the pages listed below. ...
The Firefox codebase: CSS Guidelines
For new CSS, when possible try to privilege using the shared directory, instead of writing the same CSS for the 3 platform specific directories, especially for large blocks of CSS. ...
...he "Always" option Chrome area The automatic adjustments previously mentioned only apply to pages rendered in the content area. The chrome area of Firefox uses colors as authored, which is why using pre-defined variables, currentcolor or inheritance is useful to integrate with the system theme with little hassle. If not, as a last resort, using system colors also works for non-default Windows themes or Linux. In general, the following colors are used: -moz-Field: textbox or field background colors, also used as the background color of listboxes or trees. -moz-FieldText: textbox or field text colors, also used as the text color of listboxes or trees. -moz-Dialog: window or dialog background color. -moz-DialogText: window or dialog text color. GrayText: used on disabled items as text co...
...nd higher, so it should be privileged over the styling for macOS 10.9. Do this: @media (-moz-mac-yosemite-theme: 0) { #placesList { box-shadow: inset -2px 0 0 hsla(0,0%,100%,.2); } } Not this: #placesList { box-shadow: inset -2px 0 0 hsla(0,0%,100%,.2); } @media (-moz-mac-yosemite-theme) { #placesList { box-shadow: none; } } Theme support Firefox comes built-in with 3 themes: default, light and dark. The built-in light/dark themes are a bit special as they load the compacttheme.css stylesheet. In addition to this, Firefox supports a variety of WebExtension themes that can be installed from AMO. For testing purposes, here is an example of a WebExtension theme. Writing theme-friendly CSS Some CSS variables that are pre-adjusted for different platforms are also pre-...
...ght and dark. The built-in light/dark themes are a bit special as they load the compacttheme.css stylesheet. In addition to this, Firefox supports a variety of WebExtension themes that can be installed from AMO. For testing purposes, here is an example of a WebExtension theme. Writing theme-friendly CSS Some CSS variables that are pre-adjusted for different platforms are also pre-adjusted for themes, so it's again a good idea to use them for theme support. The text color of elements often contains valuable information from the theme colors, so currentcolor/inheritance is again a good idea for theme support. Never write CSS specially for the built-in light/dark theme in compacttheme.css unless that CSS isn't supposed to affect WebExtension themes. These selectors can be used to target dark...
Extension Theming Guidelines - Archive of obsolete content
This is a set of guidelines on how to control the look and feel of your extension while leaving it open for styling by custom themes. Skin Packages Just as extension code should exist in chrome content packages, all of the styling for an extension including CSS and images should exist in a chrome skin package. Custom themes may then register a replacement for your skin package allowing them to provide their own styles for all of your content. ...
...l of the styling for an extension including CSS and images should exist in a chrome skin package. Custom themes may then register a replacement for your skin package allowing them to provide their own styles for all of your content. Branding Certain items of your extensions style, in particular logos and icons can be kept in the chrome content package such that they are not replaceable by custom themes Stylesheets guidelines Include Stylesheets For every new window that your extension adds and for every window that your extension overlays content into be sure to add a stylesheet from your chrome skin package. While it may be tempting to use the same stylesheet in multiple places try to avoid this so that themes can correctly target the right windows. CSS Selectors When writing stylesheet rule...
...g custom widgets. In this case you should add a stylesheet to your chrome content package and apply the bindings there. This is one of the rare cases where it is sensible to put the stylesheet into the content area. Style attributes Style attributes should only be used in rare circumstances. They are impossible to override from styleheets so anything you put in there cannot be adjusted by custom themes. ...
Install Manifests - Archive of obsolete content
<em:maxVersion>3.0.*</em:maxVersion> </Description> </em:targetApplication> Gecko 1.9 based applications allow you to use the special targetApplication id toolkit@mozilla.org to say that the add-on is compatible with any toolkit app with a toolkit version matching the minVersion and maxVersion. type An integer value representing the type of add-on. 2 Extensions 4 Themes 8 Locale 32 Multiple Item Package 64 Spell check dictionary 128 Telemetry Experiment 256 WebExtension Experiment Examples <em:type>2</em:type> This property was added for Firefox 1.5, and is only required for add-on types other than Extensions and Themes. Firefox 2 and previous supported a value of 16 to represent plug-ins. In ...
...nsions list, the Options button is enabled and will show this. <em:optionsURL>chrome://myext/content/options.xul</em:optionsURL> Gecko 7 note In Firefox 7 you can also simply include your options XUL as a file named options.xul, in the base directory of the add-on. skinnable A true or false value property that tells the application whether the (complete) theme can be skinned by lightweight themes/personas: Examples <em:skinnable>true</em:skinnable> strictCompatibility A Boolean value indicating if the add-on should be enabled when the version of the application is greater than its max version. By default, the value of this property is false meaning that the compatibility checking will not be performed against the max version. <em:strictCompatibility>true</em:strictCompatibility> Us...
...ny value matches the application's build parameters, it will be installed; if not, the user will get an appropriate error message. Examples <em:targetPlatform>WINNT_x86-msvc</em:targetPlatform> <em:targetPlatform>Linux</em:targetPlatform> <em:targetPlatform>Darwin_ppc-gcc3</em:targetPlatform> <em:targetPlatform>SunOS_sparc-sunc</em:targetPlatform> Usually, you would use only the OS part for themes or for extensions that are not fully cross-platform. For extensions including binary (compiled) components, you should never use the OS alone, but include the ABI (s) that you compiled the components with. If you want to include multiple versions of the components, you should also use Platform-specific Subdirectories. Notes In the same manifest file, you could even mix values with and without...
Source code directories overview - Archive of obsolete content
atabases, the Internet or any other source using a URL-like syntax. security contains the security modules including NSS and PSM. storage contains an implementation of sqLite3. suite will contain files specific to the Mozilla suite. sun-java contains C code so Mozilla can communicate with the Sun JVM (Java Virtual Machine). It does not include the code for the virtual machine itself, though. themes contains the default themes for Mozilla, modern and classic. toolkit contains the code for the toolkit used for Firefox, Thunderbird and other standalone applications. This will be covered below. tools contains C code for the Linux-only Leaky tool. Leaky can help detect memory leaks and XPCOM reference counting problems. uriloader contains C interfaces and code for invoking the correct viewer ...
...e to build the firefox executable. base contains the XUL and branding code. components contains Firefox specific components like history, bookmarks, preferences, migration, sidebar.. configcontains build scripts for Firefox. extensions contains code for making certain extensions work. installer contains the Firefox installer code. locales contains the files that are translated for Firefox. themes contains Firefox themes. Toolkit Toolkit is used by the standalone products. components contains the alerts, autocomplete, command line interface, console, cookies, download manager, filepicker, history, password manager, typeaheadfind, view source, etc. content contains XUL specific to the toolkit. library contains libXUL work. localescontains files that are translated. mozappscontains...
...ains the alerts, autocomplete, command line interface, console, cookies, download manager, filepicker, history, password manager, typeaheadfind, view source, etc. content contains XUL specific to the toolkit. library contains libXUL work. localescontains files that are translated. mozappscontains shared application stuff. obsoletecontains obsolete stuff. profilecontains the profile manager themescontains themes as they relate to toolkit things. xreis the XUL runtime engine. This directory contains the code for initializing the toolkit. Original Document Information Author(s): Daniel Howard Other Contributors: Heikki Toivonen (11-Nov-1999), HervA(C) Renault (for the French translation) (16-Nov-1999) Last Updated Date: Michael Kaply 2-June-2005 Copyright Information: Portions o...
Index - Archive of obsolete content
Archive › Mozilla › XUL › Index
1 label.value XUL Attributes, XUL Reference No summary! 172 last-tab XUL Attributes, XUL Reference No summary! 173 lastSelected XUL Attributes, XUL Reference No summary! 174 lastpage XUL Attributes, XUL Reference No summary! 175 left XUL Attributes, XUL Reference No summary! 176 lightweightthemes Lightweight themes, XUL Attributes, XUL Reference No summary! 177 lightweightthemesfooter No summary! 178 linkedpanel XUL Attributes, XUL Reference No summary! 179 listcell.type XUL Attributes, XUL Reference No summary! 180 listitem.type XUL Attributes, XUL Reference No summary! 181 matchcase...
...ing capabilities to your Firefox extension. 969 Using the Editor from XUL XUL The editor in XUL lives on top of a XUL <iframe> element; it observes document loading in this <iframe>, and, when document loading is complete, it instantiates an editor on the loaded document. The <iframe> contents are then editable. 970 Using the standard theme Add-ons, Extensions, Themes No summary! 971 Widget Cheatsheet See the Periodic Table of XUL for more examples. 972 Window icons Add-ons, Extensions, Toolkit API, XPInstall, XUL Starting with Firefox 1.5, Thunderbird 1.5, and XULRunner 1.8, you can specify an icon for a XUL window by putting files named mywindow.ico (for Windows) and mywindow.xpm or mywindow16.xpm (Linux), whe...
... Not in Firefox 1197 toolbaritem NeedsHelp, XUL Elements, XUL Reference Firefox only 1198 toolbarpalette NeedsHelp, XUL Elements, XUL Reference Firefox only 1199 toolbarseparator NeedsHelp, XUL Elements, XUL Reference Creates a separator between groups of toolbar items. It is functionally equivalent to a normal separator but some themes may apply a different appearance. 1200 toolbarset NeedsExample, XUL Elements, XUL Reference Firefox only 1201 toolbarspacer XUL Elements, XUL Reference Firefox only 1202 toolbarspring XUL Elements, XUL Reference Firefox only 1203 toolbox Toolbars, XUL Elements, XUL Reference A container for toolbars. It is a type ...
Manifest Files - Archive of obsolete content
load them by typing in a chrome URL of the form chrome://tests/content/<filename>. Of course, you will need to restart the browser for the changes to take effect. If the file doesn't load, make sure that the file path is correct. The basic syntax of the lines in the manifest file for content packages is: 'content <packagename> <filepath>' The first field 'content' indicates a content package. For themes, 'skin' is used while 'locale' is used for locales. The packagename in the example above is 'tests', which means that the first field in the chrome URL is 'tests' as in chrome://tests/content/sample.xul. If the package name was 'browser', the chrome URL would be chrome://browser/content/. The final field is the path where the files are located. This can be either a local file path using a file UR...
...ilt-in versions instead. Otherwise, if an extension attempted to call the modified versions, it would likely not work properly, or worse, create a security hole. This flag was added to prevent this problem and should always be used for newer extensions, but is left out for older extensions that might not be compatible with the change. For more information about this feature, see XPCNativeWrapper. Themes and Locales The themes and locales, the syntax is similar as for content packages, but you also need to specify the content package you are providing a theme or locale for. For example: skin browser classic/1.0 jar:classic.jar!/skin/classic/browser/ locale browser en-US jar:en-US.jar!/locale/browser/ For these, the extra field has been added to indicate that the skin and locale applies to the br...
...n a special way; the version number is just part of the theme name. The locale is 'en-US'. The chrome URLs that these would map to would be chrome://browser/skin and chrome://browser/locale. If you were creating your own theme or locale for the browser, all you need to do is create a manifest file with one of these two lines in it, modified to suit your theme or locale. For more information about Themes, see Themes. For more information about Locales, see Localization. Our example find files dialog Let's create a manifest file for the find files dialog we'll be creating. You can combine all of the three types into a single file if you wish. This may be done when creating an extension such that all of the parts are in one file. We will do this for the find files dialog. Create a file findfile.
window - Archive of obsolete content
hy when opened as a dialog. Note: Starting in Gecko 1.9.2, you can detect when a window is activated or deactivated by watching for the "activate" and "deactivate" events. See Window activation events. More information is available in the XUL tutorial. ...
... dialog. Note: Starting in Gecko 1.9.2, you can detect when a window is activated or deactivated by watching for the "activate" and "deactivate" events. See Window activation events. More information is available in the XUL tutorial. ...
... identify the element with. You can use this as a parameter to getElementById() and other DOM functions and to reference the element in style sheets. inactivetitlebarcolor Type: color string Specify background color of the window's titlebar when it is inactive (background). Moreover this hides separator between titlebar and window contents. This affects only on Mac OS X. lightweightthemes Type: boolean true if the window supports lightweight themes, otherwise false. lightweightthemesfooter Type: id Specifies the ID of an element to which a lightweight theme's footer image will be applied. screenX Type: integer The horizontal position at which the window appears on the screen. screenY Type: integer The vertical position at which the window appears on the scree...
Common Firefox theme issues and solutions - Archive of obsolete content
{ .inspector-breadcrumbs-button[checked] > .inspector-breadcrumbs-id { .inspector-breadcrumbs-id, .inspector-breadcrumbs-classes { Style inspector breadcrumb button backgrounds are not consistent between pre-FF14 and FF14+ The use of the styling rule fill in -moz-border-image is incompatible with versions of Firefox older than Firefox14, however, its use is needed for Firefox 14 and later. Themes that use -moz-border-image and support both Firefox 14 and newer as well as older versions of Firefox need to use both the older and newer methodologies like the following example. In most themes this issue specifically affects the breadcrumbs toolbar of the style inspector. .inspector-breadcrumbs-button { -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-middle.png") 2 1...
...ox-shadow Firefox no longer supports -moz-box-shadow style property. Use CSS standard box-shadow property instead (supported by Firefox since Firefox 4). -moz-transition Firefox no longer supports -moz-transition style property. Use CSS standard transition property instead (supported by Firefox since Firefox 4). Resources AMO Editors Theme Testing Guidelines When developing and testing your themes, please refer to the theme testing guidelines AMO editors use to review themes. This guide will help you thoroughly test your theme to find and fix issues before you push updates to AMO. This is document is a work in progress so feedback and/or suggestions is appreciated. MDN CSS Reference Mozilla's Developer Network maintains a great CSS reference. AMO Themes Forum We'd like to encourage you...
...his guide will help you thoroughly test your theme to find and fix issues before you push updates to AMO. This is document is a work in progress so feedback and/or suggestions is appreciated. MDN CSS Reference Mozilla's Developer Network maintains a great CSS reference. AMO Themes Forum We'd like to encourage you to participate in the AMO (addons.mozilla.org) forums theme forum. MozillaZine Themes Forum MozillaZine is NOT an official Mozilla website, but it does have the largest community of Firefox theme developers and is a great resource. Their theme development forum is here. MozillaZine Firefox Nightly Theme Changes Thread MozillaZine's Firefox nightly theme changes thread is a great resource for keeping up to date with the latest changes to the Firefox UI and contains links to the ...
:-moz-system-metric() - Archive of obsolete content
Formal syntax Syntax not found in DB! ...
... Formal syntax Syntax not found in DB! ...
... Formal syntax Syntax not found in DB! ...
Toolkit API
interfaces (APIs) built on top of Gecko which provide advanced services to XUL applications. ...
... Extension and theme management Application update service Safe mode Printing Official references Structure of an Installable Bundle: describes the common structure of installable bundles, including extensions, themes, and XULRunner applications Extension Packaging: specific information about how to package extensions Theme Packaging: specific information about how to package themes Multiple-item Extension Packaging: specific information about multiple-item extension XPIs XUL Application Packaging: specific information about how to package XULRunner applications Chrome Registration Printing in XUL Apps See also The following developer pages contain examples and discussions of particular topics: XUL XUL overlays Developing extensions XULRunner Develo...
...Multiple-item Extension Packaging: specific information about multiple-item extension XPIs XUL Application Packaging: specific information about how to package XULRunner applications Chrome Registration Printing in XUL Apps See also The following developer pages contain examples and discussions of particular topics: XUL XUL overlays Developing extensions XULRunner Developing themes DOM RDF Storage ...
Theme Packaging
The documentation here is out of date. This document describes how to package themes for Thunderbird. Pre-requisites Making a theme for Thunderbird requires knowledge of Cascading Stylesheets (CSS), probably XBL, and some graphic design and aesthetic skill (...or maybe not). This document describes only how Themes are packaged in order to be shown in Firefox's Themes window. Theme File Layout Thunderbird themes are packaged in an XPI file with the following structure: theme.xpi: install.rdf preview.png icon.png chrome/ browser/files communicator/files global/files mozapps/files ... You must have a top-level chrome.manifest file which registers the chrome for the theme (as before) and also an install.rdf manifest that specifies metada...
...d2a-b7eb-24ecf4f6b63a} Pale Moon {8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4} Official References for Toolkit API Official References. Do not add to this list without contacting Benjamin Smedberg. Note that this page is included from the pages listed below. ...
...tacting Benjamin Smedberg. Note that this page is included from the pages listed below. ...
Developing add-ons - Archive of obsolete content
This page will help guide you to the information you need in order to create add-ons for Firefox, Thunderbird, or other software based on the Mozilla platform, as well as how to distribute your add-ons. Add-ons topics Submitting an add-on to AMO Provides helpful information for add-on developers to help them properly package and deliver their add-ons. This includes information about addons.mozilla.org, Mozilla's add-on distribution web site. ...
...nything from a toolbar button to a completely new feature. Plugins Information about how to create plugins, which are binary components that let Mozilla based software display content they can't handle natively. Jetpack Browser extension development for everyone. Jetpack developers only need to know the tools of the modern web: HTML, CSS, and JavaScript. Themes Themes let users customize the appearance of the user interface presented by Mozilla-based applications. Search engine plugins Firefox supports search engine plugins, which enable the search box to support different search engines. addons.mozilla.org (AMO) API Developers' Guide The AMO Developers' Guide describes how to use the AMO API to fetch information about add-ons f...
Chapter 1: Introduction to Extensions - Archive of obsolete content
excellent extensions come from all over the world, and can be quickly localized by anyone interested. This lowers the threshold both to using and to developing extensions; that fact, combined with Firefox's rapidly growing popularity, has created a positive feedback loop, with the number of extension users and extension developers growing explosively--there are now more than 7000 extensions and themes published at the Firefox Add-ons site (https://addons.mozilla.org). What you can do with extensions Let's look at what features extensions can add, and some actual examples of extensions. Single feature extensions FIXME: Update this. These are relatively simple extensions that add a single feature. Text Link Makes it so that double-clicking on an unlinked URL follows that URL. Undo Clos...
...s build an extension Table 1 shows the various customization options available to a user in Firefox. Users have flexible customization options, using CSS in user style sheets and JavaScript/DOM in user scripts (these depend on Stylish, GreaseMonkey, and userChrome.js). In addition to CSS and JavaScript, extensions can take advantage of XUL and XPCOM technologies for more sophisticated features. Themes, which alter Firefox's appearance, are a kind of add-on. In order to create an extension, you need an idea and just a little programming ability. The following chapters explain in detail the extension-writing techniques of some of Japan's leading extension authors. We encourage you to try your hand at it as well. 1 One of the authors of this special edition, Piro, is world-famous as one of the...
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
t can be translated. To make an extension's GUI support multiple languages, you can include multiple locale packages, one for each language. The skin package This is used to include source files used as visual elements in the GUI, including style sheets and images. Most extensions include only one skin package, but you can include multiple skin packages to allow the GUI to change with different themes. Chrome URL Use a file called a "chrome manifest" to register chrome packages with Firefox and start using them. To register a package, you use a special URI scheme called a "Chrome URL" to represent the path to the file. Chrome URLs are structured as: chrome://%package name%/%package type%/%relative path to source file% For example, the Chrome URL for the Firefox browser window is as follows...
...on that will open the clock window (Figure 9). FIXME: Figure 9: Toolbar after Phase 4 Directory structure The style sheet and graphics files will be located inside the chrome's skin package. The extension will actually work fine even if these are located in the content package, but putting them in the skin package has the benefit of making it possible to design GUIs that match specific Firefox themes, and allowing theme developers to create special visual effects for extensions. First, add the skin directory and its subordinate files to your helloworld directory as shown in Figure 10. The purpose of each of these files is explained in Table 4. Download the files icon.png and icon-small.png from the resources website and place them appropriately. FIXME: Figure 10: Directory structure with sk...
Getting Started with Firefox Extensions - Archive of obsolete content
that adds something new to one or more Mozilla applications. This tutorial focuses on extensions for Firefox, but the same (or very similar) principles apply to creating extensions for other applications such as Thunderbird, Seamonkey, and Flock. It is also worth noting that there are differences between the definition of extension and add-on. All extensions are add-ons, but add-ons can also be themes, plugins, or language packs. This tutorial is about extension development, but themes and language packs are developed in a very similar way. Plugins are entirely different, and they will not be covered here. You can read more about plugins and their development in the Plugins page. Firefox provides a very rich and flexible architecture that allows extension developers to add advanced features, ...
...g an unverified add-on. Click "install". After the extension is installed, you'll be asked to restart Firefox. Installing, uninstalling, enabling and disabling add-ons require a restart to complete, with the exception of NPAPI plugins, Add-ons SDK extensions and bootstrapped extensions. This is an important point to keep in mind if you're building an extension that manipulates other extensions or themes. After installing, look at the main Firefox window and see if you notice anything different. Did you see it? There's a new menu on the main menu, labeled "Hello World!". If you open the menu and then the menu item below, you'll see a nice alert message (for some definitions of 'nice'). Click on the OK button to close it. That's all the extension does. Now let's take a closer look at it. ...
Index of archived content - Archive of obsolete content
n Samples Extension Theming Guidelines Extension Versioning, Update and Compatibility Extensions support in SeaMonkey 2 Firefox addons developer guide Hiding browser chrome Hotfix Extension How to convert an overlay extension to restartless Inline options Install Manifests Installing Extensions and Themes From Web Pages Interaction between privileged and non-privileged pages Jetpack Processes Legacy Add-ons Legacy extensions for Firefox for Android API Accounts.jsm BrowserApp addTab closeTab ...
...res Encryption and Decryption Introduction to Public-Key Cryptography Introduction to SSL NSPR Release Engineering Guide SSL and TLS Solaris 10 Build Prerequisites Sunbird Theme Tutorial Table Reflow Internals Tamarin Tracing Build Documentation The Basics of Web Services Themes Building a Theme Common Firefox theme issues and solutions Creating a Skin for Firefox UUID contents.rdf install.rdf Making sure your theme works with RTL locales Theme changes in Firefox 2 Theme changes in Firefox 3 Theme changes in Fi...
Getting Started - Archive of obsolete content
/help/ skin navigator My_Theme jar:chrome/My_Theme.jar!/navigator/ skin editor My_Theme jar:chrome/My_Theme.jar!/editor/ Save the file and exit the text editor. install.rdf Make a copy of install.rdf and place it in the My_Theme directory, then open it up in your text editor. This file is a small XML database that describes the skin. <Description about="urn:mozilla:install-manifest"> <em:id>{Themes_UUID}</em:id> <em:version>Themes_Version</em:version> The first section requires that you establish a UUID for your theme and that you give your theme a version number. Once you've done this, insert the information as above, and scroll down. You will also have to update the minimum and maximum compatible versions for the target application (SeaMonkey) in the following section: <em:targetAppl...
...ename it to myskin.jar Triggering the install from the web To install the theme's JAR file directly from the web, you need to run some JavaScript. <a href='javascript:InstallTrigger.installChrome(InstallTrigger.SKIN, "myskin.jar", "My Skin Theme")'>install My Skin</a> If you have JAR files on your hard drive and would like to install them, then download/use this form. You can also just open the themes window in Mozilla and drag and drop your .jar file onto it. Now to change your folder(s) back into a .jar Well it's easy! What you do is put your folder(s) into a .zip file and then when it's compressed make the .zip into a .jar ...
Creating a Skin for Firefox/Getting Started - Archive of obsolete content
/> <RDF:li resource="urn:mozilla:skin:My_Theme:messenger"/> <RDF:li resource="urn:mozilla:skin:My_Theme:navigator"/> Save the file and exit the text editor. install.rdf Make a copy of install.rdf and place it in the My_Theme directory, then open it up in your text editor. This file is a small XML database that describes the skin. <Description about="urn:mozilla:install-manifest"> <em:id>{Themes_UUID}</em:id> <em:version>Themes_Version</em:version> The first section requires that you establish a UUID for your theme and that you give your theme a version number. Once you've done this, insert the information as above, and scroll down. You will also have to update the minimum and maximum compatible versions for the target application (Firefox) in the following section: <em:targetApp...
...t to My_Theme.jar Triggering the install from the web To install the theme's JAR file directly from the web, you need to run some JavaScript. <a href='javascript:InstallTrigger.installChrome(InstallTrigger.SKIN, "myskin.jar", "My Skin Theme")'>install My Skin</a> If you have JAR files on your hard drive and would like to install them, then download/use this form. You can also just open the themes window in Mozilla and drag and drop your .jar file onto it. Now to change your folder(s) back into a .jar Well it's easy! What you do is put your folder(s) into a .zip file and then when it's compressed make the .zip into a .jar ...
Printing from a XUL App - Archive of obsolete content
This document will talk about PrintUtils, and the ways that XUL applications can trigger print-related behaviors. ...
...t will talk about PrintUtils, and the ways that XUL applications can trigger print-related behaviors. ...
XUL accessibility guidelines - Archive of obsolete content
on is essential, documents should also be structured so that the user can invoke display preferences that may be necessary for accessibility. Presentation should also be flexible to window and font resizing. Cooperative applications adapt well to the user's environment. System defaults Maintain system defaults. Many users set their computers to use larger than normal fonts and/or specific color themes. By default, XUL menus, labels, and other widgets get their font, size, and color settings from the user settings specified in the operating system. Respect these defaults unless you have a specific and unavoidable reason to change them. If you must change them, use CSS to size elements relative to the default sizes (for example, use % or em rather than specific point or pixel sizes). Color Col...
...ary then warn the user before it is displayed. Testing media Ensure that media alternatives are available in an accessible format. Other issues Custom widgets Avoid re-creating functionality that already exists. Ensure that custom components are built with accessibility in mind. Use CSS system colors to ensure that new widgets interact well with other widgets and with user-defined colors and themes. Learn More Accessible Custom Widgets Accessible DHTML Building accessible custom components in XUL XUL accessibility checklist Use the following checklist to quickly verify the accessibility of a new XUL application, or as a starting point for fixing accessibility problems in an existing one. Keyboard access Checkpoint Pass Fail Tab ...
Mozilla release FAQ - Archive of obsolete content
and at the time of Mozilla's initial release, that code was removed from the tree. The 'Classic' branch of the current CVS tree is as close to the 4.x source as the public will ever see, although that branch has been abandoned in the move to the modern codebase. How do I tweak the interface (replace the logo, etc)? The XPToolkit docs might help in writing the needed XUL. You can find replacement themes in Preferences, under Appearance->Themes, using the 'get new themes' link there. Where can I get patches? There is not currently a central repository of patches. However, via CVS, you can keep up with the latest source from Mozilla. I made a patch! How do I submit it? The current best way to do this is to post it in Bugzilla, either attached to the bug it fixes or a new entry describing what it c...
...roject is largely about coding. You could tackle: Porting Mozilla to the OS you use Work on moving #ifdef PLATFORM to #ifdef FEATURE/BUG If you're on Unix, port Mozilla to the toolkit you prefer Modularize/Clean up APIs Fix Bugs Work on the expermental features (Mail/News, Aurora, NGLayout) Add new things: Make OpenDoc and OLE NGLayout controls Write new skins (see themes.org) Add preference interfaces for the hidden features There's plenty to do.. What subprojects are there for documentation people? Mozilla currently has far more developers than documenters. As a result, the project is in dire need of documentation work. Maintenance of old documentation would be helpful, new documentation is also welcome. Post to netscape.public.mozilla.documentatio...
Create Your Own Firefox Background Theme - Archive of obsolete content
Finished Your Design? You can submit it right now! Creating a Theme Header Image The header image is displayed as the background of the top of the browser window, nestling in behind the toolbars, address bar, search bar and the tab strip. It will be anchored to the top-right corner of the browser window. View a sample Theme Header here. ...
... text and tab colors -- you can choose the tab ("background") color and foreground text color that work best with your header image. Preview your theme -- you're ready to preview your theme! Simply mouse over the image above the Submit Theme button, and see how it looks instantly. Submit your theme -- if everything looks right, click the Submit Theme button, and you're done! You can see all the themes you've authored on your profile page. Tip: to ensure that your theme is approved for the gallery, be sure it complies with the content guidelines and terms of service! Submit Your Theme Now More Tutorials Mozilla Themes Focal Point on Sizing - A tutorial on theming with a focus on sizing, by VanillaOrchids. ...
install.rdf - Archive of obsolete content
Copy the following text and paste it into a text file, then save that file as "install.rdf": <?xml version="1.0"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <em:id>{Themes_UUID}</em:id> <em:version>Themes_Version</em:version> <!-- Target Application this extension can install into, with minimum and maximum supported versions. --> <em:targetApplication> <Description> <!-- Firefox's UUID --> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minVersion>Min_FF_Version</em:minVersion> <em:maxVersion>Max_FF_Version</em:maxVersion> </Description> </em:targetApplication> <!-- Front End MetaData --> <!-- My_Theme --> ...
...9e97384}</em:id> <em:minVersion>Min_FF_Version</em:minVersion> <em:maxVersion>Max_FF_Version</em:maxVersion> </Description> </em:targetApplication> <!-- Front End MetaData --> <!-- My_Theme --> <em:name>My_Theme</em:name> <em:description>My_Theme</em:description> <em:creator>Your_Name</em:creator> <em:contributor>Contributors_Names</em:contributor> <em:homepageURL>Themes_HomePage</em:homepageURL> <em:updateURL> Url_of_Update_Location </em:updateURL> <em:aboutURL> Url_of_About_Page </em:aboutURL> <!-- Front End Integration Hooks (used by Theme Manager)--> <em:internalName>My_Theme</em:internalName> </Description> </RDF> ...
:-moz-system-metric(windows-default-theme) - Archive of obsolete content
The :-moz-system-metric(windows-default-theme) CSS pseudo-class matches an element if the user is currently using one of the following themes in Windows: Luna, Royale, Zune, or Aero (i.e., Vista Basic, Vista Standard, or Aero Glass). This will exclude Windows Classic themes as well as third-party themes. This selector is intended for use mainly by theme developers. Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Example HTML Content <p id="defaultThemes"> This paragraph should have a green background with Luna/Royale/Zune/Aero Windows themes and red with other themes. </p> <p id="nonDefaultThemes"> This paragraph should have a green background...
...e to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Example HTML Content <p id="defaultThemes"> This paragraph should have a green background with Luna/Royale/Zune/Aero Windows themes and red with other themes. </p> <p id="nonDefaultThemes"> This paragraph should have a green background with Windows Classic or third-party themes and red with other themes. </p> <p id="notSupported">Theme detection is not supported.</p> CSS Content #defaultThemes, #nonDefaultThemes { background-color: #FFA0A0; } #defaultThemes:-moz-system-metric(windows-default-theme) { background-color: #A0FFA0; } #nonDefaultThemes:not(-moz-system-metric(windows-default-theme)) { background-color: #A0FFA0; } #notSupported:-moz-system-metric(wi...
What are browser developer tools? - Learn web development
tab. This will give you a window like the following: To see what happens, try entering the following snippets of code into the console one by one (and then pressing Enter): alert('hello!'); document.querySelector('html').style.backgroundColor = 'purple'; const myWordmark = document.createElement('img'); myWordmark.setAttribute('src','https://blog.mozilla.org/press/wp-content/themes/OneMozilla/img/mozilla-wordmark.png'); document.querySelector('h1').appendChild(myWordmark); Now try entering the following incorrect versions of the code and see what you get. alert('hello!); document.cheeseSelector('html').style.backgroundColor = 'purple'; const myWordmark = document.createElement('img'); myBanana.setAttribute('src','https://blog.mozilla.org/press/wp-conte...
...eMozilla/img/mozilla-wordmark.png'); document.querySelector('h1').appendChild(myWordmark); Now try entering the following incorrect versions of the code and see what you get. alert('hello!); document.cheeseSelector('html').style.backgroundColor = 'purple'; const myWordmark = document.createElement('img'); myBanana.setAttribute('src','https://blog.mozilla.org/press/wp-content/themes/OneMozilla/img/mozilla-wordmark.png'); document.querySelector('h1').appendChild(myWordmark); You'll start to see the kind of errors that the browser returns. Often these errors are fairly cryptic, but it should be pretty simple to figure these problems out! Find out more Find more out about the JavaScript console in different browsers: Firefox Web Console IE JavaScript console Chrome J...
Information for users
o compatibility with assistive technologies such as screen readers, screen magnifiers, voice input software and on screen keyboards. Planning Ahead for Accessibility This document is intended to help testers and designers understand and plan what still needs to be added to our UI for full usable accessibility. ...
...reen keyboards. Planning Ahead for Accessibility This document is intended to help testers and designers understand and plan what still needs to be added to our UI for full usable accessibility. Please give us feedback on the discussion list! Firefox Accessibility skins and themes At the excellent Access Firefox website, you will find many valuable resources, including a list of Firefox themes that have been specially designed for those with low vision: themes with high color constrast themes with big icons themes with extra large and bright icons themes with extra large and extra bold text Join the Mozilla Accessibility Community Live Chat Both end users and developers are invited for discussion on the live IRC channel at irc.mozilla.org/#accessibility. Since ...
source-editor.jsm
SourceEditor.MODES.CSS "css" Cascading Style Sheet. SourceEditor.MODES.HTML "html" HTML document. SourceEditor.MODES.JAVASCRIPT "js" JavaScript source code. SourceEditor.MODES.TEXT "text" UTF-8 text document. SourceEditor.MODES.XML "xml" XML document. Theme constants These constants are used to identify the available themes that can be used by the syntax highlighter. Only one is provided by default at this time. Constant Value Description SourceEditor.THEMES.MOZILLA "mozilla" The default Mozilla syntax highlighter theme. Configuration defaults constants These constants represent the default values for each of the available configuration options. See The editor configuration obj...
... Constant Value Description SourceEditor.EVENTS.BLUR "Blur" Fired when the editor loses focus. SourceEditor.EVENTS.BREAKPOINT_CHANGE "BreakpointChange" Fired when a new breakpoint is adde...
Index
Mozilla › Tech › XPCOM › Index
Add-ons can (and should) be identified with IDs of the form extensionname@organization.tld since Firefox 1.5. 9 Generic factory XPCOM Most XPCOM factories can be very simple. Rick Potts wrote a templated-based generic factory (nsFactory<t>) that simplifies the factory creation process that just requires writing a CreateInstance() metho...
...697 isNonBlocking No summary! 698 read No summary! 699 readSegments No summary! 700 nsIInputStreamCallback Interfaces, Interfaces:Scriptable, Streams, XPCOM, XPCOM Interface Reference Called to indicate that the stream is either readable or closed. 701 nsIInstallLocation Add-ons, Extensions, Interfaces, Themes, XPCOM, XPCOM API Reference, XPCOM Interface Reference You can get the install location of a particular add-on using nsIExtensionManager interface: 702 nsIInterfaceRequestor Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference This is similar to nsISupports.QueryInterface(). The main difference is that interfaces returned are not requ...
Observer Notifications
ID of the folder. The subject is null otherwise. bookmarks-restore-failed html-initial Sent when bookmarks could not be successfully restored from HTML on intial import. If bookmarks were to have been restored into a specific folder, observers will be passed an nsISupportsPRInt64 through their subject parameters indicating the ID of the folder. The subject is null otherwise. Themes These topics indicate when actions related to themes occur. Topic Data Description lightweight-theme-preview-requested json Sent when the user requests to preview a lightweight theme, but before existing windows are styled with the new theme. lightweight-theme-change-requested json Sent to indicate that the user has chosen a new theme in the add-ons ...
...ore the change takes effect. lightweight-theme-changed - Sent after the current theme is changed. lightweight-theme-styling-update json Sent when the current theme being used is changed; this is sent even when the user is previewing a theme, not just when the theme is actually selected. lightweight-theme-list-changed - The list of available lightweight themes has changed. Developer tools These topics let you know about things that have happened related to Firefox's built-in developer tools. Topic Data Description highlighter-ready - Sent when the highlighter component is initialized. Note: This is used by the Inspector to detect when it should begin its initialization process. inspector-clo...
DevTools API - Firefox Developer Tools
access tool instances. An instance of a tool is called a ToolPanel. The ToolPanel is built only when the tool is selected (not when the toolbox is opened). There is no way to "close/destroy" a ToolPanel. The only way to close a toolPanel is to close its containing toolbox. All these objects implement the EventEmitter interface. API gDevTools The gDevTools API can be used to register new tools, themes and handle toolboxes for different tabs and windows. To use the gDevTools API from an add-on, it can be imported with following snippet const { gDevTools } = require("resource:///modules/devtools/gDevTools.jsm"); Methods registerTool(toolDefinition) Registers a new tool and adds a tab to each existing toolbox. Parameters: toolDefinition {ToolDefinition} - An object that contains infor...
...inition objects for enabled tools sorted by the order they appear in the toolbox. getThemeDefinition(themeId) Fetch the ThemeDefinition object for the theme with the given id. Parameters: themeId {String} - The ID of the theme. Return value: A ThemeDefinition object if the theme exists, null otherwise. getThemeDefinitionMap() Returns a toolId -> ThemeDefinition map for available themes. getThemeDefinitionArray() Returns an Array of ThemeDefinition objects for avialble themes. Events Following events are emitted by the gDevTools object via the EventEmitter interface. tool-registered(toolId) A new tool has been registered. tool-unregistered(tool) A tool has been unregistered. The parameter is a ToolDefinition object. theme-registered(themeId) A new th...
Extension Etiquette - Archive of obsolete content
e a special feature that needs to be included -- for example, a custom updater. Theming If you have XUL buttons in your extension that do functions similar to ones that already exist in a browser -- for example, a feed reader that reloads and stops -- use icons from the browser's theme. The icons makes the extension lighter, while providing more consistency, especially for users using different themes. Extension icons Unique icons are usually worth their download weight. They allow for easy identification among other extensions in the Extensions manager. Coding practices Namespace conflicts There are many namespaces which extensions often must share with other consumers, be they other add-ons, web code, or the browser itself. These often include areas such as: Object prototypes, such a...
The Essentials of an Extension - Archive of obsolete content
3 sections: content, locale and skin. The content is the most important section, holding user interface (XUL) and script (JS) files. The skin section has the files that define most of the look and feel of the UI (using CSS and images, just like web pages). Finally, the locale section holds all text used in the extension, in DTD and properties files. This division allows other developers to create themes that replace skins, and translators to create localizations in different languages, all of this without having to change your extension or your code. This gives Firefox extensions a great deal of flexibility. Chrome files are accessed through the chrome protocol. This is what a chrome URI looks like: chrome://packagename/section/path/to/file So, for instance, if I want to access the file b...
FAQ - Archive of obsolete content
window telling you that it's an old skin, you're going to have to look over the code to see what changed. Developers try to keep changes like this to a minimum, but sometimes it just can't be helped. What is an Access key? An access key is a keyboard shortcut to access something. In the case of Skins the access key that you are defining is accessible by going to Edit->Preferences, Appearance->Themes, and then pressing a letter. C will select Classic and M will select Modern. ...
Getting Started - Archive of obsolete content
hrome:displayName="My Skin" chrome:accessKey="M" chrome:author="Me" chrome:description="This is my custom skin for mozilla" chrome:name="mySkin/1.0" chrome:image="preview.png"> The blue areas are explained below. The first line should match the line that you modified in the previous section. The Display Name. That is what the user sees in the Preference Panels list of themes. The access key is what key you can press to activate the skin in the preferences. Replace the author section with your name. The description shows up below the preview image. Place your theme name and version number on this line Point to your preview.png/preview.jpg/preview.gif here The packages section lists which components of the Browser suit that you are modifying. If we also had skins...
Creating a Skin for Mozilla - Archive of obsolete content
Original Location: http://www.eightlines.com/neil/mozskin ...
Mozilla Application Framework in Detail - Archive of obsolete content
Unlike many other application frameworks, you are not limited to the widget set we provide, nor limited to the "look and feel" of the native OS. You can create applications using our framework that either have a native look and feel for each OS, or one which is identical on Macs, PC's or Unix operating systems. You may also further enhance the user interface by allowing 3rd parties to develop "themes" for your application. Themes are simply collections of images and CSS which can augment or replace your current UI elements. XUL provides an excellent answer for organizations with heterogeneous computing environments. Customized XUL applications with significant business logic can be written once, and used on the range of platforms that exist within the organization. In addition, if the ...
Using gdb on wimpy computers - Archive of obsolete content
errupt. [Switching to Thread 2051 (runnable)] 0x404ccdeb in __sigsuspend (set=0xbf5ffbac) at ../sysdeps/unix/sysv/linux/sigsuspend.c:48 48 ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory. Current language: auto; currently c (gdb) shar gtk Reading symbols from /usr/lib/libgtk-1.2.so.0...done. Loaded symbols for /usr/lib/libgtk-1.2.so.0 Reading symbols from /usr/lib/gtk/themes/engines/libthinice.so...done. Loaded symbols for /usr/lib/gtk/themes/engines/libthinice.so (gdb) As you see above, it's possible to load more than one library with the same load command in GDB. How do I see what libraries I already have loaded? You can see what libraries you already have loaded with the info sharedlibrary command: (gdb) info shar From To Syms Read Shared Object...
Creating XPI Installer Modules - Archive of obsolete content
This new packaging scheme is called XPI (pronounced "zippy"), and interacts with XPInstall. ...
Using XPInstall to Install Plugins - Archive of obsolete content
tallers (for example, files called setup.exe), the programming language for install operations in XPI is JavaScript. Since the file format that contains the software and the install.js JavaScript file is a cross-platform file (Zip) and since JavaScript is understood by Mozilla browsers on all platforms, often one single XPI package can be deployed on all platforms. This is, in fact, how skins and themes are installed to Mozilla browsers, changing their look and feel. This article focuses on how to install plugins. Which Browsers Support XPInstall? Currently, all Mozilla browsers released by mozilla.org support XPInstall, and a family of browsers based on Mozilla code support XPInstall. In particular, this includes: Recent Netscape browsers such as Netscape 6.2.x and Netscape 7.0, which are ...
Learn XPI Installer Scripting by Example - Archive of obsolete content
provide programmatic access to the Windows user profile and the Windows registry, respectively. The browser.xpi install script does not demonstrate the use of these objects, but see the XPInstall API Reference for more information about registering software with the win32 operating systems and other operating systems. To register new Netscape 6-based software (e.g., plug-ins, new components, new themes, new packages) with the chrome registry, you must use the registerChrome function of the Install object. If successful, this function returns a "0" and makes entries into theinstalled-chrome.txt file in the chrome subdirectory, which is then used to regenerate the various RDF files that make up the chrome registry. var cf = getFolder("Chrome"); registerChrome(CONTENT | DELAYED_CHROME, getFolde...
afterselected - Archive of obsolete content
...
beforeselected - Archive of obsolete content
...
Deprecated and defunct markup - Archive of obsolete content
--Neil 03 March 2011 <sidebarheader> Not true, still in use --Neil 03 March 2011 <slider> (clickable...
Toolbars - Archive of obsolete content
edit the live DOM (Firefox and Thunderbird) Mozilla Labs Add-on Builder Extension Developer's Extension a suite of development tools Chrome List view files in chrome:// (Firefox, Thunderbird) Extension Wizard a web-based extension skeleton generator (Firefox and Thunderbird) ... more tools ... Related Topics XUL, Themes, Developing Mozilla ...
Adding Labels and Images - Archive of obsolete content
ialog box. Images XUL has an element to display images within a window. This element is appropriately named image. Note that the tag name is different than HTML (image instead of img). You can use the src attribute to specify the URL of the image file. The example below shows this: <image src="images/banner.jpg"/> Although you can use this syntax, it would be better in order to support different themes to use a style sheet to set the image URL. A later section will describe how to use style sheets, but an example will be shown here for completeness. You can use the list-style-image CSS property to set the URL for the image. Here are some examples: XUL: <image id="image1"/> <image id="search"/> Style Sheet: #image1 { list-style-image: url("chrome://findfile/skin/banner.jpg"); } #search...
Element Positioning - Archive of obsolete content
re are a number of features that allow you to control the size of an element. The quick way is to simply add the width and height attributes on an element, much like you might do on an HTML img tag. An example is shown below: Example 1: Source View <button label="OK" width="100" height="40"/> However, it is not recommended that you do this. It is not very portable and may not fit in with some themes. A better way is to use style properties, which work similarly to style sheets in HTML. The following CSS properties can be used. width This specifies the width of the element. Note that the CSS global skin of the XUL application may also specify a min-width for the buttons and other elements, thus if simply setting the width property does not set the button width as you expect, try also to m...
Modifying the Default Skin - Archive of obsolete content
skins is the same, however the style sheets and images used are different. For a simple personalized look to a Firefox window, you can easily change the style sheets associated with it. Larger changes can be done by creating an entirely new skin. Firefox has a Theme Manager for changing the default skin. (Although the underlying code for Mozilla calls them skins and the user interface calls them themes, they're both referring to the same thing). A skin is described using CSS, allowing you to define the colors, borders and images used to draw elements. The file classic.jar contains the skin definitions. The global directory within this archive contains the main style definitions for how to display the various XUL elements. By changing these files, you can change the look of the XUL applications...
Tabboxes - Archive of obsolete content
bpanels element will have no effect, since the tabbed pages are layered on top of each other. You can place the tabs on the right or bottom side by moving the tabs element to after the tabpanels element in your code. Alternatively, you could set the dir attribute to reverse on the tabbox. However, you should probably leave the tabs on top, otherwise they might not look very good under particular themes. Adding Tabs to our Find Files Dialog Let's add a second panel to the find files dialog. We'll create an Options tab (and select it by default) that will contain some options for searching. This may not be the best interface for doing this, but we'll use it to demonstrate tabs. The label across the top and the search criteria box will need to go on the first tab. We'll add some options on the ...
The Chrome URL - Archive of obsolete content
are installed into Mozilla's chrome system can be referenced with special chrome URLs. The packages included with Mozilla will already be installed but you can register your own. Installed packages have the advantage that they don't have security restrictions placed on them, which is necessary for many applications. Another advantage over other URL types is that they automatically handle multiple themes and locales. For example, a chrome URL lets you refer to a file in the theme such as an image without needing to know which theme the user is using. As long as the filenames are the same in each theme, you can refer to the file using a chrome URL. Mozilla will take care of determining where the file is located and return the right data. This also means that it doesn't matter where the package is ...
XUL Structure - Archive of obsolete content
ethod is the manifest file mentioned earlier, and you will find these as files with the .manifest extension in the chrome directory. For instance, browser.manifest describes the browser package. Several subdirectories, such as bookmarks and preferences, describe additional sections of the browser component. They are placed in different directories only to keep the files more organized. Skins or Themes Although the underlying code for Mozilla calls them skins and the user interface calls them themes, they're both referring to the same thing. The classic.jar file describes the default theme provided with Firefox. The structure is similar to the content packages. For example, examining classic.jar: skin classic browser browser.css -- other browser skin files go here -...
Using the standard theme - Archive of obsolete content
ding on the selected theme Mozilla is able to automatically pick your custom style sheet depending on the theme currently chosen by the user. That is, depending on the theme currently selected by the user, you can provide different custom style sheets for your extensions. For this to work, you need to create an approriate directory structure, with directory names corresponding to the names of the themes you want to extend, and of course, your adapted custom style sheets. For more information on how to do this, read about theming a custom toolbar button. Note that both approaches described above work with this automatic style selection. ...
tab - Archive of obsolete content
Archive › Mozilla › XUL › tab
pe: character This should be set to a character that is used as a shortcut key. This should be one of the characters that appears in the label attribute for the element. afterselected Type: boolean This is set to true if the tab is immediately after the currently selected tab. This is automatically set when needed and you shouldn't adjust it manually. This is primarily useful for themes so that they can adjust the appearance of the area around the selected tab. beforeselected Type: boolean This is set to true if the tab is immediately before the currently selected tab. This is set automatically set when needed and you shouldn't adjust it manually. This is primarily useful for themes so that they can adjust the appearance of the area around the selected tab. ...
toolbarseparator - Archive of obsolete content
<< XUL Reference home [ Examples | Attributes | Properties | Methods | Related ] Creates a separator between groups of toolbar items. It is functionally equivalent to a normal separator but some themes may apply a different appearance. Properties accessibleType Examples <toolbox> <toolbar> <toolbarbutton label="Button 1"/> <toolbarseparator /> <toolbarbutton label="Button 2"/> </toolbar> </toolbox> Attributes Inherited from XUL element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes...
Archived Mozilla and build documentation - Archive of obsolete content
o WinXP fine (Win2000 compatibility is unknown). The only downside is you can't specify how much of the resource to use, only which one to consume. Also be warned: always remember the -time option, or you may be hitting that physical reset button sooner than you would have liked! Structure of an installable bundle XULRunner applications, extensions, and themes all share a common directory structure, and in some cases the same bundle can be used as a standalone XULRunner application as well as an installable application extension. Supporting private browsing mode Firefox 3.5 introduced private browsing mode, in which potentially private information is not recorded. This includes cookies, history information, download in...
Extentsions FAQ - Archive of obsolete content
Could someone make an addressbook enhancer extension that has the ability to put pictures on a contact and other features the Thunderbird address book lacks. ...
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
that once the plugin is installed, it might be difficult for users to upgrade, uninstall, or disable the plugin. As of Firefox 3 (and any Gecko 1.9 based application) the use of install.js scripts is no longer supported and plugins must either be shipped as an executable installer or in a bundle as described here. Bundle structure Toolkit bundles can be used for all add-ons including extensions, themes and plugins. Plugin packages should only need to package a small set of files in the following structure in the xpi file: install.rdf plugins/ pluginlib.dll plugintypes.xpt The install.rdf file contains an install manifest that describes the plugin to the user. The library and scripting interfaces are held in the plugins directory. Platform-specific files Gecko 1.9.2 (Firefox 3.6) and ea...
Creating a Skin for Firefox - Archive of obsolete content
ge, but you can change the look of the right click menu (Make it blue with pink polka dots, for example). If you want to change the functionality of Firefox, you'll have to look into modifying the chrome, which is beyond the scope of this document. Contents Getting Started Original Document Information Author(s): Neil Marshall and Tucker Lee Other Contributors: Brent Marshall, CDN (http://themes.mozdev.org), JP Martin, Boris Zbarsky, Asa Dotzler, WeSaySo, David James, Dan Mauch, Anders Conbere, Tim Regula (http://www.igraphics.nn.cx) Copyright Information: Copyright 2002-2003 Neil Marshall, permission given to MDC to migrate into the wiki April 2005 via email. Original Location: http://www.eightlines.com/neil/mozskin ...
Theme changes in Firefox 3.5 - Archive of obsolete content
theme to work properly in Firefox 3.5. Core, browser and toolkit changes requiring theme updates There are a number of changes in the browser that may require you to make changes to your theme. Affected files Details scrollbar.xml, xulscrollbars.css The <gripper> element was removed from the scrollbar thumb button by bug 448704. For the Windows and Linux native default themes, the gripper is now drawn as a part of the background of the scrollbar thumb widget. Third-party themes can still draw a gripper for the scrollbar thumb button by applying a centered background image to the scrollbar's thumb button. global/checkbox.css, global/radio.css Since bug 394892, radio buttons and checkboxes no longer have a minimum size on Mac OS X. If your theme uses native...
Theme changes in Firefox 4 - Archive of obsolete content
Menu bar #toolbar-menubar small Navigation bar #nav-bar small or large depending on user preference. Bookmarks toolbar #PersonalToolbar small Tab bar #TabsToolbar small Add-on bar #addon-bar small Custom toolbars Some other value small or large depending on user preference. Overriding the default values Themes can override the value of the iconsize attribute on each toolbar by specifying a special value for the counter-reset CSS property on the toolbar itself. CSS property on the toolbar element Value forced on the iconsize attribute counter-reset: largeicons; large counter-reset: smallicons; small For toolbars in the upper part of the window, the counter-res...
-moz-windows-default-theme - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the user is using one of the default Windows themes--Luna, Royale, Zune, or Aero (including Vista Basic, Vista Advanced, and Aero Glass)--this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
Archive of obsolete content
Internals Key: Tamarin Tracing Build Documentation The following instructions are for obtaining and building the Tamarin Tracing source code. For instructions on Tamarin Central, please see The Basics of Web Services Summary: A current hot topic on the web right now are Web Services. This short guide will allow you to learn more about web services. Themes Archived theme documentation. Updating an extension to support multiple Mozilla applications This article shows how to take an existing extension and update it so that it can be used in additional Mozilla applications. We'll build upon the stock watcher extension created in earlier articles in this series, updating it so it can also be used in Thunderbir...
Community - Extensions
If you know of useful mailing lists, newsgroups, forums, or other communities related to extension development, please link to them here. ...
Entity header - MDN Web Docs Glossary: Definitions of Web-related terms
Headers like Content-Length, Content-Language, Content-Encoding are entities headers. Even if they are neither request, nor response headers, entity headers are often included in such terms. ...
Index - MDN Web Docs Glossary: Definitions of Web-related terms
(which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces). You can also use them in place of other characters that are difficult to type with a standard keyboard. 134 Entity header Glossary, WebMechanics An entity header is an HTTP header that can be used in an HTTP request or response, and describes the content of the body of themessage. Headers like Content-Length, Content-Language, Content-Encoding are entities headers. 135 Event CodingScripting, Glossary Events are assets generated by DOM elements, which can be manipulated by a Javascript code. 136 Exception Beginner, CodingScripting, Glossary An exception is a condition that interrupts normal code execution. In JavaScript syntax ...
Mozilla Firefox - MDN Web Docs Glossary: Definitions of Web-related terms
Mozilla Firefox is a free open-source browser whose development is overseen by the Mozilla Corporation. Firefox runs on Windows, OS X, Linux, and Android. First released in November 2004, Firefox is completely customizable with themes, plug-ins, and add-ons. Firefox uses Gecko to render webpages, and implements both current and upcoming Web standards. Learn more General knowledge Mozilla Firefox official website Technical reference Firefox developer documentations on MDN ...
Advanced form styling - Learn web development
dardizes form markup, styling it with CSS. It also offers a few additional features when used with jQuery, but that's optional. Formalize is an extension to common JavaScript frameworks (such as jQuery, Dojo, YUI, etc.) that helps to normalize and customize your forms. Niceforms is a standalone JavaScript method that provides complete customization of web forms. You can use some of the built in themes, or create your own. The following libraries aren't just about forms, but they have very interesting features for dealing with HTML forms: jQuery UI offers customizable widgets such as date pickers (with special attention given to accessibility). Twitter Bootstrap can help normalize your forms. WebShim is a huge tool that can help you deal with browser HTML5 support. The web forms part can...
Introduction to web APIs - Learn web development
lity into your app, sending SMS/MMS from your apps, and more. The Mastodon API enables you to manipulate features of the Mastodon social network programmatically. Note: You can find information on a lot more 3rd party APIs at the Programmable Web API directory. How do APIs work? Different JavaScript APIs work in slightly different ways, but generally, they have common features and similar themes to how they work. They are based on objects Your code interacts with APIs using one or more JavaScript objects, which serve as containers for the data the API uses (contained in object properties), and the functionality the API makes available (contained in object methods). Note: If you are not already familiar with how objects work, you should go back and work through our JavaScript objects ...
Accessible Toolkit Checklist
Implement standard keyboard behavior, which can vary from platform to platform. Expose your UI - a way for assistive technologies such as screen readers, screen magnifiers and voice dictation software to understand your software. Provide theme compatibility with the operating system, at least as an option. Some low vision users will be running your software with high contrast or large font themes. Go beyond section 508. Implement true usability for everyone, and make your toolkit follow the guidelines for each platform. The Approaches There are two basic kinds of toolkits, which each provide different challenges when implementing accessibility: Native widget toolkits , like Eclipse and wxWidgets, already have some accessibility built-in. These toolkits wrap the widge...
Add-ons
ns for Firefox and give your users simple, yet powerful ways to customize their browsing experience. You'll find: Overview of the Firefox extension features Tools and processes for developing and testing How to publish your extension on addons.mozilla.org or distribute it yourself How to manage your published extension An enterprise guide for developing and using extensions How to develop themes for Firefox Firefox developer communities Extensions for Firefox for Android In 2020, Mozilla will release a new Firefox for Android experience. This new, high-performance browser for Android has been rebuilt from the ground up using GeckoView, Mozilla's mobile browser engine. We are currently building support for the WebExtensions API on GeckoView. Migrate an existing extension If you main...
Command line options
tart application. Add-ons Gecko 1.9.2 note -install-global-extension and -install-global-theme have been removed from Gecko 1.9.2 and upwards. -install-global-extension /path/to/extension Installs the extension into the application directory. The parameter is the path to the extension. You must have administrative privileges. -install-global-theme /path/to/theme Same as above, but for themes. You must have administrative privileges. Note: Since Firefox 2.0.0.7, use of the -install-global-extension and -install-global-theme command line arguments have been restricted to only allow installing add-ons that are on local disks or mapped drives. Installing from a network share directly will no longer succeed. -safe-mode Launches the application with all extensions disabled, for that l...
:-moz-lwtheme
...
Chrome-only CSS reference
Mozilla › Gecko › Chrome › CSS
S properties exposed to the Web in general are also usable in Chrome stylesheets: see the CSS documentation for a list of these. -moz-window-draggingThe -moz-window-dragging CSS property specifies whether a window is draggable or not. ...
Addon
ting to be performed for this add-on. Operations are generally deferred when a restart is necessary to accomplish them. permissions Read only integer A bitfield holding all the the operations that can be performed on this add-on. Operations my be restricted based on system policies (e.g., the system administrator may not allow certain add-ons to be uninstalled), add-on type (e.g., themes may not be disabled), or add-on state (e.g., an incompatible add-on cannot be enabled). providesUpdatesSecurely Read only boolean True if the add-on has a secure means of updating or cannot be updated at all. scope Read only integer Indicates what scope the add-on is installed in, per profile, user, system, or application. type Read only string The ...
Generating GUIDs
Add-ons can (and should) be identified with IDs of the form extensionname@organization.tld since Firefox 1.5. Warning: If you just want an ID for your add-on, generating a GUID is almost definitely not what you want to do. ...
nsIInstallLocation
1.0 66 Introduced Gecko 1.8 Obsolete Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Note: While this API still works, Firefox 4 no longer extracts XPIs by default, so this will now point to the XPI file instead of to the directory. Any nsIFile operations that assume a directory and plain files will fail in Firefox 4, unless you specify <em:unpack>. ...
XPCOM
ial for making a simple JavaScript or C++ component (implementing the nsISimple interface). Here is how to make the same component in Python using PyXPCOM.Fun With XBL and XPConnectGenerating GUIDsGUIDs are used in Mozilla programming for identifying several types of entities, including XPCOM Interfaces (this type of GUIDs is callled IID), components (CID), and legacy add-ons--like extensions and themes--that were created prior to Firefox 1.5. Add-ons can (and should) be identified with IDs of the form extensionname@organization.tld since Firefox 1.5.Generic factoryMost XPCOM factories can be very simple. Rick Potts wrote a templated-based generic factory (nsFactory<t>) that simplifies the factory creation process that just requires writing a CreateInstance() method. The new nsIGenericFactory in...
Index
ry, and I decided to follow my usual path and document what I do: 88 Styling the Folder Pane The folder pane in Thunderbird is predominantly controlled by code in folderPane.js. Since Thunderbird 3, the folder pane is designed in a more modular and extensible fashion. It is now possible to place non-mail entities in the folder pane. 89 Theme Packaging Add-ons, Themes, Toolkit API This document describes how to package themes for Thunderbird. 90 Thunderbird HowTos Add-ons, Extensions, thunderbird Please add questions or answers to this page so that other people can benefit from your work. Also, you will see that there are many topics for which there is a question, but no answer. Please help by adding an answer! (Adding another questi...
Thunderbird extensions
Community / Communications Thunderbird specific : Add-ons section on developer.thunderbird.net Thunderbird communication channels Add-on Developers forum/mailing list #maildev IRC channel More general : MozillaZine Extension Development forum General developer channels Related Topics XUL, JavaScript, XPCOM, Themes, Developing Mozilla Categori ...
XPI
An XPI contains installation instructions (install.js or install.rdf) as well as the actual software to install, which is often itself packaged as a JAR file. ...
Mozilla
changes only apply to XUL extensions and XUL applications. They do not apply to web applications. XPI Cross-Platform Installer Module (XPI) is a ZIP file used to install packages, utilizing the XPInstall technology. XPI modules (so called " Bundles") are employed to install a wide variety of software, including Plugins, Extensions, Themes, and Thunderbird dictionaries. Zombie compartments This page tells you how to detect and avoid zombie compartments, which are a particular kind of memory leak. They can be caused by bugs in Firefox itself, or by bugs in Firefox add-ons. ...
Index - Firefox Developer Tools
t a web page would look like to users with various forms of color vision deficiency (better known as "color blindness"), as well as contrast sensitivity loss. 5 Add-ons Web Development, Web Development:Tools Developer tools that are not built into Firefox, but ship as separate add-ons. 6 DOM Inspector DOM, DOM:Tools, DOM_Inspector, Extensions, Extensions:Tools, Themes, Themes:Tools, Tools, Web Development, Web Development:Tools, XUL, XUL:Tools The DOM Inspector (also known as DOMi) is a developer tool used to inspect, browse, and edit the Document Object Model of documents - usually web pages or XUL windows. The DOM hierarchy can be navigated using a two-paned window that allows a variety of different views on the document and all nodes within. 7 ...
Settings - Firefox Developer Tools
n icon in the Toolbox's toolbar. As of Firefox 62, if the option to "Select an iframe as the currently targeted document" is checked, the icon will appear in the toolbar while the Settings tab is displayed, even if the current page doesn't include any iframes. Note that in Firefox 52 we removed the checkbox to toggle the "Select element" button. The "Select element" button is now always shown. Themes This enables you to choose one of two themes. There's a light theme, which is the default: A dark theme: Common preferences Settings that apply to more than one tool. There's just one of these: Enable persistent logs A setting to control whether or not the Web Console and Network Monitor clear their output when you navigate to a new page. If Common Preferences is ...
:-moz-locale-dir(ltr) - CSS: Cascading Style Sheets
The :-moz-locale-dir(ltr) CSS pseudo-class is a Mozilla extension that matches an element if the user interface is being displayed left-to-right. This is determined by the preference intl.uidirection.locale (where locale is the current locale) being set to "ltr". Note: This selector is mainly used by extensions and themes to adapt the user interface based on the user's locale. (This can vary from window to window, and even from tab to tab.) It also allows extensions to work even when they don't support the user's default locale, since they can support both left-to-right and right-to-left layouts regardless of locale specifics. This selector does not work properly from HTML; it always matches, regardless of whether the UI locale is left-to-right or right-to-left. Syntax :-moz-l...
:-moz-locale-dir(rtl) - CSS: Cascading Style Sheets
The :-moz-locale-dir(rtl) CSS pseudo-class is a Mozilla extension that matches an element if the user interface is being displayed right-to-left. This is determined by the preference intl.uidirection.locale (where locale is the current locale) being set to "rtl". Note: This selector is mainly used by extensions and themes to adapt the user interface based on the user's locale. (This can vary from window to window, and even from tab to tab.) It also allows extensions to work even when they don't support the user's default locale, since they can support both left-to-right and right-to-left layouts regardless of locale specifics. This selector does not work properly from HTML; it never matches, no matter whether the UI locale is left-to-right or right-to-left. Syntax :-moz-locale...
-ms-high-contrast - CSS: Cascading Style Sheets
S2 system colors. The available color keywords are: windowText: controls the color of text content. highlightText: controls the color of selected text. highlight: controls the background color of selected text. buttonFace: controls the color of a <button> element's text. window: controls the color of the background. The <a> element controls the color of links. Because High Contrast Mode themes are dynamic, use these color keywords in place of other CSS color values. This will ensure that content will always be able to be perceived. Content If at all possible, prefer updating HTML markup over modifying content using CSS2 system color keywords. This helps keep the content more predictable. Specifications Not part of any standard. Remarks As of Microsoft Edge 18, -ms-high-contrast: ...
overflow - CSS: Cascading Style Sheets
Web › CSS › overflow
Opera) browsers. Mozilla extensions -moz-scrollbars-none [1] Use overflow: hidden instead. -moz-scrollbars-horizontal [1] Use overflow-x: scroll and overflow-y: hidden, or overflow: hidden scroll instead. -moz-scrollbars-vertical [1] Use overflow-x: hidden and overflow-y: scroll, or overflow: scroll hidden instead. -moz-hidden-unscrollable Intended mainly for internal use and by themes. Disables scrolling of XML root elements, <html>, and <body> with the keyboard's arrow keys and the mouse wheel. [1] As of Firefox 63, this feature is behind a feature preference setting. In about:config, set layout.css.overflow.moz-scrollbars.enabled to true Description Overflow options include clipping, showing scrollbars, or displaying the content flowing out of its container into the sur...
HTML5 - Developer guides
Web › Guide › HTML › HTML5
ly. Multimedia: making video and audio first-class citizens in the Open Web. 2D/3D graphics and effects: allowing a much more diverse range of presentation options. Performance and integration: providing greater speed optimization and better usage of computer hardware. Device access: allowing for the usage of various input and output devices. Styling: letting authors write more sophisticated themes. Semantics Sections and outlines in HTML5 A look at the new outlining and sectioning elements in HTML5: <section>, <article>, <nav>, <header>, <footer> and <aside>. Using HTML5 audio and video The <audio> and <video> elements embed and allow the manipulation of new multimedia content. Forms improvements A look at the constraint validation API, several new attributes, new values for th...
Using HTTP cookies - HTTP
Web › HTTP › Cookies
ater requests to the same server. Typically, it's used to tell if two requests came from the same browser -- keeping a user logged-in, for example. It remembers stateful information for the stateless HTTP protocol. Cookies are mainly used for three purposes: Session management Logins, shopping carts, game scores, or anything else the server should remember Personalization User preferences, themes, and other settings Tracking Recording and analyzing user behavior Cookies were once used for general client-side storage. While this was legitimate when they were the only way to store data on the client, it is now recommended to use modern storage APIs. Cookies are sent with every request, so they can worsen performance (especially for mobile data connections). Modern APIs for client storag...