Home > Ask the Enterprise Linux Experts > Questions & Answers > Why does Mozilla look different on some apps?
Ask The Enterprise Linux Expert: Questions & Answers
EMAIL THIS

Why does Mozilla look different on some apps?

Nigel McFarlane EXPERT RESPONSE FROM: Nigel McFarlane

Pose a Question
Other Enterprise Linux Categories
Meet all Enterprise Linux Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 15 March 2004
Why does Mozilla look different to other GNOME and Gtk-based applications?

>

Any X11 and Gtk-based program can set the colours used in its windows. If a program wants to fit in with the rest of the desktop, though, then it has to use the system of theme engines that Gtk supports. A theme engine serves up skinning information to any program smart enough to take advantage of it. Since the skinning information is the same for all theme-engine enabled programs, all such programs have some common visual elements.

In the Mozilla case, two theme engines are at work. There's the Gtk system, and then there's Mozilla's own skinning system, also called themes. The Mozilla theme engine is responsible for Mozilla-specific skins like Classic and Modern, as well as third party skins like SkyPilot. Each of these skins uses a generally fixed set of colours and images. To the Gtk theme engine, these Mozilla skins look like static information, so the theme engine adds nothing.

Mozilla's themes are built using CSS, and Mozilla has a new CSS style property called -moz-appearance. This extension forces Mozilla to consult the native theme engine (on Linux, the Gtk one) for skin information. By creating a Mozilla skin that makes use of this extension, the native theme information can "shine through" into Mozilla windows. In fact, the Classic skin uses -moz-appearance in several places, particularly in form elements and in scrollbars.

The Classic skin also sets some colours and images directly, in order to be familiar to older Netscape 4.x users. So there isn't a skin that perfectly shows the underlying Gtk theme yet. In fact, native theme support is only 95% ready in Mozilla at this time. We're not far away, though, from being able to create a Transparent skin that uses -moz-appearance across the whole range of GUI widgets. Mozilla currently relies on the Gtk 1.2 libraries. Many GNOME programs use Gtk 1.2, so that's not a big deal. When Gtk 2.0 is supported though, Mozilla will come even closer to the look and feel of other GNOME tools.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Linux Migration Advice: Unix-to-Linux, Windows-to-Linux
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts