# Changing mouse appearance at notebook level

Ideally, I'd like to change the mouse pointer appearance(s) at notebook level, from a styleseet. However, I'd be satisfied only by changing its color. This is the main issue keepeing me away from dark themes: the pointer becomes hard to find.

There seems to be an option "MousePointerAppearance" but I don't know how/if it works.

-
where do you see this option? –  acl Jul 17 '14 at 14:22
@acl in the option inspector under Editing options, v10 –  Rojo Jul 17 '14 at 14:42
This almost gets there, but the mouse style resets if you click or move away from the notebook. FrontEndExecute[FrontEndSetMouseAppearance[Graphics@{Red, Text@"x"}]] –  mfvonh Jul 17 '14 at 16:19
@mfvonh nice attempt –  Rojo Jul 17 '14 at 16:55
–  belisarius Jul 18 '14 at 0:29

## 1 Answer

A little improvement according to mfvonh's idea:

SetOptions[InputNotebook[], Background -> GrayLevel[0]]
SetOptions[
InputNotebook[],
NotebookEventActions -> {
"MouseClicked" :>
FrontEndExecute[ FrontEndSetMouseAppearance[
Dynamic@Style["\[Earth]", "Graphics", 30, Hue[Clock[]]]
]],
PassEventsDown -> True
}
]


Sadly "MouseEntered" or "MouseOver" are both not working here.

-
Nice idea Silvia, +1. However, the Graphics background seems to be non-transparent if I put the notebook background black –  Rojo Sep 23 '14 at 23:34
@Rojo Try my new improvement please :) –  Silvia Sep 24 '14 at 13:50
Nice icon, it feels like I am about to shoot at the code. It can be seen in any background :P (even in this SetOptions[InputNotebook[], Background -> Dynamic@Hue@Clock[]]). –  Rojo Sep 24 '14 at 14:05
Strange, when I just change to "LinkHand" it switches when I move cursor out of the window, but yours pointer keeps it's value. –  Kuba Mar 27 at 11:30
@Kuba Have you tried moving the cursor fast enough so it won't trig the "cross window boarder" event? –  Silvia Apr 2 at 11:28