krasa / GrepConsole

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7125
Apache License 2.0
436 stars 57 forks source link

Different log highlighting themes depending on IDE theme. #177

Closed kuznecc closed 2 years ago

kuznecc commented 4 years ago

Is your feature request related to a problem? Please describe. The default log-level based highlighting colors look great with the Darcula theme, but it makes the text unreadable with any light theme.

Describe the solution you'd like The plugin has an option to switch between profiles. It'll be great to add automatic profile switching regarding which IDE theme is currently active. Actually I can set the 'default profile'. Add an option to set 'default profile for theme '%theme_name%'.

Additional context The plugin has a very neat 'log level based highlighting' functionality that helps me a lot. But the same highlighting applies regardless of which IDE theme is currently active. The default colors look great with the Darcula theme, but it makes the text unreadable with any light theme.

I have to switch between IDE themes regarding the environment or day time. As a result 50% of the day the plugin makes my life easier, but the other 50% aren't preasing in any way.

krasa commented 4 years ago

You could backup your config using Ctrl+C, switch to a light theme and Reset to default to get a light theme config, then paste back the previous config and manually switch between them.

Maybe I could change the default to: image

and have @Profile@ apply dynamically.

kuznecc commented 4 years ago

@krasa thanks for workaround. I played a bit with it and found that I open the plugin settings with IDE settings (preferences/other settings/grep console), press 'reset to default' and press 'apply', then nothing happens. But if I'll reach the plugin setting with a right-click on an 'output window' and do the same, then the changed settings will be successfully applied to the text.

Will be very nice if you'll found a time to implement the automatic switching. :)

krasa commented 4 years ago

that is by design, probably because of performance reasons :) image maybe I should change it