Highlight selected objects (#12115)

# Description

The current bounding box selection display loses all usefulness once the furthest apart objects are selected.

This is especially noticeable on grid patterns, where nested unselected elements become indistinguishable after selecting all.

This PR implements a highlighting method that visually brightens individually selected objects.

# Screenshots/Recordings/Graphs

<img width="1845" height="829" alt="image" src="https://github.com/user-attachments/assets/a92a7176-182c-41e2-869e-badb220dfee2" />
Current 2.3.1: All but some objects are selected. Can you tell which ones?

<img width="2169" height="1042" alt="image" src="https://github.com/user-attachments/assets/c6c721d5-4f03-4c23-beff-b0acc0601568" />
Proposed PR: Slight lightening of selected objects

## Tests

Built on windows, tested with various colors and non-printable
This commit is contained in:
Yves
2026-02-11 17:16:14 +08:00
committed by GitHub
parent 08afbefa56
commit 89eb0b26d1
2 changed files with 77 additions and 8 deletions

View File

@@ -96,6 +96,7 @@ public:
static void update_render_colors();
static void load_render_colors();
static ColorRGBA brighten_color(const ColorRGBA& color, float multiplier = 1.25f);
static float explosion_ratio;
static float last_explosion_ratio;