Users are able to change the color of the text cursor (insertion caret) in the Text Editor and Python Console. But the color of that cursor everywhere else, like when changing property values or text in Properties or Preferences, is hard-coded as {0.2, 0.6, 0.9}
This patch add a theme setting to change this color. This could be important for different themes, or for users who have some color vision deficiency:
Further, this patch slightly alters the size and placement of the cursor. The current code does not scale the width of the text cursor with changes to scale and dpi, so it is more difficult to see for users with high-dpi displays like Retina. It also places the cursor slightly to the right in the space between characters. And it also varies its height in a way that does not follow scale correctly.
The following illustrates these changes, with current behavior on the left, after patch on the right. 1X, 2X, and 3X scale zoomed in to show it better. It shows the change in width with dpi and user scale changes. The better horizontal centering. And you should see it fixes the vertical size issue on the left where the caret and selection underflows, then perfectly fits, then overflows the input area bounds.

