You can see on the screenshot that the Tango JDraw viewer and the Taurus one do not display the Swing component fr.esrf.tangoatk.widget.attribute.SimpleScalarViewer (which is the text) in the same way.
Do you have rules relative to JDraw? Must we do something closer to the original?
Anyway, is there any problem if we remove the background/text color update in case of fr.esrf.tangoatk.widget.attribute.SimpleScalarViewer item? I guess a normal text will still have the same behaviour than before.
If you agree, i think i can do a patch which will only fix the SimpleScalarViewer swing item rendering.
Sorry, i was wrong the difference is i think relative to the extension "validBackground" which is not supported. If i find a good way to support it i will provide a patch. Here is a copy-paste of the supported extensions from the java file.
Here it is what i have on Taurus now. I send a patch.
Here is a sample jdw test file
Here is the result with JDraw, and with Taurus, with and without the patch
I would like to add a test with a non valid value from (to check the non use of the validBackground property) but i dont find anything with sys/tg_test/1
We also see there is a little difference : JDraw display "No unit", and Taurus display nothing. We sould do like JDraw, but it is quite ugly.
patches applied to develop (thanks V. Valls)
Ticket moved from /p/sardana/tickets/130/
Can't be converted: