Looking for general feedback/ideas from developers who use the tooltip api and provide css styling.
With more and more plugins utilizing the new tooltip api, it seems like there is a missing piece with regards to the css. From what I can see most developers have created static stylesheets that they have styled prior. This is fine in most cases, but it leaves some work for the developer, and if the user is using a color scheme that is vastly different than the predefined styles, there is a disconnect between the colors in the sheet and the colors in the tooltip.
Originally with the 3070 dev release, I remember Jon stating that the colors from the color scheme would be applied automatically, but I have never seen the colors appear in the tooltip. I have only seen a white background with black text.
My idea/proposal is to create some sort of standardized styling. A plugin could parse the color scheme file into predefined css styles based on the scopes. Since most themes will implement the basic scopes(comment, storage, keyword, etc) I think this would be the best option, and would allow developers to simply utilize the css style in their html without having to generate the css themselves. Since “.” characters in css denote classes, they should be replaced with “_” values. Below is a simple html example:
<p class="comment">This would be styled like a comment</p>
<p class="storage_type">This would be styled similar to a type</p>
The background color would need to be adjusted slightly to be either lighter or darker the the sheet background so that a user can easily spot the tooltip.
I’ve started working on a simple prototype that would generate a css and store a file in the user directory when the plugin is loaded or the color scheme is changed. I envision this plugin providing the functionality described above and developers would simply need to make a package dependency so that this plugin gets pulled along with their plugin when installed.
Thoughts/feedback are greatly appreciated, and please forgive me if the text above is hard to follow, going on my 20th hour of work today