Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom background option #43

Open
DarkAnturian opened this issue Nov 10, 2021 · 4 comments
Open

Custom background option #43

DarkAnturian opened this issue Nov 10, 2021 · 4 comments
Assignees

Comments

@DarkAnturian
Copy link

I would like to add a gradient to the background so it can fit inline with my overlay,
image

@RoanH
Copy link
Owner

RoanH commented Nov 10, 2021

Hello, correct me if I'm wrong, but wouldn't making the background colour transparent work for this? Filing an issue for feature requests is correct by the way (at least for this project). Although not entirely trivial, I could support a gradient for the background, but just making use of the existing gradient by making the background colour transparent should accommodate a lot more use cases, so it feels slightly redundant.

@RoanH RoanH changed the title Not really an issue but couldn't find the suggestion button Gradient background option Nov 10, 2021
@DarkAnturian
Copy link
Author

Whenever i use the transparency option, the window capture goes fully black and even putting it back to 100% keeps it black until i close and reopen it.

@RoanH
Copy link
Owner

RoanH commented Nov 11, 2021

Interesting, I'm guessing you use OBS since I can sort of reproduce this problem with it. I did run into the fully black window issue once, but setting the capture method to Windows 10 made it work. Except that it doesn't capture the alpha component of pixels... So I just get back the original background colour in the capture... It seems like this is actually a Windows limitation so I also don't expect there to be a fix for this.

There are some hacky methods I found using OBS that do actually work though, you can do a screen capture instead and then crop the output down to only the KeysPerSecond window. Alternatively, you can do a chroma key on the KeysPerSecond window background color. Both work as a fix, but they aren't entirely ideal.

I think the most useful thing I can do is add support in KeysPerSecond to set an image as the window background. This should not only address your case but also other users who might have a more complicated overlay they want the window to blend into.

@RoanH RoanH changed the title Gradient background option Custom background option Nov 11, 2021
@RoanH RoanH self-assigned this Nov 11, 2021
@DarkAnturian
Copy link
Author

that would be very useful, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants