discodos icon indicating copy to clipboard operation
discodos copied to clipboard

Toogle dark mode (m) does not work

Open Samplissimo opened this issue 11 months ago • 2 comments

Image

Samplissimo avatar Jan 24 '25 18:01 Samplissimo

Docs on Textual themes: https://textual.textualize.io/guide/design/#__tabbed_1_5

Somewhere around here to fix/implement in DiscoDOS:

https://github.com/JOJ0/discodos/blob/06b8c25fb90908d8659e27631da723aadf278e00/discodos/ctrl/tui.py#L29-L71

JOJ0 avatar Feb 09 '25 11:02 JOJ0

The Textual docs link posted above suggests to hook into the on_mount method of the Textual application, for discodos this would be here: https://github.com/JOJ0/discodos/blob/06b8c25fb90908d8659e27631da723aadf278e00/discodos/ctrl/tui.py#L276-L279

As a first step of implementing proper theme configuratbility in discodos, I would try if simply hardcoding one of the built-in themes works as suggested in there docs here: https://textual.textualize.io/guide/design/#changing-the-theme

JOJ0 avatar Jun 20 '25 09:06 JOJ0