Developer’s Guide

Table Of Contents
Chapter 5
Creating custom layout themes
FileMaker Pro 5 uses a variety of layout themes to describe the
colors, patterns, fonts, and borders of text, fields, and parts in a new
layout.
A FileMaker Pro theme is defined in an Extensible Markup
Language (XML) document that can be read and edited in text
editors (such as Wordpad for Windows or BBEdit for Mac OS) or
XML editors (such as XML SPY or XML Pad). You can customize
an existing theme or create your own, and then use the New Layout/
Report assistant to apply the custom theme when you create layouts
for your databases. You can modify attributes defined by the theme
in Layout mode after the layout is created. However, you can’t apply
a theme to an existing layout.
Note A FileMaker Pro theme is not a stylesheet and does not contain
positioning information for objects on a layout.
For information about:
1 using layout themes and designing layouts, see chapters 6 and 7 in
the FileMaker Pro 5 User’s Guide
1 XML and its uses, see the product support pages for FileMaker
Developer on the FileMaker, Inc. web site at www.filemaker.com
1 publishing your database on the Web in XML format, see
chapter 7, “Using FileMaker Pro XML to deliver your data”
Modifying a FileMaker Pro theme
There are nine theme files provided with FileMaker Pro 5, which you
can modify. A FileMaker Pro theme file can contain more than one
theme—for example, the Blue_gold.fth file contains two themes:
“Blue and Gold Screen” (for viewing onscreen) and “Blue and Gold
Print” (for printing).
Important The XML for a layout theme must be well-formed and
comply with the required syntax. See “Basic requirements for a
theme file” on page 5-3 and “Checking your theme document for
errors” on page 5-10.
To modify a theme:
1. Make a duplicate copy of the theme file (for example,
Blue_gold.fth) in the Themes folder.
FileMaker Pro 5 folder > Themes folder > Blue_gold.fth copy
2. Rename the copy and include the .fth extension with the new
filename. Keep the new file in the Themes folder.
Create themes to automatically apply different styles to text and
background fills in layout parts, fields, and field labels
Fill color and
pattern for
header part
Fill color and
pattern for
body part
Fill color and
pattern for
footer part
Field label
Field text
Field fill,
border and
shadow effect
Text in
footer part