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

Using color palettes for different color themes: Is it possible?


Recommended Posts

Would it be possible to swap the global colors of a document by swapping out the color palette (either a Document or Application Palette) when the following conditions are met?

  • All colors used would be global colors, and defined in a single Document/Application Palette.
  • The replacement palette would define different color values, but all with the same names as in the Palette being replaced.

Individually changing dozens of colors when all is needed is to change the color theme rather than the design is tedious.

Is there an efficient way to accomplish this?

Could this be potentially accomplished by hacking the actual .afdesign file using a hex editor?

Thanks in advance.

Link to comment
Share on other sites

1 minute ago, NM_ said:

Document/Application Palette

Just a note: Global colors require a Document Palette.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

9 minutes ago, NM_ said:

The replacement palette would define different color values, but all with the same names as in the Palette being replaced.

From a quick experiment, no, that won't work.

9 minutes ago, NM_ said:

Could this be potentially accomplished by hacking the actual .afdesign file using a hex editor?

Potentially, if you figured out enough about the undocumented format of .afdesign files.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

2 hours ago, NM_ said:
  • The replacement palette would define different color values, but all with the same names as in the Palette being replaced.

Individually changing dozens of colors when all is needed is to change the color theme rather than the design is tedious.

How would you create the 'replacement palette' … without defining or "individually changing dozens of colors"?

If it doesn't need to remain vector / depending on your needs and layout objects, maybe an HSL adjustment can create a different colour theme instead. Or how about a LUT (requires APhoto)?

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

3 hours ago, thomaso said:

How would you create the 'replacement palette' … without defining or "individually changing dozens of colors"?

If it doesn't need to remain vector / depending on your needs and layout objects, maybe an HSL adjustment can create a different colour theme instead. Or how about a LUT (requires APhoto)?

Thanks. The new Palette's creation and naming would indeed be tedious. However, the palette would be exported and imported into several other files for re-theming. This is necessary for accommodating Section 508 compliance for color-blind people.

The current workflow is very inefficient. If you export a palette and import it back, the names are changed. If you remove an existing global color to replace with a new one with the same name, then all references to it are deleted.

Link to comment
Share on other sites

3 hours ago, NM_ said:

The current workflow is very inefficient. If you export a palette and import it back, the names are changed.

The Affinity colour handling is someway generally limited in various aspects, at least for spoiled users of other apps. It starts with the palette types (application versus document) and non-global vs global swatches. One most disturbing behaviour with global / spot colours are the (missing) swatches that do not get transferred with copy/paste within Affinity from one to another opened Affinity document. Even Assets, that seemed to be meant by concept as a kind of library to make objects application-wide available between documents do not transfer the swatch of a global colour applied to an asset.

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

13 hours ago, NM_ said:

The current workflow is very inefficient. If you export a palette and import it back, the names are changed.

The global color names will remain the same if you delete the current palette, before reimporting it. And that makes sense, as you can't have two palettes with colors named Global Color 1, or Global Color 2.

But it still won't help you. The function doesn't work as you wish it would, and the existing colors won't change to match the newly imported values even when the names are the same.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

1 hour ago, walt.farrell said:

But it still won't help you. The function doesn't work as you wish it would, and the existing colors won't change to match the newly imported values even when the names are the same.

The swatch names appear not to matter to get a global colour assigned to an object linked / matched with a certain swatch of a newly imported palette.

I can export a document palette –> change an assigned swatch name (without having an according layout object selected) and still get this swatch highlighted if I select the object after renaming the swatch.

If I then delete the palette and –> re-import the previously exported version (with the former swatch name) the object still is linked to this same swatch.

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

15 hours ago, NM_ said:

However, the palette would be exported and imported into several other files for re-theming. This is necessary for accommodating Section 508 compliance for color-blind people.

Can you show an example of the visual difference between same swatches with new/modified colour definitions?

If the goal is not to create taste/"mood" variations of colour themes (visually like 'summer'/'winter' or 'happy'/'sad') but rather to compensate specific differences in colour human perception I still wonder if it would work with HSL or Recolour adjustments, LUT, or ideally with specific .icc colour profiles to match certain colours (spot or range) to a specific appearance (possibly with other colours leaving unchanged).

color-blindnessswatchdifferences.jpg.dc8474efd4ddb92db5fe9b4cf4643e88.jpg

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

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.