------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=136400
Summary: Allow to assign color to contact used for %senderColor%
key in chat style
Product: kopete
Version: unspecified
Platform: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: wishlist
Priority: NOR
Component: general
AssignedTo: kopete-devel kde org
ReportedBy: dd accentsolution com
Version: 0.12.3 (using KDE 3.5.5 "release 19.1" , openSUSE )
Compiler: Target: i586-suse-linux
OS: Linux (i686) release 2.6.16.21-0.25-default
I am trying to use %senderColor% in a chat style. The docs seem to imply (to
me) it takes a color from an extension or a setting of sort, which I can
seemingly control.
Quote:
" %senderColor%, %senderColor{N}% (Kopete extension)
Generate a color from the sender contact id. Can be used to display a
different color for contact nickname. "
(http://kopete.kde.org/chatwindowstyleguide/index.html#chatstyle-reference-guide)
Then, read the code and found out what the statement above means and why any
new chat window gives me new psychedelic colors:
// These colors are used for coloring nicknames. I tried to use
// colors both visible on light and dark background.
static const char* const nameColors[] =
{ (list of color names)};
static .. getting size of color list
// hash contactId to deterministically pick a color for the contact
for(... hash = arriving at a random number based on contact ID
color = QColor( nameColors[ hash % nameColorsLen ] ).name();
while(.. searching for %senderColor% and replacing with %color%
(http://websvn.kde.org/branches/KDE/3.5/kdenetwork/kopete/kopete/chatwindow/chatmessagepart.cpp)
Any plans on actually making this color definable in the preferences of the
contact?
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel