Respect palette foreground colour properly in rich text
Respect palette foreground colour properly in rich text

* This is particularly relevant for custom-background colour items on dark theme
  where we may switch to dark text for contrast.

Zorro666/renderdoc,baldurk/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,baldurk/renderdoc,baldurk/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,baldurk/renderdoc