Bug 190851 - Allow to customize fonts and colors for all messages views
Summary: Allow to customize fonts and colors for all messages views
Status: RESOLVED WONTFIX
Alias: None
Product: ECF
Classification: RT
Component: ecf.ui (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 1.2.0   Edit
Assignee: Jacek Pospychala CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, contributed, helpwanted
Depends on:
Blocks:
 
Reported: 2007-06-04 13:29 EDT by Eugene Kuleshov CLA
Modified: 2014-02-12 15:31 EST (History)
4 users (show)

See Also:


Attachments
initial patch (6.18 KB, patch)
2007-08-29 18:05 EDT, Jacek Pospychala CLA
no flags Details | Diff
more fun (13.28 KB, patch)
2007-08-31 12:12 EDT, Jacek Pospychala CLA
no flags Details | Diff
colors and fonts (19.30 KB, patch)
2007-09-01 11:28 EDT, Jacek Pospychala CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Kuleshov CLA 2007-06-04 13:29:44 EDT
Allow to customize fonts and colors for all messages views. They should be editable from General / Appearance / Colors  and Fonts and configuration.
Comment 1 Scott Lewis CLA 2007-07-24 19:16:58 EDT
Setting bugday and target milestone.  
Comment 2 Jacek Pospychala CLA 2007-08-29 18:05:47 EDT
Created attachment 77315 [details]
initial patch

Hello,
this initial patch moves all colors previously hardcoded in org.eclipse.ecf.presence.ui.chatroom.MessageRenderer to org.eclipse.ui.themes extension point and makes them available for customization in Window -> Preferences -> General -> Appearance -> Fonts and Colors

The patch has only colors, fonts need to be added.

but please assign to me for bugday.

All message views will hopefully use MessageRenderer after bug 183027 is fixed.
Comment 3 Scott Lewis CLA 2007-08-29 18:19:25 EDT
Thanks Jacek.  It's already assigned to you for upcoming bugday.  I won't be able to apply and check the patch before 8/31/2007 bugday, so (zx) if you can/want to check it out and in please do.  Otherwise, I will get to it after 8/31/2007.

Comment 4 Remy Suen CLA 2007-08-31 11:11:21 EDT
Hi Jacek, I have tested this against IRC's nick recognition capability and it does work. However, changing the colours in the preference page does not update existing StyleRanges.
Comment 5 Jacek Pospychala CLA 2007-08-31 11:20:54 EDT
Thanks Remy, I think that changes are applied after next message view is created, i'll check what it.

I am just cleaning up a bit the patch, and i think typical user needs to change:
1. background color
2. received messages font/color
3. sent messages font/color
4. received messages that should be highlighted font/color
5. system messages font/color


Comment 6 Jacek Pospychala CLA 2007-08-31 12:12:37 EDT
Created attachment 77478 [details]
more fun

this patch brings more fun - fonts.
and fixes what Remy pointed out.
Sorry to say, but again it's unfinished - I have to leave office now - but there are few more things to do, like background color.
Comment 7 Remy Suen CLA 2007-08-31 15:59:52 EDT
(In reply to comment #6)
> this patch brings more fun - fonts.
> and fixes what Remy pointed out.

I'm still getting no updates. The scenario I was describing in comment #4 is as follows:
-login and join a channel
-have someone say your name, the text shows up as red (the default)
-go to preferences
-change highlighting colour from red to blue
-click apply, move the dialog, the text is still red
-click ok, the text is still red

The change does get picked up if I disconnect and reconnect though, yes.

> Sorry to say, but again it's unfinished - I have to leave office now - but
> there are few more things to do, like background color.

You weren't kidding about this one. I was shocked to see the date and originator "prefix" of the image show up as black highlighting since the default background colour is black. ;)
Comment 8 Jacek Pospychala CLA 2007-09-01 02:26:08 EDT
Oh I see, unfortunately changes will be applied to newly added text only. It's impossible to update chat history, as messages are not stored anywhere, but simply thrown to SWT StyledText.

Maybe it would be good to have some model of history, also for later browsing.
Ah it's already reported in bug 177014 and 177020, but does it work now?
Comment 9 Jacek Pospychala CLA 2007-09-01 11:28:36 EDT
Created attachment 77530 [details]
colors and fonts

Take a look at this. Colors and fonts work quite nice now. I've added /me option to be configurable too.
Comment 10 Scott Lewis CLA 2007-09-01 13:13:02 EDT
(In reply to comment #8)
> Oh I see, unfortunately changes will be applied to newly added text only. It's
> impossible to update chat history, as messages are not stored anywhere, but
> simply thrown to SWT StyledText.
> 
> Maybe it would be good to have some model of history, also for later browsing.
> Ah it's already reported in bug 177014 and 177020, but does it work now?
> 

We have a history API/model, but it's not been implemented yet by any presence provider.  Danila Ermakov had offered at one point to provide an implementation, but we haven't seen it yet.
Comment 11 Remy Suen CLA 2007-09-01 22:18:30 EDT
(In reply to comment #8)
> Oh I see, unfortunately changes will be applied to newly added text only. It's
> impossible to update chat history, as messages are not stored anywhere, but
> simply thrown to SWT StyledText.

I don't think accessing the history is the right way to resolve this issue. At any rate, I feel that we can defer this minor nuance to bug 183027.

(In reply to comment #9)
> Created an attachment (id=77530) [details]
> colors and fonts
> 
> Take a look at this. Colors and fonts work quite nice now. I've added /me
> option to be configurable too.

Committed to CVS HEAD. Thanks for the patch, Jacek!
Comment 12 Jacek Pospychala CLA 2007-09-20 11:19:30 EDT
sorry I forgot this is still NEW. I am used to the rule that committers mark as fixed
Comment 13 Remy Suen CLA 2007-09-20 11:21:53 EDT
(In reply to comment #12)
> sorry I forgot this is still NEW. I am used to the rule that committers mark as
> fixed

It is good that you are used to the rule because it isn't fixed. ;) The 'Messages' view currently does not leverage this capability. Reopening.
Comment 14 Scott Lewis CLA 2014-02-12 15:31:40 EST
No resources available for this enhancement.  If resources become available, please feel free to reopen.