EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
<== Date ==> <== Thread ==>

Subject: Re: Phoebus: text color based on alarm severity
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: Paul Sichta <psichta at pppl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 11 Nov 2024 18:49:21 -0800
On 11/11/24 16:45, Paul Sichta via Tech-talk wrote:
I have added the preferences below in my settings.ini file.  I expected the text color to change based on alarm sevr but it just stays the same (the color selected for the text update object) .

excerpt from preferences listing:
# Color for text and the background for 'OK' alarm severity (R,G,B or R,G,B,A values in range 0..255)
ok_severity_text_color=0,255,0
ok_severity_background_color=255,255,255

# Color for text and the background for 'MINOR' alarm severity
minor_severity_text_color=255,128,0

The way the phoebus settings.ini files are structured is always:

package.name/preference_name=value

So there will _always_ be a '/' somewhere.

Parsing this from the documentation is a confusing...

https://urldefense.us/v3/__https://control-system-studio.readthedocs.io/en/latest/preference_properties.html__;!!G_uCfscf7eWS!bKdm6KbqSxWqXdi3twX47I9pcd1wJIFNMLKAtNnPI6PFr5B8cuVZsqQd0R0j-1mfa8WBgzTK2ASVnfBOfeUku9ZTaw$
the section you quote is preceded by:

File ../../core/ui/src/main/resources/phoebus_ui_preferences.properties:

# ----------------------
# Package org.phoebus.ui
# ----------------------

So the full name of eg. 'ok_severity_text_color' as it should appear in settings.ini is:

org.phoebus.ui/ok_severity_text_color=0,255,0


Replies:
Re: Phoebus: text color based on alarm severity Michael Davidsaver via Tech-talk
Re: [EXTERNAL] Re: Phoebus: text color based on alarm severity Kasemir, Kay via Tech-talk
References:
Phoebus: text color based on alarm severity Paul Sichta via Tech-talk

Navigate by Date:
Prev: Phoebus: text color based on alarm severity Paul Sichta via Tech-talk
Next: Re: Phoebus: text color based on alarm severity Michael Davidsaver via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
Navigate by Thread:
Prev: Phoebus: text color based on alarm severity Paul Sichta via Tech-talk
Next: Re: Phoebus: text color based on alarm severity Michael Davidsaver via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
ANJ, 12 Nov 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·