ControlSystemStudio / cs-studio

Control System Studio is an Eclipse-based collections of tools to monitor and operate large scale control systems, such as the ones in the accelerator community.
https://controlsystemstudio.org/
Eclipse Public License 1.0
113 stars 96 forks source link

LED font color change works only for the first time #2639

Closed haitao127 closed 4 years ago

haitao127 commented 4 years ago

I realy like the feature that the LED font changes the color base on the backgroud color, if the color is dark, the font changes to a white color, it is good for the readibility.

But it only works once when the OPI is initialized by running it or reload it.

Please look at the video.

kasemir commented 4 years ago

Since this is for the display builder and phoebus, you could have posted this issue there, not in the Eclipse/BOY based repo. But anyway, the display builder examples for "LED" contain a more reproducible setup since it's using local PVs, so anybody can execute that display. When I try it, the color changes as expected:

Screen Shot 2020-04-15 at 8 57 11 AM Screen Shot 2020-04-15 at 8 57 05 AM

Same with the "Byte Monitor" example:

Screen Shot 2020-04-15 at 9 00 30 AM

What do you get for those examples?

haitao127 commented 4 years ago

Thank you very much for your answer and please forgive me to post this issue in the wrong repo.

I've had a look at the examples, and now I found the probable reason, maybe it is because my Enum PV doesn't have the right definition on the fields, which means that the bi record just have a "ONAM" filed and there's no "ZNAM" field.

I will fix the field definition and test this again.

Thank you again.

haitao127 commented 4 years ago

I have created a new issue in the Phoebus repo.