iink SDK on Device

Answered

Circle in penstyle or setting theme

Hello, 

in the Nebo app, if you click the eraser button the pen will be a blue circle or a blue circle appears if you touch the screen like in the picture below 

image

So my question is: How can you change the penstyle or set the editor theme to get this blue circle ? 

For your information: I only use your math resources, no text or text diagram. 


Best Answer

Dearg Thanh,


Thank you for the update.


I prefer adding the way to proceed, so that it enriches our knowledge base on the forum ;-)


As you seem to be in in Math part, ensure the erasure is shown (by default it is not): conf.setBoolean("math.eraser.show", true);


Then, the color can be set using the following StyleSheet:

String styleSheet = new String(".fillShape{-myscript-pen-fill-color: #ff0000ff;};");
editor.setTheme(styleSheet);


Best regards,


Olivier


Never mind. I found it :) If you want, you can delete this post. Thanks! 

Answer

Dearg Thanh,


Thank you for the update.


I prefer adding the way to proceed, so that it enriches our knowledge base on the forum ;-)


As you seem to be in in Math part, ensure the erasure is shown (by default it is not): conf.setBoolean("math.eraser.show", true);


Then, the color can be set using the following StyleSheet:

String styleSheet = new String(".fillShape{-myscript-pen-fill-color: #ff0000ff;};");
editor.setTheme(styleSheet);


Best regards,


Olivier