Coordinating Values across multiple Styleboxes

Godot Version

Godot 4.3

Question

I’ve got a GUI theme that I’m trying to update. There are currently several styleboxes, including one with a border all around, one each with no border on the top/bottom/left/right, and one with no border. Apart from the borders, they’re meant to all look exactly the same.

Currently, if I want to update the background and border color, I need to go update two colours in six places each. Is there any way to link the various styleboxes together somehow, so that I’d only need to change each color once?

You can save styleboxes as separate resources. Not sure which exact values you are having trouble with.

In this specific case, the exact values are border_color and bg_color.

I’ve already saved my styleboxes as separate resources, though. The issue is that I have six styleboxes (all saved and named), and they are meant to be identical in every way except for their border values. But when I want to change their colors (which all six styleboxes share), I can’t preview the full change with a single value; I have to go through and re-change all six styleboxes. And not all of the styleboxes are visible on every screen, so I have to remember to go change them all.

It would make iterating on the UI faster and less error-prone if I could work on a single shared variable, rather than having to go and update six of them manually, and then revert six of them again if I don’t like the change.