Difference between revisions of "Development:Third-Party Tab Themes"
(add the images) |
(note) |
||
Line 1: | Line 1: | ||
− | + | The tabbed browsing UI of Camino 1.0 and newer allows the use of custom of themes. The theming system for the tabs was designed to be both simple and flexible. | |
+ | |||
+ | '''''N.B.''' Note that these instructions and illustrations are correct as of Camino 1.0. There have been slight changes in filenames (and the addition of the close button hover image) in Camino 1.5, and more significant changes to the tab system in nightly builds following Camino 1.5. This documentation will be updated for such changes as time allows.'' | ||
==How does it work?== | ==How does it work?== |
Revision as of 15:18, 9 June 2007
The tabbed browsing UI of Camino 1.0 and newer allows the use of custom of themes. The theming system for the tabs was designed to be both simple and flexible.
N.B. Note that these instructions and illustrations are correct as of Camino 1.0. There have been slight changes in filenames (and the addition of the close button hover image) in Camino 1.5, and more significant changes to the tab system in nightly builds following Camino 1.5. This documentation will be updated for such changes as time allows.
How does it work?
As shown below, the tab base is tab_bar_bg
painted as a pattern across the entire width of the tab bar. Then, at the ends of every tab, the tab_button_divider
is painted.
Active Tab
The active tab consists of three objects. The sides of the tabs are painted using tab_left_side
and tab_right_side
. The middle part of the active tab is painted using tab_active_bg
as a pattern.
Our Keen Tabs
Tab Close Buttons
The close tab button has three separate states: one for the general inactive state, one for the hover state, and one for the clicked state. The overflow menu button is painted as is.
Tab Bar
Because the bar_bg
, active_bg
and hover images are painted as patterns, there is great freedom in what can be done. These patterns can be made as wide as you wish, which can increase your flexibility when designing tab themes. It is also possible to make the divider and side images wider than two pixels, but this could cause the expected behavior to change.