Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1aa2d4fb authored by Xiaoqian (Daisy) Dai's avatar Xiaoqian (Daisy) Dai Committed by Xiaoqian Dai
Browse files

screen capture: update cursor for different cases during region capture

Change the cursor dynamically during partial screen capture:
   - Crosshair: When ready to draw or drawing a new selection region.
   - Move Icon: When hovering over the selected area for moving.
   - Resize Arrows: When hovering over the edges or corners of the
    selection box, change to diagonal, vertical, horizontal arrows.
   - Hand Icon: When hovering over the capture button.

The implementation is centralized within the RegionBox composable.
A pointerInput modifier continuously tracks the pointer's
position and updates a central state object (RegionBoxState) with
the current hover context (e.g., isHoveringButton, hoveredZone).

Bug: 423967244, 423967637
Test: Manual
Flag: com.android.systemui.large_screen_screencapture
Change-Id: Ic129e09ecb53d6d6908f27a01ed40e3d503af54b
parent 07a1a036
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment