win32 theme: Text color in XML editor and Preferences dialog incorrect during hover/selected-but-unfocused state

Summary:

For win32 theme, the color of text when hovered over or when selected but not focused is white on a light grey background. This makes using XML dialog difficult (see attachment below) under win32 theme. It also affects visibility of text in preferences dialog.

Steps to reproduce:

  • open Inkscape on Windows 10
  • switch to win32 theme
  • open XML editor
  • select a node and hover over its attributes.

What happened?

Text is not readable due to poor contrast

What should have happened?

Text Should have better Contrast

Actual Expected
XML Editor XML_Editor_Before XML_Editor_ExpectedV.2
Preferences Theme-no-fix theme-respecting_fix

Version info

Inkscape 1.2-dev (9cf934db, 2021-09-22)

    GLib version:     2.70.0
    GTK version:      3.24.30
    glibmm version:   2.66.1
    gtkmm version:    3.24.5
    libxml2 version:  2.9.12
    libxslt version:  1.1.34
    Cairo version:    1.17.4
    Pango version:    1.48.10
    HarfBuzz version: 2.9.1

    OS version:       Windows 10 1903

Edited by KrIr17