about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2020-05-07 10:50:50 -0300
committerGitHub <noreply@github.com>2020-05-07 10:50:50 -0300
commitf528989650f516f0eb722e2dfa508a170aebb8d8 (patch)
treee8f8277b1cb0cd843e71ea9868b4c5b31d4c743d /doc
parent06b9302baaeeb78580b99fbb80a464806f317d02 (diff)
parent6449a4e84b7c51fd80668a30d21b8880736fec1f (diff)
downloadnixlib-f528989650f516f0eb722e2dfa508a170aebb8d8.tar
nixlib-f528989650f516f0eb722e2dfa508a170aebb8d8.tar.gz
nixlib-f528989650f516f0eb722e2dfa508a170aebb8d8.tar.bz2
nixlib-f528989650f516f0eb722e2dfa508a170aebb8d8.tar.lz
nixlib-f528989650f516f0eb722e2dfa508a170aebb8d8.tar.xz
nixlib-f528989650f516f0eb722e2dfa508a170aebb8d8.tar.zst
nixlib-f528989650f516f0eb722e2dfa508a170aebb8d8.zip
Merge pull request #86198 from romildo/doc.icon-themes
gnome: document packaging icon themes
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/gnome.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/languages-frameworks/gnome.xml b/doc/languages-frameworks/gnome.xml
index 7671714d8a9b..159216ca981f 100644
--- a/doc/languages-frameworks/gnome.xml
+++ b/doc/languages-frameworks/gnome.xml
@@ -40,6 +40,23 @@
    </para>
   </section>
 
+  <section xml:id="ssec-icon-theme-packaging">
+    <title>Packaging icon themes</title>
+
+    <para>
+      Icon themes may inherit from other icon themes. The inheritance is specified using the <literal>Inherits</literal> key in the <filename>index.theme</filename> file distributed with the icon theme. According to the <link xlink:href="https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html">icon theme specification</link>, icons not provided by the theme are looked for in its parent icon themes. Therefore the parent themes should be installed as dependencies for a more complete experience regarding the icon sets used.
+    </para>
+
+    <para>
+      The package <package>hicolor-icon-theme</package> provides a setup hook which makes symbolic links for the parent themes into the directory <filename>share/icons</filename> of the current theme directory in the nix store, making sure they can be found at runtime. For that to work the packages providing parent icon themes should be listed as propagated build dependencies, together with <package>hicolor-icon-theme</package>.
+    </para>
+
+    <para>
+      Also make sure that <filename>icon-theme.cache</filename> is installed for each theme provided by the package, and set <code>dontDropIconThemeCache</code> to <code>true</code> so that the cache file is not removed by the <package>gtk3</package> setup hook.
+    </para>
+
+  </section>
+
   <section xml:id="ssec-gnome-themes">
    <title>GTK Themes</title>