Not logged in. · Lost password · Register
Forum: Community Feature Requests RSS
Customizable text color in history

Announcement

11-16-2005, 13:33 by halr9000
Subject: Psi Groupchat (new address)
Join us at the Psi Groupchat (MUC)! Room name: psi@conference.psi-im.org
Avatar
Shura #1
Member since 10/2007 · 64 posts · Location: Russia
Group memberships: Members
Show profile · Link to this post
Subject: Customizable text color in history
I use dark theme of QT programs. In window 'history' opponent text displays with blue color and it is not readable.
Please add option for manual setup of text color in 'history'.
JID:  [Image: http://netlab.cz/status/?jid=shura0@ya.ru&ib=psi]shura0@ya.ru
The author has attached one file to this post:
psi_his.jpg | Save   15.6 kBytes
Image
Avatar
michalj (Moderator) #2
Member since 04/2004 · 2299 posts · Location: Legionowo, Poland
Group memberships: Global Moderators, Members
Show profile · Link to this post
More visual customization is planned in a future release, maybe even in 0.12.
Michał Jazłowiecki (michalj)
Psi Forum & Wiki Moderator :: Psi-Daisy Author
Avatar
Shura #3
Member since 10/2007 · 64 posts · Location: Russia
Group memberships: Members
Show profile · Link to this post
Thank you.
JID:  [Image: http://netlab.cz/status/?jid=shura0@ya.ru&ib=psi]shura0@ya.ru
Avatar
Shura #4
Member since 10/2007 · 64 posts · Location: Russia
Group memberships: Members
Show profile · Link to this post
I wrote a patch for add this feature in program. It add two options in dialog 'Options->Appearance' for color choose. Also I add more options in config file, in section <colors> - 'historyto' and 'historyfrom'.

For apply this patch run next command:
cd psi-0.11RC3
patch -p1 < history_color.path
JID:  [Image: http://netlab.cz/status/?jid=shura0@ya.ru&ib=psi]shura0@ya.ru
The author has attached one file to this post:
history_color.patch | Save   6.4 kBytes, downloaded 38 times
Avatar
Shura #5
Member since 10/2007 · 64 posts · Location: Russia
Group memberships: Members
Show profile · Link to this post
Screenshot
JID:  [Image: http://netlab.cz/status/?jid=shura0@ya.ru&ib=psi]shura0@ya.ru
The author has attached one file to this post:
app.jpg | Save   46.8 kBytes
Image
Avatar
Kev (Administrator) #6
User title: Project Lead
Member since 11/2002 · 3063 posts · Location: Exeter, UK
Group memberships: Administrators, Developers, Members
Show profile · Link to this post
Thanks, I'll have a look at this.
Psi Project Leader.
Homepage, including development blog
Avatar
Trejkaz #7
Member since 11/2002 · 286 posts · Location: Sydney, NSW, Australia
Group memberships: Members
Show profile · Link to this post
Maybe it would make more sense if it just uses the same colour that's used for the chat window itself (both the same foreground and the same background.)  That way as long as the chat window is readable the history is readable, plus it kind of preserves the original look of the message.
Avatar
Shura #8
Member since 10/2007 · 64 posts · Location: Russia
Group memberships: Members
Show profile · Link to this post
Yes, I see what in chat dialog nickname colors are hardcoded (blue and red).
I change code on chatdlg.cpp in function void ChatDlg::appendMessage(const Message &m, bool local)
    if(local) {
        who = d->pa->nick();
        color = option.color[cHistoryTo].name();
    }
    else {
        who = d->dispNick;
        color = option.color[cHistoryFrom].name();
    }
Now these colors are customizable :)
JID:  [Image: http://netlab.cz/status/?jid=shura0@ya.ru&ib=psi]shura0@ya.ru
Avatar
Shura #9
Member since 10/2007 · 64 posts · Location: Russia
Group memberships: Members
Show profile · Link to this post
Here is patch for version 0.12
Now it use options
options.ui.look.colors.nick.to and options.ui.look.colors.nick.from for colors store
JID:  [Image: http://netlab.cz/status/?jid=shura0@ya.ru&ib=psi]shura0@ya.ru
The author has attached one file to this post:
nick_colors.diff | Save   6.3 kBytes, downloaded once
Sterkrig #10
User title: gentoosiast
Member since 08/2006 · 66 posts · Location: Rampova, Inkerimaa
Group memberships: Members
Show profile · Link to this post
Hope to see it in trunk for 0.13 (-:E
Close Smaller – Larger + Reply to this post:
Smilies: :mellow: :huh: ^_^ :o ;) :P :D :lol: B) :rolleyes: -_- <_< :) :wub: :angry: :( :unsure: :wacko: :blink: :ph34r:
Special characters:
Go to forum
Unclassified NewsBoard devel of 20051113 © 2003-5 by Yves Goergen
Current time: 01-06-2009, 03:15:01 (UTC -05:00)