HP Smart Client Administrator's Guide

which these files are stored and can be modified to point to custom directories. For instance, the
registry key root/zero-login/styledir/view points to the directory containing style elements for
the login desktop for VMware View connections, defaulting to /etc/hptc-zero-login/styles/
view.
Within a style’s directory, the file bgConfig.rtf specifies the elements in the desktop's background
window. Syntax of a bgConfig.rtf file is in a stylesheet-like format with some or all of the elements
described below. Each element begins with the element type and then a set of attributes surrounded by
braces, e.g.
global {
color: 666666; # Dark gray
padding: 20; # 20 pixels
}
Any number of image or text elements can be specified. If any gradients are specified, only the last of
them is used to color the desktop's background; otherwise the color specified in the global section is
used. Any line that begins with a number-sign (‘#’) is considered a comment and is ignored, as are
blank lines. Text following a semicolon that begins with ‘#’ is also treated as a comment, such as the
examples above.
Each element is assigned a set of attributes such as size, color, and position. Each attribute is specified
by the attribute name followed by a colon followed by its value[s] followed by a semicolon, all on a
single line. Some of these attributes are common to many element types, and those described first.
Common attributes
name
Parameters: a string
Example: name: itemName;
Default: none
Use: Specifies a string to associate with the element. It is used only in debugging output, such as when
a syntax or value error is found in attribute parsing.
padding
Parameters: An absolute (pixel) or percentage value
Example: padding: 20;
Default: none
Use: An object will be positioned on the screen as if the screen were smaller on all sides by the
padding value. For instance, if an element would normally be placed at 0,0, with a padding of 20 it
would be placed at 20,20 instead. If specified in the global element, it will apply to all subsequent
elements, leaving an empty gutter around the screen edged, unless those elements override the padding
with their own padding value.
24 Chapter 2 Server setup