Page 1 of 1

Change Editor tab foregroung/background color

Posted: Wed Sep 16, 2015 12:04 pm
by sebastienlavandier
Hello,

I want to know if is it possible to change something like foreground color or background color of an editorTab ?
That is for detect more easily which editor Tab is editable or not.

Thanks in advance for your help.
Sébastien.L

Re: Change Editor tab foregroung/background color

Posted: Wed Sep 16, 2015 2:25 pm
by Radu
Hi Sébastien,

Right now we only have this API:

Code: Select all


ro.sync.exml.workspace.api.editor.WSEditorBase.setEditorTabText(String)
All editors are placed in a JTabbedPane. Maybe starting from the API ro.sync.exml.workspace.api.editor.page.author.WSAuthorEditorPage.getAuthorComponent() you could navigate up on the Swing components, find the tabbed pane and use:

Code: Select all

javax.swing.JTabbedPane.setBackgroundAt(int, Color)
Regards,
Radu