NM_ Posted July 21, 2023 Share Posted July 21, 2023 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. midvok 1 Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted July 21, 2023 Share Posted July 21, 2023 1 minute ago, NM_ said: Document/Application Palette Just a note: Global colors require a Document Palette. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1 Link to comment Share on other sites More sharing options...
walt.farrell Posted July 21, 2023 Share Posted July 21, 2023 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. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1 Link to comment Share on other sites More sharing options...
thomaso Posted July 21, 2023 Share Posted July 21, 2023 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)? Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 Link to comment Share on other sites More sharing options...
NM_ Posted July 21, 2023 Author Share Posted July 21, 2023 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. Quote Link to comment Share on other sites More sharing options...
thomaso Posted July 22, 2023 Share Posted July 22, 2023 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. Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 Link to comment Share on other sites More sharing options...
walt.farrell Posted July 22, 2023 Share Posted July 22, 2023 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. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1 Link to comment Share on other sites More sharing options...
thomaso Posted July 22, 2023 Share Posted July 22, 2023 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. Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 Link to comment Share on other sites More sharing options...
thomaso Posted July 22, 2023 Share Posted July 22, 2023 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). Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 Link to comment Share on other sites More sharing options...
Recommended Posts
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.