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

Can I assign a color to a variable name?


Recommended Posts

I want to assign a particular color to a variable because this one color is used in several/many elements in my design. I would like to be able to point the same variable to a different color and then have all the related elements of my design change accordingly. This would entail me assigning a stroke/fill to a variable value when I apply it in my design - as opposed to just assigning it (manually) to a particular color.

 

Thanks.

Link to comment
Share on other sites

  • Staff

Hi cognociente,

Welcome to Affinity Forums :)

You can use a Global Colour for this. Go to the Swatches panel menu on the top right and select Add Global Colour..., pick the color you want (it will be presented with a small white triangle on the bottom left in the swatches panel) and apply it to the objects as usual. If you double-click its color well in the swatches panel and change it, all objects will update accordingly.

Link to comment
Share on other sites

I have no problem editing a global colour in AD on Windows beta 1.5.0.12, but the Undo and Redo keyboard shortcuts don't work. Undo and Redo work as expected via the History panel and the Edit menu.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

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.