cloudhead / rx

👾 Modern and minimalist pixel editor
https://discord.gg/xHggPjfsS9
GNU General Public License v3.0
3.1k stars 109 forks source link

[Request] Background color #17

Closed dantheman3333 closed 4 years ago

dantheman3333 commented 5 years ago

I might have missed it in the help menu, but it would be great to be able to change the background color of the window to something other than black - trying to draw black/dark sprites

cloudhead commented 5 years ago

One thing you can do is set checker. You can turn it off with unset checker

rbisewski commented 4 years ago

I'm exploring ideas about how to do this in a branch.

Cloudhead, do you know if there is an easy way to access the UI programmatically? Or where it gets initialized?

cloudhead commented 4 years ago

@rbisewski Looking at how the checker is implemented should give you some ideas: https://github.com/cloudhead/rx/blob/master/src/renderer.rs#L447-L450

The Session is accessible read-only from the renderer, so you can access any setting from there.

rbisewski commented 4 years ago

Thanks for that :)

I have since made a pull request.

rbisewski commented 4 years ago

Should this issue be closed now that the PR has been merged?

cloudhead commented 4 years ago

Fixed in 6e2f20340e0c82d97e24f15fdd5b97d49ac262bb