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

ColorPicker ignores style.alpha value #2711

Closed
rraggerr opened this issue Aug 5, 2019 · 4 comments
Closed

ColorPicker ignores style.alpha value #2711

rraggerr opened this issue Aug 5, 2019 · 4 comments

Comments

@rraggerr
Copy link

rraggerr commented Aug 5, 2019

Version/Branch of Dear ImGui:

Version: 1.73WIP(17203)
Branch: matser

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_11.cpp + imgui_impl_win32.cpp
Compiler: VS2019
Operating System: Win10

My Issue/Question:

ColorPicker ignores imgui's global alpha value

Screenshots/Video
MrB548mu1m

Standalone, minimal, complete and verifiable example:

    ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
    ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color
@ocornut
Copy link
Owner

ocornut commented Aug 5, 2019 via email

ocornut added a commit that referenced this issue Aug 16, 2019
… can be faded out. (#2711)

Note that some elements won't accurately fade down with the same intensity, and the color wheel when enabled will have small overlap glitches with (style.Alpha < 1.0).
@ocornut
Copy link
Owner

ocornut commented Aug 16, 2019

Pushed change to make this working 90%
image

Multiple blending layers are making this imperfect but it gives a good enough impression.
There's unfortunately an overlapping glitch with the color wheel:

image

Which I won't fix right now (I don't know what is the right fix). Seems less problematic since this is not visible by default but eventually we ought to look at this..

Out of curiosity, why are you using the global alpha setting?

@rraggerr
Copy link
Author

Pushed change to make this working 90%
image

Multiple blending layers are making this imperfect but it gives a good enough impression.
There's unfortunately an overlapping glitch with the color wheel:

image

Which I won't fix right now (I don't know what is the right fix). Seems less problematic since this is not visible by default but eventually we ought to look at this..

Out of curiosity, why are you using the global alpha setting?

when debugging the game, its so comfortable to look at game and imgui's windows at one time, personal thing

@ocornut
Copy link
Owner

ocornut commented Aug 16, 2019

when debugging the game, its so comfortable to look at game and imgui's windows at one time, personal thing

The way people solve that usually is:

  • Either have the game display in a smaller windows when they tools are active (using docking or in a floating window)
  • Use multi-viewports to have imgui windows not covering game window.

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