Move APCA contrast from terminal_view to ui utils (#36731)

In prep for using this in the editor search/select highlighting. 

Release Notes:

- N/A
e15856a37fSmit Barmase committed on 8/22/2025, 4:47:37 AM· committed by GitHubparent8524394
5 files changedLine totals unavailable