Skip to content
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

colorize output in web ui #74

Open
mark-pictor-csec opened this issue Apr 3, 2024 · 1 comment
Open

colorize output in web ui #74

mark-pictor-csec opened this issue Apr 3, 2024 · 1 comment

Comments

@mark-pictor-csec
Copy link

Related to #3 . It'd be nice for the diff output in the ui to be colorized.

I can think of a couple ways of doing this:

  • one would be to have the wasm version of the tool produce html output
  • another would be to postprocess the output with javascript, turning it into html

Either way, css would be needed for coloring, as well as a radio button to turn on/off.

While you're fiddling with radio buttons and css, it'd also be nice to have a dark theme 😉

@josephburnett
Copy link
Owner

@mark-pictor-csec yes, color in the UI would be great. The UI is just some Golang code that compiles to WASM. The main binds a bunch of callbacks to an existing HTML framework. I could do the HTML rendering in that code too, and include inline colors in each element.

Next time I work on the UI I'll see what I can do. And for the dark theme too ;) Honestly rebuilding the UI from scratch might be a better approach since what we have now is pretty rough around the edges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants