| 53 | } |
| 54 | |
| 55 | static ImGuiMeasurementIndicators::TextParams makeTextParams( ViewportId viewportId, const VisualObject* object, const BasicClickableRectUiRenderTask& task ) |
| 56 | { |
| 57 | if ( !objectIsSelectable( object ) ) |
| 58 | return {}; |
| 59 | |
| 60 | return { |
| 61 | .borderColor = getBorderColorForObject( viewportId, object, 0.75f ), // Arbitrary alpha factor to make the borders less visible. |
| 62 | .isHovered = task.isHovered, |
| 63 | .isActive = task.isActive, |
| 64 | .isSelected = object->isSelected(), |
| 65 | }; |
| 66 | } |
| 67 | |
| 68 | static void beginPassFailTextStyle( ImGuiMeasurementIndicators::Text& text, bool pass ) |
| 69 | { |
no test coverage detected