You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Tim Boudreau <ni...@gmail.com> on 2019/10/17 22:54:29 UTC

List of dark and light theme names

I've got a weird query:  I need to compile a list of all the popular light
and dark editor themes for NetBeans - but, very specifically, the name of
the folder in Editors/FontsColors in the system filesystem, not the
localized display name.

If you run a custom editor theme that's installed by a module, could you
take a look (say, in the NetBeans Runtime Explorer module, or in your
userdir if you've modified some settings of the theme so there's actually
something there) and let me know?

Here's the problem I want to solve:  With the
create-a-full-language-plugin-from-an-Antlr-grammar-and-a-few-annotations
modules I've been working on, you define editor colorings in an
annotation.  Typically, you want one set of colors for bright backgrounds
and another for dark backgrounds, so it lets you define an array of
colorings tied to editor theme folder names, like this:

    @HighlighterKeyRegistration(mimeType = ANTLR_MIME_TYPE, order = 2000,
positionInZOrder = 2900,
            colors = @ColoringCategory(name = "alternatives",
                    colors = {
                        @Coloration(
                                themes = {"NetBeans", "NetBeans55",
"NetbeansEarth", "Tan", "NetBeans_Solarized_Light" },
                                bg = {255, 255, 200},
                                bold = true,
                                italic = true
                        ),
                        @Coloration(
                                themes = {"NetBeans_Solarized_Dark",
"BlueTheme", "Darcula", "CityLights"},
                                bg = {80, 40, 40},
                                bold = true,
                                italic = true
                        )}))
    public static final NamedRegionKey<RuleTypes> NAMED_ALTERNATIVES =
NamedRegionKey.create("alternatives", RuleTypes.class);

(this is an annotation to provide semantic highlighting, but you do the
same thing for specific  token categories).  You can see above the ones
I've already got.

Thanks,

Tim

--
http://timboudreau.com