Recaf icon indicating copy to clipboard operation
Recaf copied to clipboard

Light theme option

Open stevenxxiu opened this issue 1 year ago • 8 comments

From my previous issue #779, I saw that v2 wasn't supported anymore. I tried the latest commit in the dev4 branch, 9653c529563500a37286cd7f395c23f27ad22d8d, today, but found no theme option.

Could there be a light theme?

I understand you prefer dark themes, but there's people who prefer light themes too. It'll make this so much easier to use.

stevenxxiu avatar Apr 28 '24 15:04 stevenxxiu

I made a few patches to get light theme working. The patched files are:

  • recaf-ui/src/main/resources/style/code-editor.css
  • recaf-ui/src/main/resources/style/recaf.css
  • recaf-ui/src/main/resources/style/tweaks.css
  • recaf-ui/src/main/resources/syntax/

The syntax highlighting colors use Catppuccin Latte colors, except for Javadoc.

Maybe there could be an option to use a custom theme via CSS files? This way the theme doesn't have to be hardcoded.

A screenshot of what my patches look like:

recaf_light_theme

stevenxxiu avatar Jul 17 '24 16:07 stevenxxiu

Eventually we'll add file watching in the style directory and re-apply changes to windows, but its not been a priority item.

Col-E avatar Jul 17 '24 21:07 Col-E