colourpicker

Simple Colour Picker written in C
git clone anongit@rnpnr.xyz:colourpicker.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: bdbaa835692c37f6222ecadf7e3ebfb3d79c76f4
Parent: 2929271233a4f8166cf9b784dfe23aaa0ee86f2b
Author: Randy Palamar
Date:   Fri, 26 Jul 2024 22:40:59 -0600

draw a line between Apply and Revert rects

Diffstat:
Mcolourpicker.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/colourpicker.c b/colourpicker.c @@ -525,6 +525,10 @@ do_colour_selector(ColourPickerCtx *ctx, Rect r) DrawRectangleRoundedLinesEx(r.rr, STACK_ROUNDNESS, 0, 12, ctx->bg); DrawRectangleRoundedLinesEx(r.rr, STACK_ROUNDNESS, 0, 3, Fade(BLACK, 0.8)); + v2 start = cs[1].pos; + v2 end = cs[1].pos; + end.y += cs[1].size.h; + DrawLineEx(start.rv, end.rv, 3, Fade(BLACK, 0.8)); if (pressed_idx == 0) { switch (ctx->mode) {