Skip to content

context: Split key_colors into primary_colors and secondary_colors

Philip Withnall requested to merge pwithnall/apps-for-gnome:13-key-colors into main

This makes the semantics a bit more explicit, and makes it a bit easier to pull the colours in from separate sources.

The semantics of the GnomeSoftware::key-colors key have been changed to treat it as an unordered set of colours, all of which are suitable to be used as background (primary) colours. This is inline with how gnome-software already treats this key.

A new AppsForGnome::secondary-colors key has been added to allow specifying secondary (foreground) colours.

The icon_colors extracted from the app’s icon continue to be used as they were before, with icon_colors[0] being the primary color and icon_colors[1] the secondary.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Fixes: #13 (closed)

Closes #13 (closed)

Merge request reports