weisJ / darklaf-extensions

Extensions for the Darklaf Look and Feel
MIT License
5 stars 0 forks source link

RSyntaxTextArea theme not applied correctly #2

Open octo-kumo opened 2 months ago

octo-kumo commented 2 months ago

Text color is not correct. image

DarkRSyntaxTheme syntaxTheme = new DarkRSyntaxTheme(editor, Theme.load(
                    MainFrame.class.getResourceAsStream("/org/fife/ui/rsyntaxtextarea/themes/dark.xml")));
syntaxTheme.apply(editor);
LafManager.addThemeChangeListener((ThemeInstalledListener) e -> syntaxTheme.apply(editor));

Applying the theme without DarkRSyntaxTheme wrapper works. image

weisJ commented 2 months ago

Haven’t looked at the code for while. On a hunch I guess that it is because the constructor you are using is not actually supported. I will have a look.