e1a00c3d26
ColorButton: Added frame border when style border are off. (#346) @jdumas
omar2017-07-30 18:09:34 +08:00
65a27732d8
ImGuiColorEditFlags: Made 0x01 unused for backward compatibility with old bool. Various comments tweaks. (#346)
omar2017-07-30 17:57:38 +08:00
90fcd4a829
Renamed ImGuiColorEditFlags_NoColorSquare to ImGuiColorEditFlags_NoSmallPreview (#346)
omar2017-07-30 17:55:42 +08:00
3fe7739b5d
ColorPicker: Honor ImGuiColorEditFlags_NoTooltip if for some reason user wants that. (#346)
omar2017-07-30 17:53:37 +08:00
db436b183b
Merge branch 'master' into 2016-02-colorpicker
omar2017-07-29 17:24:06 +08:00
3926bd08e1
ColorPicker: Added ImGuiColorEditFlags_NoSidePreview flag + optional reference color. Added more demo code. (#346)
omar2017-07-29 17:23:32 +08:00
e84224bcd5
ColorEdit4: Can open context menu from inputs/drags as well (#346)
omar2017-07-29 17:00:56 +08:00
6c82572a35
ColorEdit4: Fixed not returning true when clicking on the Original/Ref color in Picker spawned from ColorEdit4 + shallow tidying up (#346)
omar2017-07-29 16:11:20 +08:00
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)
omar2017-07-29 15:54:45 +08:00
6bc1572d31
ColorPicker: Comments. Single input value mode allow access to context-menu options. (#346)
omar2017-07-29 15:50:24 +08:00
973d4a361b
ColorPicker: Forward AlphaPreview flag to its individual inputs/sliders. Split code into extra lines to make logic more readable. (#346)
omar2017-07-29 14:32:41 +08:00
cdcda9ff68
ColorEdit4: Store edit options per window. Demo: Letting user change edit mode. (#346)
omar2017-07-29 14:01:05 +08:00
c36d59a42a
ColorEdit, ColorPicker: AlphaPreview, AlphaPreviewHalf are explicit. Updated demo and using in style editor. 3x3 checkerboard more readable in half mode. (#346)
omar2017-07-27 17:16:46 +08:00
b1cbd87a94
ColorEdit4: Minor tidying up. (#346)
omar2017-07-27 16:49:57 +08:00
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)
omar2017-07-27 16:26:32 +08:00
a9df6bfe86
ColorButton: Fixed rounding corners artefact when there is a single cell.
omar2017-07-27 14:04:58 +08:00
b7a563276d
ColorTooltip: Honor ImGuiColorEditFlags_HalfAlphaPreview flag by calling ColorButton(). Added HalfAlphaPreview to demo. (#346)
omar2017-07-27 11:07:46 +08:00
2e37db9002
ColorEdit4: Fix not forwarding ImGuiColorEditFlags_AlphaBar flag to ColorPicker4 (#346)
omar2017-07-27 10:49:01 +08:00
27e5b09af1
ColorButton: ImGuiColorEditFlags_HalfAlphaPreview flag to render both opaque and alpha-with-checkerboard versions of the peak preview (#346)
omar2017-07-26 23:07:35 +08:00
69dd1ed583
RenderColorRectWithAlphaCheckerboard() in one layer to shunt out anti-alasing artefacts when rounded. Added ImLerp(int,int,float). (#346)
omar2017-07-26 22:20:43 +08:00
76bae2f015
ColorEdit, ColorPicker: Fixed broken build due to commiting an undesirable change in 78a8f798c5 (#346)
omar2017-07-26 17:46:48 +08:00
19c6a9c0e0
ColorButton, ColorPicker: painfully made RenderColorRectWithAlphaCheckerboard more friendly to using Rounding and Border in style, still not perfect :( (#346) + comments
omar2017-07-26 17:38:33 +08:00
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)
omar2017-07-26 16:00:47 +08:00
df56879883
imDrawList::PathRect() uses ImGuiCorner_ enums. Should fully promote this to imgui.h at some point.
omar2017-07-26 14:53:15 +08:00
9d0e5beaa7
GetColorU32(ImGuiCol): avoid using GImGui twice since some implementation make it a TLS-ish variable with non-trivial accessors.
omar2017-07-26 14:35:50 +08:00
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.
omar2017-07-26 14:34:59 +08:00
4f1f251bd2
ColorEdit, ColorPicker: Context / options menu allows to toggle between u8 and float display. Using short words to avoid localization. (#346)
omar2017-07-23 19:02:26 +08:00
8d32e8dae6
ColorPicker: Handle out of 0..1 range colors when displaying the cross hair. (#346)
omar2017-07-23 18:48:45 +08:00
7b2d79cffd
ColorEdit: Added ImGuiColorEditFlags_Float flag to display and edit drag values in 0.0..1.0 range instead of 0..255. (#346)
omar2017-07-23 18:44:32 +08:00
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)
omar2017-07-22 18:01:16 +08:00
dd9c2f97a8
ColorPicker: Renamed _NoSliders to _NoInputs (#346)
omar2017-07-22 17:38:38 +08:00
eba33deaf3
ColorPicker: Longer white line for hue/alpha selection, scale down according to ItemInnerSpacing. (#346)
omar2017-07-22 17:35:18 +08:00
e79d7553b0
ColorPicker: Don't use Alpha setting when enabling all 3 sliders (#346)
omar2017-07-22 16:52:41 +08:00
97bedd704c
Better, unified color tooltip (#346)
omar2017-07-21 03:06:25 +08:00
c8553817d9
Merge branch 'master' into 2016-02-colorpicker
omar2017-07-21 02:34:19 +08:00
138a9dbaeb
Tooltip: SetTooltip() is expanded immediately into a window, honoring current font / styling setting. Add internal mechanism to override tooltips (not exposed in BeginTooltip yet because bools are evil) (#862)
omar2017-07-21 02:21:48 +08:00
100d30a0a1
Comments about IMGUI_DISABLE_TEST_WINDOWS (#1240, #169)
omar2017-07-20 23:12:58 +08:00
e4007f7145
Internals: Move GetVisibleRect() a few functions above so it gets to hang out with its peers.
omar2017-07-20 22:30:56 +08:00
85d9c8fb46
Internals: renaming IndexWithinParent to OrderWithinParent
omar2017-07-20 21:25:31 +08:00
25f3717a1c
Removed IsPosHoveringAnyWindow() which was severaly broken and misleading (most people want to use io.WantCaptureMouse). Added dummy function with assert for now. (#1237)
omar2017-07-20 20:57:46 +08:00
3e4cb40d45
Merge branch 'master' into 2016-02-colorpicker
omar2017-07-19 14:53:25 +08:00
be7fa76fdd
Fixed Clang unknown-warning-ignored warning by ignoring it..... we are truly living in a special time (#1090)
omar2017-07-15 13:27:44 +08:00
52df0032a5
Travis: Blind fix for SDL+GL3 project on the Travis build setup. Examples: SDL+GL3: Makefile blind fix for OSX (untested) (#1229, #1209)
omar2017-07-15 13:19:13 +08:00
358e667b7a
Travis: Adding the SDL+GL3 project on the Travis build setup (for both Linux and OSX). Examples: SDL+GL3: Makefile blind fix for OSX (untested) (#1229, #1209)
omar2017-07-15 13:13:09 +08:00
0fe5728971
Examples: SDL+GL3: Makefile fix for Linux (#1229, #1209)
omar2017-07-15 13:07:43 +08:00
afae9398cb
Comments. Removed sort-of duplicate access to GImGui->Font in ImDrawList::AddText() so it's only in one place.
omar2017-07-14 17:49:42 +08:00
2acbd1ac2d
Using ImTextureID instead of void* in ImFontAtlas, not sure why I didn't do that earlier, make things more clear
omar2017-06-02 11:25:36 +02:00