root/trunk/qt4-gui/doc/SKINS.HOWTO

Revision 5557, 6.1 kB (checked in by eugene, 14 months ago)

Killed the trailing whitespace from the lines.

  • Property svn:eol-style set to native
Line 
1=======================================
2Licq Skins Howto
3
4February 6 2000, v1.5
5
6Graham Roff
7
8Modified by Thomas Reitelbach
9=======================================
10
11Revision 1.5: (2003-03, by Thomas Reitelbach)
12  - added scrollbar color support:
13    - colors.scrollbar = #22436a
14    - colors.btnTxt = #e6e6e6
15
16    -> colors.scrollbar is the main color for the scrollbar. It also affects
17       the userlist table head.
18    -> colors.btnTxt is the text color of the userlist table head and the
19       direction arrows of the scrollbar
20    Both options support "default" as value, which means to use the systems
21    default color, or you can use named colors like "white" or "yellow"
22    instead of hex-values.
23
24Revision 1.4:
25  - when using a menu bar, all position height positions can be set
26    assuming 0 is the bottom of the menu bar
27
28Revision 1.3:
29  - added frame.frameStyle option
30  - added frame.transparent option
31
32Revision 1.2:
33  - added the colors.xxx section (at the bottom)
34
35Revision 1.1:
36  - added "label.bg = transparent" option to have transparent labels
37  - fixed problems setting colors for the combo box
38  - added "label.margin = #" option to allow setting the left margin for a
39    label
40
41
42Skins Howto:
43
44  Making a skin for Licq is fairly straightforward.  To begin with, skins
45  can be:
46  1) Transparent
47  2) Non-rectangular (essentially using transparency)
48  3) Any color
49
50  A skin is composed of a skin.name directory in {prefix}/share/licq/qt-gui,
51a name.skin file in that directory, and any graphics files necessary, also
52in that directory.
53  The best way to explain how to build a skin is to look at a sample
54name.skin file.  Basically each object has various fields that must be
55specified.  All fields must be specified, text fields can have a value of
56"default" to use the default behavior.  Pixmap fields can have a value of
57"none" as well to specify no pixmap.  All pixmaps specified must be located
58in the {prefix}/share/licq/qt-gui/skin.name directory.
59  To not display an object, set all the position coordinates to be
60the same (non-zero) value and it will be hidden.
61
62
63# ==============================================================================
64# Border Skin
65
66# Frame Styles, add them together for combinations
67#  NoFrame = 0, Box = 1, Panel = 2, WinPanel = 3
68#  Plain = 16, Raised = 32, Sunken = 48, MShadow = 240
69
70[skin]
71
72# ---Frame---
73# The frame represents the background image and overall structure of the skin
74# It can be of any format supported by Qt (bmp, xpm, ppm, gif)
75# The mask is a 1 bit (black and white) image used for transparencies.  Any
76# region of the mask graphic containing 0's (white) will be transparent,
77# a region with 1's (black) will be opaque.
78frame.pixmap = frame-t.xpm
79frame.mask = mask.gif
80
81# The frame style uses the numbers above to create the frame around the user
82# window.  The transparent options (which can be 1 or 0 for true/false)
83# indicates whether the user window should be transparent or use the
84# background color specified below.
85frame.frameStyle = 51
86frame.transparent = 0
87
88# The frame.border specifiers are used in two cases.  First to determine where
89# to place the user list (it will be places inside of the border), and second
90# for resize effects.  A typical graphics resize will ruin a border by
91# stretching it in all directions.  Licq will resize the frame pixmap by
92# stretching only the section inside of the border in both directions, and
93# expanding the horizontal and vertical borders in one direction only.
94frame.border.top = 15
95frame.border.bottom = 110
96frame.border.left = 15
97frame.border.right = 15
98
99# If this is set to a non-zero value then the skin will have a menu bar with
100# the system button as the only member.  This precludes any settings in
101# btnSys below.  Any height positions specified for other widgets will be
102# automatically adjusted to be below the menu bar (ie 0 corresponds to the
103# pixel right below the menu bar)
104frame.hasMenuBar = 0
105
106# ---Status Label---
107# The rect specifiers show where to place the object.  A negative specification
108# for any field indicates a number of pixels back from the opposite side of the
109# window.  So setting x1 to 20 and x2 to -20 means the label will strech across
110# the entire window with a 20 pixel border on each side.  The two points are
111# the top left and bottom right corners of the object.
112lblStatus.rect.x1 = 20
113lblStatus.rect.y1 = -40
114lblStatus.rect.x2 = -20
115lblStatus.rect.y2 = -20
116
117# Colors are pretty self-explanatory.  Using "default" will use the default
118# colors.  Also, setting .bg to "transparent" will make the label be
119# transparent.
120lblStatus.color.fg = default
121lblStatus.color.bg = black
122
123# Frame style allows setting of what type of frame the object has.  Get the
124# values above, and OR them together for a combination.
125lblStatus.frameStyle = 0
126
127# Margin sets the left margin for the label, typically it would be combined
128# with a pixmap to give a nicer interior look to it.
129lblStatus.margin = 0
130
131# This sets the background pixmap for the object.
132lblStatus.pixmap = none
133
134# ---System Button---
135btnSys.rect.x1 = 20
136btnSys.rect.y1 = -65
137btnSys.rect.x2 = 70
138btnSys.rect.y2 = -45
139
140# These three pixmaps are what the button will look like when it's up and has
141# the focus, up and without the focus and down.
142btnSys.pixmapUpFocus = btnsysupfocus.xpm
143btnSys.pixmapUpNoFocus = btnsysupnofocus.xpm
144btnSys.pixmapDown = btnsysdown.xpm
145btnSys.color.fg = default
146btnSys.color.bg = black
147
148# This is the text that will appear on the System Button.  If there is a pixmap
149# set then this will be ignored.
150btnSys.caption = default
151
152# ---Message Label---
153lblMsg.rect.x1 = 75
154lblMsg.rect.y1 = -65
155lblMsg.rect.x2 = -20
156lblMsg.rect.y2 = -45
157lblMsg.color.fg = yellow
158lblMsg.color.bg = transparent
159lblMsg.frameStyle = 0
160lblMsg.pixmap = none
161lblMsg.margin = 0
162
163# ---Group Combobox---
164cmbGroups.rect.x1 = 25
165cmbGroups.rect.y1 = -90
166cmbGroups.rect.x2 = -25
167cmbGroups.rect.y2 = -70
168cmbGroups.color.fg = default
169cmbGroups.color.bg = silver
170
171# --- colors ---
172colors.online = blue
173colors.away = dark green
174colors.offline = firebrick
175colors.newuser = yellow
176colors.background = default
177colors.gridlines = black
178colors.scrollbar = #22436a
179colors.btnTxt = #e6e6e6
180
181# ==============================================================================
182
183
Note: See TracBrowser for help on using the browser.