nortikin / sverchok

Sverchok
http://nortikin.github.io/sverchok/
GNU General Public License v3.0
2.25k stars 233 forks source link

White icons in Shift-A menu on white theme are invisible but black icons are good! #4732

Open satabol opened 1 year ago

satabol commented 1 year ago

I have no idea what to do )))

image

Durman commented 1 year ago

One obvious solution is to keep separate set of icons for light mode. But probably it's possible to replace colors after icons was registered in Blender?

https://docs.blender.org/api/3.3/bpy.types.ImagePreview.html#bpy.types.ImagePreview

It seems is possible to write something into icon_pixels

satabol commented 1 year ago

Very interesting idea.

  1. Is it possible to get color of menu?
  2. What type of event when color change?.
  3. Can I mark this issue as proposal? (For a future)
Durman commented 1 year ago
  1. Don't know but there might be a way to read it from the preferences.
  2. That is tricky. It might be possible to use msgbus to subscribe to the property changes but also it might not work. As a variant it's possible to check the property each time when icon is called to display.
  3. Why not