Skip to content

ColorPickers interferences #6155

@fmauclere

Description

@fmauclere

First of all, thank you @ocornut for your fantastic work.

I found a bug on ColorPickers (both RGB and RGBA versions).

With ImGui v1.89.2, when I do this :

static float aaa[4] = { 0, 0, 0, 0 };
static float bbb[4] = { 0, 0, 0, 0 };

if (ImGui::Begin("window aaa"))
  ImGui::ColorPicker4("aaa", aaa);
ImGui::End();

if (ImGui::Begin("window bbb"))
  ImGui::ColorPicker4("bbb", bbb);
ImGui::End();

The ColorPickers seem to interfere with each other when their RGB values are the same full black or full white (all 0 or all 255).
If I use the vertical color bar on the right side of aaa, then the aspect of bbb will also change.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions