Issue #4853: Adapt brush previews to theme
This patch attempts to resolve #4853 (moved).
It adds a new GimpViewBG
enum value, GIMP_VIEW_BG_USE_STYLE
. If used, we check the current theme setting and attempt to match the brush preview background and color to it.
Note that this uses gtk_style_context_get ()
, so if the widget does not have a CSS background color defined the icon's background will be drawn as black. I made this patch before the most recent CSS update so I'll need to fix a few instances of this before removing the Draft notice.
Preview from older version: https://fosstodon.org/@CmykStudent/111291077559705208
Edited by Alx Sa