memray icon indicating copy to clipboard operation
memray copied to clipboard

Dark Mode for Flame graph reports

Open jcarnaxide opened this issue 1 year ago • 2 comments

Is there an existing proposal for this?

  • [X] I have searched the existing proposals

Is your feature request related to a problem?

I have an issue when looking at Flame graphs, especially in a dark room, and would like to reduce white light to my eyes.

Describe the solution you'd like

I would love if generated Flame graphs had some sort of toggle at the top of the HTML file which could switch between Light/Dark mode.

Something else to consider would be to attempt to read the machine default value for Light/Dark mode, and initializing Flame graphs to this value.

Alternatives you considered

There are some plugins out there that attempt to auto convert web pages out there that don't support Dark Mode. I am not sure that I have tried one of these with a flame graph, but I could give it a whirl if we think it's worth it.

jcarnaxide avatar Jul 24 '24 00:07 jcarnaxide

Are you interested in contributing this feature @jcarnaxide ?

pablogsal avatar Jul 25 '24 10:07 pablogsal

Yes I would be interested in contributing this @pablogsal

jcarnaxide avatar Jul 25 '24 13:07 jcarnaxide