windingwind/zotero-plugin-toolkit

Prompt css style and customization?

lifan0127 opened this issue · 4 comments

This is really nice library. I noticed a display issue related to the prompt window under Ubuntu dark mode:

image

I believe it is related to the border-radius setting for the input:

border-radius: 50%;

More broadly, how can I customize this prompt UI element, such as its style and keyboard shortcut?

Thanks!

Hi, thanks for the feedback. I will look into this bug later.

The Prompt is shared by all plugins, thus changing its style will also affect other plugins. Adding CSS to the main window can change the looking of the Prompt.

"The Prompt is shared by all plugins" - so if multiple plug-ins use the prompt feature, what happens when user press shift+p?

The register and unregister of all Manager modules work under a global scope. One and only one prompt will be initialized on the first call of register from any plugin, and since then any register from any plugin will add a new command to the prompt.

Multiple plugins share the same Prompt and their commands can all be called or searched. This is actually happening in Zotero already.

Thanks for your reply! I understand how the prompt works now.