nowe mozliwosci pliku stylu (.kiev)
CODE
<?xml version="1.0" encoding="Windows-1250"?>
<kieviewtheme>
<info>
<name>Domyślny</name>
<author>nix (based on ArkCrystal by Arkadyjczyk)</author>
<url>http://www.konnekt.info/</url>
<comment>Styl okna rozmowy - modyfikacja stylu kStyle</comment>
</info>
<fonts>
<font name="body" face="Tahoma" size="-11" style="" color="#002953" bg="#fffff0"/>
<font name="send_body" face="Tahoma" size="-11" style="" color="#666666" bg="#fffff0"/>
<font name="send_nick" face="Tahoma" size="-9" style="b" color="#ff0000"/>
<font name="send_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="send_info" face="Tahoma" size="-9" style="i" color="#808080"/>
<font name="send_link" face="Tahoma" size="-11" style="" color="#000080"/>
<font name="recv_body" face="Tahoma" size="-11" style="" color="#000000" bg="#fffdcc"/>
<font name="recv_nick" face="Tahoma" size="-9" style="b" color="#4169e1"/>
<font name="recv_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="recv_info" face="Tahoma" size="-9" style="i" color="#808080"/>
<font name="recv_link" face="Tahoma" size="-11" style="" color="#000080"/>
<font name="status_body" face="Tahoma" size="-9" style="" color="#2b8f00" bg="#f0f0f0"/>
<font name="status_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="qe_norm_body" face="Tahoma" size="-9" style="" color="#002953" bg="#f9f7c6"/>
<font name="qe_norm_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="qe_warn_body" face="Tahoma" size="-9" style="b" color="#cc0000" bg="#f9f7c6"/>
<font name="qe_warn_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="match" face="Tahoma" size="-11" style="" color="#ff0000" bg="#ffffff"/>
<font name="cntlist_normal" face="Tahoma" size="-11" style="" color="#500000" bg="#ffffc6"/>
<font name="cntlist_select" face="Tahoma" size="-11" style="b" color="#fff8ea" bg="#bf5200"/>
</fonts>
<colors>
<color name="border_normal" color="#cccccc" size="1"/>
<color name="border_next" color="#cccccc" size="0"/>
<color name="border_event" color="#e9e7b6" size="1"/>
<color name="border_status" color="#cccccc" size="1"/>
</colors>
<style>
<![CDATA[
body { margin:0; border:0; word-wrap:break-word; font-size: 6px; [body:bg|color|face|style]; }
img { margin:1px; }
.send, .sendnext { padding: 3px; [send_body:bg] }
.send { [border:size|color] }
.send .header { [send_nick:color|face|size] font-weight: normal; }
.sendnext { [border_next:size|color] }
.send .nick, .sendnext .nick { [send_nick:color|face|size|style] padding-right: 5px; }
.send .time, .sendnext .time { [send_time:color|face|size|style] padding-right: 5px; }
.send .info, .sendnext .info { [send_info:color|face|size|style] }
.send .body, .sendnext .body { [send_body:color|face|size|style] padding-left: 10px; }
.send .linknormal, .sendnext .linknormal,
.send .linkhover, .sendnext .linkhover { [send_link:color|face|size|style]
cursor: hand; text-decoration:underline; }
.recv, .recvnext { padding: 3px; [recv_body:bg] }
.recv { [border:size|color] }
.recv .header { [recv_nick:color|face|size] font-weight: normal; }
.recvnext { [border_next:size|color] }
.recv .nick, .recvnext .nick { [recv_nick:color|face|size|style] padding-right: 5px; }
.recv .time, .recvnext .time { [recv_time:color|face|size|style] padding-right: 5px; }
.recv .info, .recvnext .info { [recv_info:color|face|size|style] }
.recv .body, .recvnext .body { [recv_body:color|face|size|style] padding-left: 10px; }
.recv .linknormal, .recvnext .linknormal,
.recv .linkhover, .recvnext .linkhover { [recv_link:color|face|size|style]
cursor: hand; text-decoration:underline; }
.mark { [mark:color|face|size|style|bg] }
.qinfo { [qe_norm_body:bg] [border_event:size|color] padding: 3px; }
.qinfo .time { [qe_norm_time:color|face|size|style] }
.qinfo .body { [qe_norm_body:color|face|size|style] }
.qwarn { [qe_warn_body:bg] [border_event:size|color] padding: 3px; }
.qwarn .time { [qe_warn_time:color|face|size|style] }
.qwarn .body { [qe_warn_body:color|face|size|style] }
.status { [status_body:bg] [border_status:size|color] padding: 3px; }
.status .time { [status_time:color|face|size|style] }
.status .body { [status_body:color|face|size|style] }
]]>
</style>
<templates>
<template name="send">
<![CDATA[
<div class="send">
<div class="header">
<span class="nick">[nick]:</span>
<span class="time">([time])</span>
[if:info]<span class="info">[info]</span>[endif]
</div>
<div class="body">[body]</div>
</div>
]]>
</template>
<template name="sendnext">
<![CDATA[
<div class="sendnext">
[if:nick|time|info]<div class="header">
[if:nick]<span class="nick">[nick]:</span>[endif]
[if:time]<span class="time">([time])</span>[endif]
[if:info]<span class="info">[info]</span>[endif]
</div>[endif]
<div class="body">[body]</div>
</div>
]]>
</template>
<template name="recv">
<![CDATA[
<div class="recv">
<div class="header">
<span class="nick">[nick]:</span>
<span class="time">([time])</span>
[if:info]<span class="info">[info]</span>[endif]
</div>
<div class="body">[body]</div>
</div>
]]>
</template>
<template name="recvnext">
<![CDATA[
<div class="recvnext">[if:nick|time|info]<div class="header">
[if:nick]<span class="nick">[nick]:</span>[endif]
[if:time]<span class="time">([time])</span>[endif]
[if:info]<span class="info">[info]</span>[endif]
</div>[endif]<div class="body">[body]</div>
</div>
]]>
</template>
<template name="status">
<![CDATA[<div class="status"><span class="time">[time]</span>
<span class="body">[body]</span></div>]]>
</template>
<template name="qe_norm">
<![CDATA[<div class="qinfo"><span class="time">[time]</span>
<span class="body">[body]</span></div>]]>
</template>
<template name="qe_warn">
<![CDATA[<div class="qwarn"><span class="time">[time]</span>
<span class="body">[body]</span></div>]]>
</template>
<template name="header">
<![CDATA[ ]]>
</template>
<template name="footer">
<![CDATA[ ]]>
</template>
</templates>
</kieviewtheme>
i dodatkowy przyklad wykozystujacy inne mozliwosci:
CODE
<?xml version="1.0" encoding="Windows-1250"?>
<kieviewtheme>
<info>
<name>Testowy</name>
<author>nix</author>
<url>http://www.konnekt.info/</url>
<comment>Testowy styl wyglądu okna rozmowy</comment>
</info>
<fonts>
<font name="body" face="Tahoma" size="-11" style="" color="#002953" bg="#fffff0"/>
<font name="send_body" face="Tahoma" size="-11" style="" color="#666666" bg="#fffff0"/>
<font name="send_nick" face="Tahoma" size="-9" style="b" color="#ff0000"/>
<font name="send_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="send_info" face="Tahoma" size="-9" style="i" color="#808080"/>
<font name="send_link" face="Tahoma" size="-11" style="" color="#000080"/>
<font name="recv_body" face="Tahoma" size="-11" style="" color="#000000" bg="#fffdcc"/>
<font name="recv_nick" face="Tahoma" size="-9" style="b" color="#4169e1"/>
<font name="recv_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="recv_info" face="Tahoma" size="-9" style="i" color="#808080"/>
<font name="recv_link" face="Tahoma" size="-11" style="" color="#000080"/>
<font name="status_body" face="Tahoma" size="-9" style="" color="#2b8f00" bg="#f0f0f0"/>
<font name="status_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="qe_norm_body" face="Tahoma" size="-9" style="" color="#002953" bg="#f9f7c6"/>
<font name="qe_norm_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="qe_warn_body" face="Tahoma" size="-9" style="b" color="#cc0000" bg="#f9f7c6"/>
<font name="qe_warn_time" face="Tahoma" size="-9" style="" color="#808080"/>
<font name="match" face="Tahoma" size="-11" style="" color="#ff0000" bg="#ffffff"/>
<font name="cntlist_normal" face="Tahoma" size="-11" style="" color="#500000" bg="#ffffc6"/>
<font name="cntlist_select" face="Tahoma" size="-11" style="b" color="#fff8ea" bg="#bf5200"/>
</fonts>
<colors>
<color name="border_normal" color="#cccccc" size="1"/>
<color name="border_next" color="#cccccc" size="0"/>
<color name="border_event" color="#e9e7b6" size="1"/>
<color name="border_status" color="#cccccc" size="1"/>
</colors>
<style>
<![CDATA[
body { margin:0; border:0; word-wrap:break-word; font-size: 6px; [body:bg|color|face|style]
[bgimage:all] }
img { margin:1px; }
.send, .sendnext { padding: 3px; }
.send { [border:size|color] }
.send .header { [send_nick:color|face|size] font-weight: normal; }
.sendnext { [border_next:size|color] }
.send .nick, .sendnext .nick { [send_nick:color|face|size|style] padding-right: 5px; }
.send .time, .sendnext .time { [send_time:color|face|size|style] padding-right: 5px; }
.send .info, .sendnext .info { [send_info:color|face|size|style] }
.send .body, .sendnext .body { [send_body:color|face|size|style] padding-left: 10px; }
.send .linknormal, .sendnext .linknormal,
.send .linkhover, .sendnext .linkhover { [send_link:color|face|size|style]
cursor: hand; text-decoration:underline; }
.recv, .recvnext { padding: 3px; }
.recv { [border:size|color] }
.recv .header { [recv_nick:color|face|size] font-weight: normal; }
.recvnext { [border_next:size|color] }
.recv .nick, .recvnext .nick { [recv_nick:color|face|size|style] padding-right: 5px; }
.recv .time, .recvnext .time { [recv_time:color|face|size|style] padding-right: 5px; }
.recv .info, .recvnext .info { [recv_info:color|face|size|style] }
.recv .body, .recvnext .body { [recv_body:color|face|size|style] padding-left: 10px; }
.recv .linknormal, .recvnext .linknormal,
.recv .linkhover, .recvnext .linkhover { [recv_link:color|face|size|style]
cursor: hand; text-decoration:underline; }
.mark { [mark:color|face|size|style|bg] }
.qinfo { [qe_norm_body:bg] [border_event:size|color] padding: 3px; }
.qinfo .time { [qe_norm_time:color|face|size|style] }
.qinfo .body { [qe_norm_body:color|face|size|style] }
.qwarn { [qe_warn_body:bg] [border_event:size|color] padding: 3px; }
.qwarn .time { [qe_warn_time:color|face|size|style] }
.qwarn .body { [qe_warn_body:color|face|size|style] }
.status { [status_body:bg] [border_status:size|color] padding: 3px; }
.status .time { [status_time:color|face|size|style] }
.status .body { [status_body:color|face|size|style] }
]]>
</style>
<vars>
<var name="imie" value="6">
<var name="nazwisko" value="7">
</vars>
<templates>
<template name="send">
<![CDATA[
<div class="send">
<div class="header">
<span class="nick">[nick]: [[imie] [nazwisko]]</span>
<span class="time">([time])</span>
[if:info]<span class="info">[info]</span>[endif]
</div>
<div class="body">[body]</div>
</div>
]]>
</template>
<template name="sendnext">
<![CDATA[
<div class="sendnext">
[if:nick|time|info]<div class="header">
[if:nick]<span class="nick">[nick]:</span>[endif]
[if:time]<span class="time">([time])</span>[endif]
[if:info]<span class="info">[info]</span>[endif]
</div>[endif]
<div class="body">[body]</div>
</div>
]]>
</template>
<template name="recv">
<![CDATA[
<div class="recv">
<div class="header">
<span class="nick">[nick]:</span>
<span class="time">([time])</span>
[if:info]<span class="info">[info]</span>[endif]
</div>
<div class="body">[body]</div>
</div>
]]>
</template>
<template name="recvnext">
<![CDATA[
<div class="recvnext">[if:nick|time|info]<div class="header">
[if:nick]<span class="nick">[nick]:</span>[endif]
[if:time]<span class="time">([time])</span>[endif]
[if:info]<span class="info">[info]</span>[endif]
</div>[endif]<div class="body">[body]</div>
</div>
]]>
</template>
<template name="status">
<![CDATA[<div class="status"><span class="time">[time]</span>
<span class="body">[body]</span></div>]]>
</template>
<template name="qe_norm">
<![CDATA[<div class="qinfo"><span class="time">[time]</span>
<span class="body">[body]</span></div>]]>
</template>
<template name="qe_warn">
<![CDATA[<div class="qwarn"><span class="time">[time]</span>
<span class="body">[body]</span></div>]]>
</template>
<template name="header">
<![CDATA[<div class="qinfo"><span class="body">Początek</span></div>]]>
</template>
<template name="footer">
<![CDATA[<div class="qinfo"><span class="body">Koniec</span></div>]]>
</template>
</templates>
</kieviewtheme>