Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] New topic in forum Eclipse Communications Framework (ECF), called How-to use css to customise ECF views ?, by Bernard SARTER

Title: Eclipse Community Forums
Subject: How-to use css to customise ECF views ? Author: Bernard SARTER Date: Sun, 22 December 2013 16:56
Hello,

I have a RCP app, that includes some ECF view (chat room); it works fine.

I would like to customise the fonts of the messages visible in the chat room windows, if possible through a css file (Eclipse Theme).

According to the code of MessageRenderer.java, ECF does something like this (I simplified the code):

String RECEIVED_FONT = "org.eclipse.ecf.presence.ui.receivedFont";
(...)
ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme();
Font f = theme.getFontRegistry().get(RECEIVED_FONT);
(...)


Now my question is: what shall I add to my css file to change the font ?

I tried

#org.eclipse.ecf.presence.ui.receivedFont {
	font-size: 16;
	font-family: 'Arial';
}


but it had no effect (and I admit that I'm not a css expert).

Any suggestion welcome,

Best regards,
Bernard.
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top