Home arrow XML arrow Page 4 - Skinning Your Custom XUL Applications
XML

Skinning Your Custom XUL Applications


This article will explain how to create a skin for your own XUL applications. There are two ways to do this, both of which will be explained. You will need some knowledge of CSS to get the most out of this article.

Author Info:
By: Dan Wellman
Rating: 5 stars5 stars5 stars5 stars5 stars / 3
May 01, 2006
TABLE OF CONTENTS:
  1. · Skinning Your Custom XUL Applications
  2. · Setting up a Stylesheet
  3. · Register or Not
  4. · The Moment of Truth

print this article
SEARCH DEVARTICLES

Skinning Your Custom XUL Applications - The Moment of Truth
(Page 4 of 4 )

As I said before, you can't use this skin with Mozilla itself by selecting it here in the preferences dialog because, although it has been registered, it hasn't actually been installed.  This would normally be done using a downloadable archive containing an install script which is usually run directly within Mozilla. 

Now for the moment of glory; open up your XUL application and the skin settings should be applied:

 

You should be seeing your application as if the skin file was simply attached to the file locally instead of via the chrome URL. 

So these are the two ways in which styles or themes can be applied to an application you've created. Unfortunately however, neither of these mechanisms is suitable for having a system whereby users of your application can programmatically change to another skin. In order to do this, as with Mozilla itself, you need to make use of another area of XUL: overlays, which can be used either to connect common or shared XUL elements to your main application file to cut down on coding, or to dynamically apply new content to applications, without the said applications original code being modified.


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus
XML ARTICLES

- Open XML Finally Supported by MS Office
- XML Features Added to Two Systems
- Using Regions with XSL Formatting Objects
- Using XSL Formatting Objects
- More Schematron Features
- Schematron Patterns and Validation
- Using Schematron
- Datatypes and More in RELAX NG
- Providing Options in RELAX NG
- An Introduction to RELAX NG
- Path, Predicates, and XQuery
- Using Predicates with XQuery
- Navigating Input Documents Using Paths
- XML Basics
- Introduction to XPath

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials