... | ... | @@ -225,4 +225,31 @@ Colours should be chosen so that they: |
|
|
* Contrast with the foreground text colour in the Adwaita theme (`#2e3436`) and in its dark variant (`#eeeeec`). This generally means choosing a colour with a medium level of brightness.
|
|
|
* Contrast can be checked using the [Contrast app](https://apps.gnome.org/app/org.gnome.design.Contrast/).
|
|
|
|
|
|
At least one colour should be specified. More can be specified if one colour can’t satisfy all the requirements above, and GNOME Software will choose the most appropriate to use in the carousel tile. |
|
|
\ No newline at end of file |
|
|
At least one colour should be specified. More can be specified if one colour can’t satisfy all the requirements above, and GNOME Software will choose the most appropriate to use in the carousel tile.
|
|
|
|
|
|
### How to test carousel tile background colour changes
|
|
|
|
|
|
On some distributions, you can test your changes by editing `/usr/share/app-info/xmls/org.gnome.Software.Featured.xml`. (On GNOME OS, run `sudo ostree admin unlock` to be able to temporarily edit this file.) Remove all the other apps, and add a section for your app, as follows
|
|
|
|
|
|
```xml
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<components>
|
|
|
<component merge="append">
|
|
|
<id>org.freedesktop.Bustle</id>
|
|
|
<categories>
|
|
|
<category>Featured</category>
|
|
|
</categories>
|
|
|
<custom>
|
|
|
<value key="GnomeSoftware::FeatureTile">True</value>
|
|
|
<value key="GnomeSoftware::key-colors">[(20, 200, 235)]</value>
|
|
|
</custom>
|
|
|
</component>
|
|
|
</components>
|
|
|
```
|
|
|
|
|
|
Now restart gnome-software:
|
|
|
|
|
|
```
|
|
|
gnome-software --quit
|
|
|
gnome-software
|
|
|
``` |
|
|
\ No newline at end of file |