mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
ColorEdit, ColorPicker: (Breaking) redesigned how alpha is displayed in the preview square. (#8335, #1578, #346)
Added ImGuiColorEditFlags_AlphaOpaque, ImGuiColorEditFlags_AlphaNoBg. Removed ImGuiColorEditFlags_AlphaPreview.
This commit is contained in:
parent
fdca6c08ad
commit
6906ac979e
5 changed files with 43 additions and 17 deletions
|
|
@ -41,6 +41,14 @@ HOW TO UPDATE?
|
|||
|
||||
Breaking changes:
|
||||
|
||||
- ColorEdit, ColorPicker: redesigned how alpha is displayed in the preview square. (#8335, #1578, #346)
|
||||
- Removed ImGuiColorEditFlags_AlphaPreview (made value 0): it is now the default behavior.
|
||||
- Prior to 1.91.8: alpha was made opaque in the preview by default _unless_ using ImGuiColorEditFlags_AlphaPreview.
|
||||
- We now display the preview as transparent by default. You can use ImGuiColorEditFlags_AlphaOpaque to use old behavior.
|
||||
- The new flags may be combined better and allow finer controls:
|
||||
- ImGuiColorEditFlags_AlphaOpaque: disable alpha in the preview, but alpha value still editable.
|
||||
- ImGuiColorEditFlags_AlphaNoBg: disable rendering a checkerboard background behind transparent color.
|
||||
- ImGuiColorEditFlags_AlphaPreviewHalf: display half opaque / half transparent preview.
|
||||
- Backends: SDLGPU3: Renamed ImGui_ImplSDLGPU3_InitInfo::GpuDevice to Device
|
||||
for consistency. (#8163, #7998, #7988)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue