Topic
From TrillWiki
Topic controls are used all over the place for numerous things, so have a lot of options and preferences to make them very customizable. In basic terms, they are text areas, some with defined text for labels others with formatting information for displayed information such as the topic in an irc channel.
Contents |
[edit] Basic Code
The basic layout is this:
<control name="name" type="topic"> <font preferences/> <forecolor red="0" green="0" blue="0"/> <backcolor red="0" green="0" blue="0"/> <settings preferences/> </control>
These are not all necessary. The only ones that have to be there are the font and forecolor.
[edit] font
this has a few options (use in the form <option>="<value>")
| Option | Description |
| source | Name of fonts file, if value "fontfile" is used, it will use whatever font trillian is set to use |
|---|---|
| type | The font |
| size | The size of font |
| bold | Boolean value of 1 to make text bold no point using 0 just dont put it in :) |
| italics | Same as bold |
| underline | Same as bold (may not work everywhere.) |
[edit] Forecolor
forecolor is the colour for the text - simple as that (See RGB )
[edit] Backcolor
backcolor is the colour of the area behind the text, if this is not put in, Trillian will make the background transparent.
[edit] Settings
settings can only have one option and one value, for more options, the <settings name="" value=""/> should be repeated
| Name | Description |
| auto-scroll | Only needed if a value of "no" is required - defines whether the text will scroll from side to side |
|---|---|
| alignment | Left/Right/Center |
| vertical-alignment | Top/Center/Bottom |
| default-text | value="text you want to appear" - used for a label You should probably use Trillian's language packs for the default-texts if your skin is for Trillian 2.0+. |
MainRegion code is available
Some skins have the following line:
[edit] Cursor
<cursor name="main" type="<type>"/>
The cursor <type> can be: minimize, close, maximize, arrow, add and others which I dont know, it is irrelevent, as it doesn't do anything, and never will - it was there as a planned addition that never got added.
