2681 Commits (90fcd4a829c9280c467c4aa6406221e483c7d344)
 

Author SHA1 Message Date
omar 90fcd4a829 Renamed ImGuiColorEditFlags_NoColorSquare to ImGuiColorEditFlags_NoSmallPreview (#346) 7 years ago
omar 3fe7739b5d ColorPicker: Honor ImGuiColorEditFlags_NoTooltip if for some reason user wants that. (#346) 7 years ago
omar 4d844ffde1 Demo: custom ColorPicker popup example tweaks (#346) 7 years ago
omar f040547a5f Demo: custom ColorPicker popup example (#346) 7 years ago
omar 3ffcc72f98 ColorPicker: Better cursor/color preview over the color matrix. (#346) 7 years ago
omar 390188dfa9 Comments about parts of imgui_internal.h that will self-destruct. 7 years ago
omar fef8aac523 ColorPicker4: hue/alpha bars draw arrows that would look right on all background. RenderArrow helper. (#346) 7 years ago
omar 35186a1165 Demo: Comments (#346) 7 years ago
omar db436b183b Merge branch 'master' into 2016-02-colorpicker 7 years ago
omar 3926bd08e1 ColorPicker: Added ImGuiColorEditFlags_NoSidePreview flag + optional reference color. Added more demo code. (#346) 7 years ago
omar e84224bcd5 ColorEdit4: Can open context menu from inputs/drags as well (#346) 7 years ago
omar 6c82572a35 ColorEdit4: Fixed not returning true when clicking on the Original/Ref color in Picker spawned from ColorEdit4 + shallow tidying up (#346) 7 years ago
omar 7537dff806 ColorEdit4: Picker spawned from ColorEdit4 has a preview for original/previous color with revert button - WIP not really happy with it being in ColorEdit4 code (#346) 7 years ago
omar 6bc1572d31 ColorPicker: Comments. Single input value mode allow access to context-menu options. (#346) 7 years ago
omar 973d4a361b ColorPicker: Forward AlphaPreview flag to its individual inputs/sliders. Split code into extra lines to make logic more readable. (#346) 7 years ago
omar cdcda9ff68 ColorEdit4: Store edit options per window. Demo: Letting user change edit mode. (#346) 7 years ago
omar c36d59a42a ColorEdit, ColorPicker: AlphaPreview, AlphaPreviewHalf are explicit. Updated demo and using in style editor. 3x3 checkerboard more readable in half mode. (#346) 7 years ago
omar b1cbd87a94 ColorEdit4: Minor tidying up. (#346) 7 years ago
omar bfec9c657e ColorButton: Pretty much gave up with getting the checkerboard + AA + rounding + blending + offset all working together with every combination under the sun. It works as long as you don't sneeze. (#346) 7 years ago
omar a9df6bfe86 ColorButton: Fixed rounding corners artefact when there is a single cell. 7 years ago
omar b7a563276d ColorTooltip: Honor ImGuiColorEditFlags_HalfAlphaPreview flag by calling ColorButton(). Added HalfAlphaPreview to demo. (#346) 7 years ago
omar c1c2b2400a ColorButton: Undo ce203f99f5 7 years ago
omar 2e37db9002 ColorEdit4: Fix not forwarding ImGuiColorEditFlags_AlphaBar flag to ColorPicker4 (#346) 7 years ago
omar 27e5b09af1 ColorButton: ImGuiColorEditFlags_HalfAlphaPreview flag to render both opaque and alpha-with-checkerboard versions of the peak preview (#346) 7 years ago
omar 69dd1ed583 RenderColorRectWithAlphaCheckerboard() in one layer to shunt out anti-alasing artefacts when rounded. Added ImLerp(int,int,float). (#346) 7 years ago
omar 76bae2f015 ColorEdit, ColorPicker: Fixed broken build due to commiting an undesirable change in 78a8f798c5 (#346) 7 years ago
omar 19c6a9c0e0 ColorButton, ColorPicker: painfully made RenderColorRectWithAlphaCheckerboard more friendly to using Rounding and Border in style, still not perfect :( (#346) + comments 7 years ago
omar 6796e771fd ColorEdit, ColorPicker: added ImGuiColorEditFlags_NoAlphaPreview flag (#346). Reorder flags again. 7 years ago
omar d29a4c5e5c Demo: Removed the color button from the context menu example because it is misleading now that our color widget have tooltip/context menus themselves. (#346) 7 years ago
omar c84acf3f56 Comments 7 years ago
omar ce203f99f5 ColorButton: Push a text baseline offset if higher than g.FontSize. (#346) 7 years ago
omar 78a8f798c5 ColorEdit, ColorPicker, ColorButton: Display grid under transparent colors (WIP) (#346) 7 years ago
omar df56879883 imDrawList::PathRect() uses ImGuiCorner_ enums. Should fully promote this to imgui.h at some point. 7 years ago
omar 9d0e5beaa7 GetColorU32(ImGuiCol): avoid using GImGui twice since some implementation make it a TLS-ish variable with non-trivial accessors. 7 years ago
omar 95fe11b5bf Added GetColorU32(u32) variant that does the style alpha multiply without a floating point round trip. Not 100% sure about that before the signature may seem ambiguous? But also make using imgui+drawlist more consistent in end-user extensions. 7 years ago
omar f39cd61bf0 Reorder ImGuiColorEditFlags_ (#346) 7 years ago
omar 4f1f251bd2 ColorEdit, ColorPicker: Context / options menu allows to toggle between u8 and float display. Using short words to avoid localization. (#346) 7 years ago
omar 8d32e8dae6 ColorPicker: Handle out of 0..1 range colors when displaying the cross hair. (#346) 7 years ago
omar 7b2d79cffd ColorEdit: Added ImGuiColorEditFlags_Float flag to display and edit drag values in 0.0..1.0 range instead of 0..255. (#346) 7 years ago
omar 4def2ce339 ColorPicker: Demo tweaks (#346) 7 years ago
omar 645875a240 Examples: Enable vsync by default in example applications (#1213, #1151) 7 years ago
omar 166e8f6261 Examples: OpenGL2+GLFW/SDL: Added commented out glUseProgram(0) in main.cpp for visibility (#1116) 7 years ago
omar c8794c246e Examples: Vulkan: Batch file builds both debug and release 7 years ago
omar a8b202782f ColorPicker,ColorButton: Honor Border/Shadow style settings (#346) 7 years ago
omar 790d0eb5be ColorPicker: Added ImGuiColorEditFlags_AlphaBar option (#346) 7 years ago
omar 4355b2e422 ColorPicker: Honor ImGuiColorEditFlags_NoColorSquare flag + comments (#346) 7 years ago
omar 91bf8fd689 ColorPicker,ColorEdit: Demo code (#346) 7 years ago
omar 15be7e1a71 ColorPicker: new prototype for ColorButton() .Added _NoTooltip, _NoLabel flags. Changing _Alpha flag to _NoAlpha makes so much much sense and allow to revert default parameters to zero. ColorEdit4/Picker4 don't attempt to read/write fourth component, making ColorEdit3/Picker3 shorter/faster. Tooltip and Picker called from ColorEdit can have a title. Picker shows colored square. Moved ColorTooltip() to imgui_internal.h (#346) 7 years ago
omar dd9c2f97a8 ColorPicker: Renamed _NoSliders to _NoInputs (#346) 7 years ago
omar eba33deaf3 ColorPicker: Longer white line for hue/alpha selection, scale down according to ItemInnerSpacing. (#346) 7 years ago