joncage / ed-scout

An Elite Dangerous companion app to simplify finding unexplored worlds
MIT License
133 stars 18 forks source link

Add Option to Set App Background Color #164

Closed rabbibob closed 3 years ago

rabbibob commented 3 years ago

Would you consider a local override for the background color of the display? I was hoping to permanently set the background of the display to OBS's "green" for the Chroma Key filter to allow EDScout to be run as transparent while streaming. I did see some test_.xml file references in the python code and that made me curious, or perhaps a setting in the appdata config file.

I'd additionally be happy if I could get the EDScout name in the title bar more visible in the OBS Source layer, but I think that's a different thing entirely.

No worries if not, I can edit local css for the effect as well (see example: https://youtu.be/geVzURgB9y8 )

This may be in the same area as #60 and #68 for Enhancements.

Thank you!

joncage commented 3 years ago

Yep. Should be feasible to do this - just needs a config option plumbing in.

rabbibob commented 3 years ago

I was looking through EDScoutWebUI\EDScout.py and I wondered if an avenue would be to check %appdata%\Local\EDScout for the existence of css-overrides.css and use that if found (copy it to the temp dir for def css_override_route(filename):).

I do see other operations in def remap_css_to_match_hud(): for setting the remapped_css_file destination. Disclaimer: I have only enough python knowledge to read flow and do basic things, so I'm only looking into your sandbox. :)

That would put the css creation on us (go find one in the latest temp dir and copy it to the local dir, then edit), it's easy to remove it for a reset, plus the full set of css variables are then available. I think it might also take care of #68 (not so much #60 anymore now that I look more at it).

This is how I did the >>HYPERSPACE<< video overlay example yesterday within OBS using #00ff00 for background via the ChromaKey filter.

Best, RB