Skip to content

[Bug]: style.Colors maps W component to red instead of alpha #119

Description

@pragmascript

Pre-submission Checklist

  • I have read the FAQ Wiki
  • I have searched existing issues and this is not a duplicate
  • I am using the latest version of Hexa.NET.ImGui

Hexa.NET.ImGui Version

dc79fe1

Bug Description

Tried to run ExampleGLFWOpenGL3 imgui window background color is red.
When i comment out this line the colors are as epxected:

style.Colors[(int)ImGuiCol.WindowBg].W = 1.0f;

So the W component of the Vector4 maps to red isntead of the expected alpha.

Steps to Reproduce

Run ExampleGLFWOpenGL3.
Observe red window background.

Expected Behavior

W maps to alpha. Window color is opaque but with the color matches the default "Dark" style.

Code Sample

Platform

Windows

.NET Version

net9.0

Additional Context

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions