Community
Participate
Working Groups
It would be handy if Eclemma's color preferences were also exposed as color definitions, in particular when writing custom Eclipse themes. Attached is a screenshot with on top the IEclipsePreferences attribute that must currently be specified to modify the colors. The preferences are opaque strings which are harder to work with. On the bottom is the alternative approach that would become possible if the preferences had a color definition associated with them. This results in clean and flexible CSS that integrates nicely with editors: no warnings, different color formats supported, color preview, direct edition via the system's color selector, etc. You can make use of richer CSS features, such as combining attributes, referencing a different attribute, etc. As a similar example, JDT UI exposes all of its color preferences via color definitions: https://github.com/eclipse/eclipse.jdt.ui/blob/c385b31c51214389d5092c34d2d58eeab011be16/org.eclipse.jdt.ui/plugin.xml#L6484
Created attachment 283509 [details] Theme CSS