Skip to content
Discussion options

You must be logged in to vote

Hi! There currently isn't a high-level interface for manipulating preferences from the wrapper, but you can use the low-level interface. The NaN colour and transparency are stored in two different preferences, which you can change like this:

session.call_action("preferenceStore.setPreference", "nanColorHex", "#00ff00")
session.call_action("preferenceStore.setPreference", "nanAlpha", "0.5")

Despite the name, nanColorHex can be any valid HTML colour (so e.g. red will work). However, if you use a format with an alpha value, like RGBA, the colour will change, but the alpha value will be ignored (it's always overridden by the nanAlpha value).

You can reset to the default NaN colour settings li…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@msteinastro
Comment options

Answer selected by msteinastro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants