Jump to content
You must now use your email address to sign in [click for more info] ×

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

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

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...
×
×
  • Create New...

Important Information

Terms of Use | 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.