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

"colored" overlay #1

Open
ebachard opened this issue Jul 21, 2017 · 0 comments
Open

"colored" overlay #1

ebachard opened this issue Jul 21, 2017 · 0 comments

Comments

@ebachard
Copy link

First, thanks a lot for your tabs, they are working very well on my side, excepted one issue I think I found the why (maybe my fix is just a bad hack, please apologies).

To reproduce the issue, have a look at the screenshot I provived in ocornut/imgui#1083 : just below the active tab, "Aide", you'll see the white ( alpha = 0.15) background. The problem is that this background is drawn on top of the tabs contents (sort of "overlay"), and e.g. when one tab is a frame coming from a webcam, the colors are plain wrong. This issue is true for every tab in fact.

Second issue (linked) : when you move the window containing the tabs, or resize it, the background is modified, means probably does not use the right coordinates. This should be fixed too in the proposed code.

As workaround, I modified your code to draw the background before to fill it with the content.

Please see the commit I did there : https://github.com/ebachard/imgui_tabs

Last but not least, I'll attach a screenshot with what I got now.

Feel free to use the proposed code under the license you prefer, that's no problem for me ;-)
imgui tabslayout_2017_07_21

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

No branches or pull requests

1 participant