summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2020-04-28 08:56:15 -0300
committerJosé Romildo Malaquias <malaquias@gmail.com>2020-04-28 08:56:15 -0300
commit9d88d8e23d2a701bc2aa2a19e9714ba106178daa (patch)
tree43f6fdf528b4aac0293a37d6f907ce003096c748 /doc/languages-frameworks
parent14927d85035dc30673bb69e49afba2b21196c3b7 (diff)
downloadnixpkgs-9d88d8e23d2a701bc2aa2a19e9714ba106178daa.tar
nixpkgs-9d88d8e23d2a701bc2aa2a19e9714ba106178daa.tar.gz
nixpkgs-9d88d8e23d2a701bc2aa2a19e9714ba106178daa.tar.bz2
nixpkgs-9d88d8e23d2a701bc2aa2a19e9714ba106178daa.tar.lz
nixpkgs-9d88d8e23d2a701bc2aa2a19e9714ba106178daa.tar.xz
nixpkgs-9d88d8e23d2a701bc2aa2a19e9714ba106178daa.tar.zst
nixpkgs-9d88d8e23d2a701bc2aa2a19e9714ba106178daa.zip
gnome: document packaging icon themes
Diffstat (limited to 'doc/languages-frameworks')
-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 7671714d8a9..afc2de27db5 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 `Inherits` key in the `index.theme` 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, toghether 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>