miniplayer icon indicating copy to clipboard operation
miniplayer copied to clipboard

Reset color data when program exits

Open vide0hanz opened this issue 1 year ago • 6 comments

Hey again, I noticed that when I have colors set to auto in the config file, these colors tend to persist and bleed into other TUI apps that are launched from within the same terminal, ie ncmpcpp

  • running miniplayer, colors get applied based on artwork: image

  • running ncmpcpp, colors which miniplayer applied persist: image

I'm not 100% on this, but I believe ColorThief applies colors via escape sequences, which would probably explain why this happens. I suspect that if there is a way to clear all color values set by miniplayer once the program exits that this would no longer occur. Would sourcing colors from xresources upon exit be a good idea?

What do you think?

vide0hanz avatar Jan 08 '23 22:01 vide0hanz