Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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.

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

1 Answer 1

A little improvement according to mfvonh's idea:

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

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

share|improve this answer
    
Nice idea Silvia, +1. However, the Graphics background seems to be non-transparent if I put the notebook background black –  Rojo Sep 23 at 23:34
    
@Rojo Try my new improvement please :) –  Silvia Sep 24 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 at 14:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.