Jump to content

Is there a way to store a color in a variable?


Recommended Posts

Though I've owned affinity for a while, I've just recently started using it for a project I'm working on. I'm wondering, perhaps I've missed it, but as a developer, is there a way to store a particular colors in variables? Say I had something like mainTheme = "#FFFFFF" or something. Then I could have certain assets reference that color. If I decide to change the mainTheme color, all assets which reference it will automatically change. I looked underneath the swatches which is where I intuitively feel I would find such an option, but didn't see it. Is there another way to accomplish this? I could write it down on paper, but then if I change it, it'd be absolutely tedious to update all references. Please help?

Screen Shot 2021-12-16 at 12.11.27 AM.png

Edited by itorres
Missing tags
Link to comment
Share on other sites

9 minutes ago, itorres said:

Is there another way to accomplish this?

Global colours, maybe

Due to the fact that Boris Johnson is now was our Prime Minister, punctuation, spelling and grammar will never be worried about ever again.  We now have far bigger problems to be worried about.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.