Commit: 1d105fb21e9c710a3e907d6d850dfabcdfdf5a02
Parent: 66f156078a18e136c57b3be087a5c3ca50cb8f50
Author: Randy Palamar
Date: Thu, 28 Nov 2024 11:11:37 -0700
user higher contrast color for ruler
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/beamformer.h b/beamformer.h
@@ -14,6 +14,7 @@
#define FG_COLOUR (v4){.r = 0.92, .g = 0.88, .b = 0.78, .a = 1.0}
#define FOCUSED_COLOUR (v4){.r = 0.86, .g = 0.28, .b = 0.21, .a = 1.0}
#define HOVERED_COLOUR (v4){.r = 0.11, .g = 0.50, .b = 0.59, .a = 1.0}
+#define RULER_COLOUR (v4){.r = 1.00, .g = 0.70, .b = 0.00, .a = 1.0}
#define INFO_COLUMN_WIDTH 560
/* NOTE: extra space used for allowing mouse clicks after end of text */
diff --git a/ui.c b/ui.c
@@ -911,7 +911,7 @@ draw_ui(BeamformerCtx *ctx, BeamformerInput *input)
if (CheckCollisionPointRec(is->last_mouse_click_p.rl, vr.rl)) {
Stream buf = arena_stream(&ui->arena_for_frame);
- Color colour = colour_from_normalized(HOVERED_COLOUR);
+ Color colour = colour_from_normalized(RULER_COLOUR);
DrawCircleV(is->last_mouse_click_p.rl, 3, colour);
DrawLineEx(mouse.rl, is->last_mouse_click_p.rl, 2, colour);
v2 pixels_to_mm = output_dim;