-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on customizing IntelliJ theme through properties file #824
Comments
The problem is that the IntelliJ themes work differently than the core themes:
There is no processing of IntelliJ theme-specific property files. I've tried to change the above processing by converting the JSON theme files to FlatLaf properties, but this causes some problems. This would allow customizing IntelliJ themes and probably also usage in Theme Editor preview. Maybe I'll continue work on this task in the future... Currently, you could use a You need to prefix each property with the theme name. E.g.: [One_Dark]Tree.paintLines = true
[One_Dark]Tree.hash = #00FF00 There is a |
…Theme$ThemeLaf.properties` instead of `ThemeLaf.properties`) (see issue #824)
Thanks a lot for the reply and the update in 3.4.1! |
Greetings! I have a question related to this issue I hope. I am trying to use as a theme from the theme-pack - specifically: Dracula I have a similar challenge I believe, I have the properties file labeled as
however the properties file doesn't load. I am using 3.4.1, here's my POM:
I confirmed the properties file loads if I use either of the main themes:
just not for the intellij type themes like the one I have in my example - FlatDraculaIJTheme. Any suggestions would be greatly appreciated. Hope you have a wonderful day! Thank you for all your efforts and hard-work, keep it up!! :) |
@cleancoda following should work: [Dracula---Zihan_Ma]Button.arc = 9999
[Dracula---Zihan_Ma]Panel.background = #7469B6 The key prefix (enclosed in Line 2 in a311bac
Optionally the Line 4 in a311bac
Here is the code that builds the supported prefixes: FlatLaf/flatlaf-core/src/main/java/com/formdev/flatlaf/IntelliJTheme.java Lines 341 to 344 in a311bac
|
SUCCESS!! That worked beautifully! Thank you so much for such a quick response! |
Hello,
I'm trying to customize my IntelliJ OneDark theme (
com.formdev.flatlaf.intellijthemes.FlatOneDarkIJTheme
) through a properties file, but it doesn't seem to work.I have added 3 properties files in the a
resources/themes
directory:FlatLaf.properties
to apply general theme changesFlatDarculaLaf.properties
to apply changes to another dark theme of my applicationFlatOneDarkIJTheme.properties
to apply changes to the IntelliJ OneDark themeI noticed that changes to
FlatOneDarkIJTheme.properties
have no effect on my OneDark theme. I did notice that changing something inFlatDarculaLaf.properties
affects the OneDark theme (maybe because OneDark extends that theme?).Here's how I initialize my theme:
Here's some content from
FlatDarculaLaf.properties
:Here's content from
FlatOneDarkIJTheme.properties
:Which results in a red tree hash, even though it should be green...
Is it even possible to customize the FlatOneDarkIJTheme because it is a 3rd party plugin? I also noted that in the Theme Editor, the theme preview also remains the standard light theme instead of it switching to the OneDark theme, but maybe that's because only the core themes are supported in the Theme Editor?
Thanks for any help!
The text was updated successfully, but these errors were encountered: