How to set default foreground color back to 0,0,0

After the upgrade to 8, the default foreground color for text objects was changed to 46,46,46. Which makes the text seem faded/fuzzy since it's not a clear black. How can I set the default foregrounds back to what they should be? From what I can tell, you can't search replace or export and replace because that setting is not in the object when you export it if left as default. If you change the color, then it's in the xml, but not if it's left as 46,46,46. So that setting must be somewhere else. But where?

I saw the last answer in this post, but that just doesn't cut it. I have a massive project and from what I can tell, I have to touch every. single. object to make it look right. That's not cool.

Cool or not, that is what you need to do.

IA made a conscious decision long ago that defaults for properties do not get stored in resources. For pretty much every kind of resource. A great way to compress resources–until a not-stored default gets changed. Oops.

I agree, not cool. But no, there’s no easy solution.

I’m okay with not storing defaults in resources. Saves lots of space, makes lots of sense.

But deciding for everyone that dark grey is the new black without providing the means to change the default, does not make sense. All we needed is one little space to change the default color.

The concept is pervasive throughout Ignition. Every java object that has a stored (serialized or json or xml) form in a resource decides for itself what defaults will apply.

It’s not one little space.

Right. The structure of the object is not in question. It would have been convenient if the font color was exposed in that structure, so we could rip through and find/replace, but it’s not. That’s totally fine.

But somewhere deep inside, they made a change and added the hex #2E2E2E or RGB(46,46,46) to the Foreground Color property default. All I want is to be able to find where that is, and set it to black. And, yes, that could have easily been a configuration setting somewhere.

image

It’s deep inside, but not in one place. Last I peeked at such things, property defaults were compiled into each object. Vision objects that get serialized were compared to a sample of that class created with no following property changes.

You are thinking this was changed in one place. Changing this default background probably occurred in dozens of places in their codebase. Compiled in.

You aren’t getting the answer you want from IA because it isn’t simple.

Sorry, AFAIK there's no easy trick for setting this en masse, but I'll check with another dev who's been working with the new Look and Feel.

This change in the look between 7.9 and 8.x is touched upon on in the upgrade guide: 7.9 to 8.1 Upgrade Guide - Ignition User Manual 8.1 - Ignition Documentation

and it's explicitly mentioned that only non-default properties are preserved:

Manual configurations to Vision resources, such as manually selecting a font or background color for a component, will be preserved upon upgrade. However, visual properties left with default values may appear differently after upgrade.

While we're on the topic of default colour changes, you will find that all your default colour buttons have changed from almost white to blue, and page backgrounds have changed from a nice, minimal eye-strain EEECE8, to a bright, eye-straining, almost white :/. I actually don't mind the black change as I try not to use full black anywhere anyway. The new page colour though is horrendous and I go through and change this EVERYwhere. It affects containers as well. Very annoying...

Also, might be useful:

1 Like

Yeah, don’t get me started on the buttons… Ok now you have. :slight_smile: Ever try to change the border of a button in 8 and then try to change it back the default? Spoiler: “Other Border” is not an option you can pick. Weird.

If you’re going to mess with all the colors, come up with schemes that developers can choose from. That way you can show off the new minimalist designs and let people choose if they want it or not. Or we can come up with our own color/design schemes. Now that would be cool.

image

1 Like