Super globals

As designers, we often make widgets that share the same design system, so there are parameters that are repeated in several of them, such as typography, sizes, or colors. When we want to change any of these parameters, it’s a bit cumbersome because we have to change the value in each widget separately. It would be great if there were something like “Super Globals”, that works at the app level, so we would only have to change them once, and they would change in all the widgets.

1 Like

And how would this behave outside of your own phone?
The global or local variable is defined by a super global that is no longer defined.

Hi there,

A quick tip from me… store the global parameters into a text file, then every widget that need any of those global parameters can retrieve from that text file.

I hope this would help.
:smiling_face::+1:

2 Likes

Great solution! It’ll definitely help, I hadn’t thought of that before, thanks!

But I was also thinking about the widgets sold in the Google Play Store. I’m working on a collection of eight widgets, and I’d like users to be able to easily change certain global settings. In that case, it becomes a bit more cumbersome, especially since there’s no way to attach text files to the widgets, I think (I could be wrong, haha).

Wouldn’t that mean they have to create the Super Globals in their own app first?
Might be easier to point them to a download location for the text-file?

1 Like

I could add a “flag” to globals to make them “shared” across komponents and widgets, this is feasible, so you change one you change the others. But this will work only if all widgets have a global that has been marked as shared. The latest release already supports persistent globals so this can be done easily.

1 Like

That would be great! A simple and elegant solution. I’m glad to know it would be easy to implement. Thanks! :handshake:

Ok i will try to see if i can squeeze this somewhere in the next release