![Obihai Technology OBi1032 Administration Manual Download Page 155](http://html2.mh-extra.com/html/obihai-technology/obi1032/obi1032_administration-manual_3151346155.webp)
Copyright 2010-2017 Obihai Technology, Inc.
155
the attribute id="pres".
$item.buddy.number
<style> and all its childs
The buddy’s telephone number if the <item> referencing the
<style> has the attribute id="pres".
$item.buddy.status
<style> and all its childs
The buddy’s status (an arbitrary string) if the <item>
referencing the <style> has the attribute id="pres".
$eval
<style> and all its childs
Example
<MainMenuItemStyles>
<style id='default' hlimg=''>
<label align='center' xpos='0' width='80'/>
<label2 hidden='1'/>
<icon hidden='1'/>
<icon2 hidden='1'/>
</style>
<style id='pres' bgimg='
@imgdir/pres_mm.png
' hlimg=''>
<label align='center' font='@gfont-bold' textcolor='0xffffff' hltextcolor='0xffff00'/>
<label2 hiddend='1'/>
<icon align='center' width='44' height='44' align='center'
src='
$eval($item.buddy.picture!=?
/media/ram/$item.buddy.picture:@imgdir/mm_person.png)
'/>
<icon2 xpos='50' ypos='38' width='16' height='16'
src='
@imgdir/mm_pres_$(item.buddy.presence).png
'/>
</style>
</MainMenuItemStyles>
Title Bar Customization
The Title Bar can be customized by specifying a valid <TitleBarStyle> XML in the
TitleBarStyle
parameter. The
general structure is:
<
TitleBarStyle
attributes...
>
<!--
0 or more widgets: such as time, date, text, img, ...
--
>
<
Notifications
attributes...
> <!-- optional -->
<!--
0 or more notification elements, such as dnd, cfa, ...
-->
</
Notifications
>
<
LineKeyTabs
attributes...
>
<!-- optional -->
<
tab-style
attributes...
>
</
LineKeyTabs
>
</
TitleBarStyle
>
Here is an example:
<
TitleBarStyle
size
=
'
10
'
textcolor
=
'
green
'
font
=
'
@gfont-bold
'
>
<
time
xpos
=
'
2
'
format
=
"
@timeFmt
"
/>
<
date
xpos
=
'
68
'
format
=
"
@dateFmt
"
/>
<
text
xpos
=
'
2
'
ypos
=
'
16
'
>
$prod.obinumber ($prod.mac)
</
text
>
<
Notifications
list
=
'
*,my-mic,my-trash
'
width
=
'
$eval($sys.hidetabs?@dispW,($sys.ntabs==4)?@lkpg1,@lkpg1v2)
'
align
=
'
right
'
xpos
=
'
0
'
base-url
=
'
http://192.168.15.149/icons/
'
>
<
my-trash
icon
=
'
trash.png
'
refresh-id
=
'
mytrash
'
xspace
=
'
60
'
/>
<
my-mic
icon
=
'
mic.png
'
refresh-id
=
'
mymic
'
xspace
=
'
45
'
/>
</
Notifications
>
</
TitleBarStyle
>
This simple example produces a title bar similar to ones shown below: The first picture shows the result when there are
4 Line Key Tabs with the
Tomáš
skin. The third picture shows the result when the Line Key Tabs are hidden, with the
Tomáš Skin
. The fourth picture shows the result when there are 2 Line Key Tabs, with the Ulrik Skin. Skin is configured
by setting the
User Preferences
::
Skin
parameter, number of Line Key Tabs (2 or 4) is configured by setting the
User