<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://techbase.kde.org/skins/common/feed.css?0.2"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://techbase.kde.org/index.php?title=User:Pino/Handling_icons&amp;feed=atom&amp;action=history</id>
		<title>User:Pino/Handling icons - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://techbase.kde.org/index.php?title=User:Pino/Handling_icons&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=User:Pino/Handling_icons&amp;action=history"/>
		<updated>2013-05-24T20:40:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://techbase.kde.org/index.php?title=User:Pino/Handling_icons&amp;diff=62751&amp;oldid=prev</id>
		<title>Pino: small bits</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=User:Pino/Handling_icons&amp;diff=62751&amp;oldid=prev"/>
				<updated>2011-07-11T23:56:14Z</updated>
		
		<summary type="html">&lt;p&gt;small bits&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:56, 11 July 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Application icon ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Application icon ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;When install the application icon of an application (i.e. the icon representing the application, usually named after the application itself), you want to make it used by anyone, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;regarless &lt;/del&gt;of which icon theme they are using. Because of this:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;When install the application icon of an application (i.e. the icon representing the application, usually named after the application itself), you want to make it used by anyone, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;regardless &lt;/ins&gt;of which icon theme they are using. Because of this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use the &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt; (hicolor) icon theme&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use the &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt; (hicolor) icon theme&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use &amp;lt;tt&amp;gt;${ICON_INSTALL_DIR}&amp;lt;/tt&amp;gt; as installation directory, as it allows the icon to be seen by all the other applications installed in the same prefix&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use &amp;lt;tt&amp;gt;${ICON_INSTALL_DIR}&amp;lt;/tt&amp;gt; as installation directory, as it allows the icon to be seen by all the other applications installed in the same prefix&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This is the case for KDE applications with nothing like plugins for plugin systems not of the own application itself (like kparts, kioslaves, konqueror service menus, etc). In this case:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This is the case for KDE applications with nothing like plugins for plugin systems not of the own application itself (like kparts, kioslaves, konqueror service menus, etc). In this case:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use the &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt; (hicolor) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;icon theme, which is the only common denominator (called also ''fallback theme'') among any &lt;/del&gt;icon theme&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use the &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt; (hicolor) icon theme&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use &amp;lt;tt&amp;gt;${DATA_INSTALL_DIR}/''applicationname''/icons&amp;lt;/tt&amp;gt; as installation directory&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use &amp;lt;tt&amp;gt;${DATA_INSTALL_DIR}/''applicationname''/icons&amp;lt;/tt&amp;gt; as installation directory&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Installing the icons in a ''icons'' subdirectory of the application data directory allows the application to make use of them without &amp;quot;polluting&amp;quot; the global icon theme with application-specific icons, but still making icon themes able to ''override'' the &amp;lt;tt&amp;gt;hicolor&amp;lt;/tt&amp;gt; icons of the application with own icons.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Installing the icons in a ''icons'' subdirectory of the application data directory allows the application to make use of them without &amp;quot;polluting&amp;quot; the global icon theme with application-specific icons, but still making icon themes able to ''override'' the &amp;lt;tt&amp;gt;hicolor&amp;lt;/tt&amp;gt; icons of the application with own icons.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pino</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/index.php?title=User:Pino/Handling_icons&amp;diff=58869&amp;oldid=prev</id>
		<title>Pino: more content</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=User:Pino/Handling_icons&amp;diff=58869&amp;oldid=prev"/>
				<updated>2011-05-28T16:00:37Z</updated>
		
		<summary type="html">&lt;p&gt;more content&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:00, 28 May 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Where:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Where:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''theme'': the two-letter name of the icon theme; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;for example&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''theme'': the two-letter name of the icon theme; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;supported themes are&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;** &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt;: hicolor&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;** &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt;: hicolor&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;** &amp;lt;tt&amp;gt;ox&amp;lt;/tt&amp;gt;: Oxygen&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;** &amp;lt;tt&amp;gt;ox&amp;lt;/tt&amp;gt;: Oxygen&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Installing with CMake (KDE 4) ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Installing with CMake (KDE 4) ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To install icons with the CMake buildsystem using the KDE4 macros, you just need to use&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To install icons with the CMake buildsystem using the KDE4 macros, you just need to use &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;one macro:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;kde4_install_icons(&amp;lt;installation directory&amp;gt;)&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;kde4_install_icons(&amp;lt;installation directory&amp;gt;)&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;This CMake macros takes '''all''' the icons with a &amp;quot;compact&amp;quot; naming in the current directory, and installs them in the &amp;lt;installation directory&amp;gt; specified. Hence, if you want to install some icons in one location and some in another, the only solution you have is to put the icons in different directories with ad-hoc &amp;lt;tt&amp;gt;kde4_install_icons()&amp;lt;/tt&amp;gt; calls.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;installation directory&amp;gt; is usually&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;installation directory&amp;gt; is usually&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;${ICON_INSTALL_DIR}&amp;lt;/tt&amp;gt;: installs the icons in the &amp;lt;tt&amp;gt;share/icons&amp;lt;/tt&amp;gt; subdirectory of the installation prefix.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;${ICON_INSTALL_DIR}&amp;lt;/tt&amp;gt;: installs the icons in the &amp;lt;tt&amp;gt;share/icons&amp;lt;/tt&amp;gt; subdirectory of the installation prefix.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;${DATA_INSTALL_DIR}/''applicationname''/icons&amp;lt;/tt&amp;gt;: locally for an application only (see also the section below)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;${DATA_INSTALL_DIR}/''applicationname''/icons&amp;lt;/tt&amp;gt;: locally for an application only (see also the section below)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{warning|This CMake macros takes '''all''' the icons with a &amp;quot;compact&amp;quot; naming in the current directory, and installs them in the &amp;lt;installation directory&amp;gt; specified. Hence, to install some icons in one location and some in another, the only solution is to put the icons in different directories with ad-hoc &amp;lt;tt&amp;gt;kde4_install_icons()&amp;lt;/tt&amp;gt; calls.}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Choosing the right icon theme and installation directory ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Choosing the right icon theme and installation directory ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;There are few things to keep into account when choosing which icon theme use for icons, and which directory install them into.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;There are few things to keep into account when choosing which icon theme use for icons, and which directory install them into.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;=== Own application &lt;/del&gt;icon &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;===&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;One thing to remember is that the &amp;lt;tt&amp;gt;hicolor&amp;lt;/tt&amp;gt; &lt;/ins&gt;icon &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;theme (called ''fallback theme'') is the only common denimonator among all the possible icon themes.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;When install the icon of &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;your own &lt;/del&gt;application, you want to make it used by &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;any other user&lt;/del&gt;, regarless of which icon theme they are using. Because of this:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=== Application icon ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use the &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt; (hicolor) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;icon theme, which is the only common denominator (called also ''fallback theme'') among any &lt;/del&gt;icon theme&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;When install the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;application &lt;/ins&gt;icon of &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;an application (i.e. the icon representing the &lt;/ins&gt;application&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, usually named after the application itself)&lt;/ins&gt;, you want to make it used by &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;anyone&lt;/ins&gt;, regarless of which icon theme they are using. Because of this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use the &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt; (hicolor) icon theme&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use &amp;lt;tt&amp;gt;${ICON_INSTALL_DIR}&amp;lt;/tt&amp;gt; as installation directory, as it allows the icon to be seen by all the other applications installed in the same prefix&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* use &amp;lt;tt&amp;gt;${ICON_INSTALL_DIR}&amp;lt;/tt&amp;gt; as installation directory, as it allows the icon to be seen by all the other applications installed in the same prefix&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Other icons for own &lt;/del&gt;application ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Simple &lt;/ins&gt;application&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, other icons &lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;This is the case for KDE applications with nothing like plugins for plugin systems not of the own application itself (like kparts, kioslaves, konqueror service menus, etc). In this case:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* use the &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt; (hicolor) icon theme, which is the only common denominator (called also ''fallback theme'') among any icon theme&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* use &amp;lt;tt&amp;gt;${DATA_INSTALL_DIR}/''applicationname''/icons&amp;lt;/tt&amp;gt; as installation directory&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;TODO&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Installing the icons in a ''icons'' subdirectory of the application data directory allows the application to make use of them without &amp;quot;polluting&amp;quot; the global icon theme with application-specific icons, but still making icon themes able to ''override'' the &amp;lt;tt&amp;gt;hicolor&amp;lt;/tt&amp;gt; icons of the application with own icons.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pino</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/index.php?title=User:Pino/Handling_icons&amp;diff=58799&amp;oldid=prev</id>
		<title>Pino: first draft</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=User:Pino/Handling_icons&amp;diff=58799&amp;oldid=prev"/>
				<updated>2011-05-24T21:30:26Z</updated>
		
		<summary type="html">&lt;p&gt;first draft&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{warning|This is '''not''' an official page.}}&lt;br /&gt;
{{Under Construction}}&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
&lt;br /&gt;
=== Compact naming ===&lt;br /&gt;
&lt;br /&gt;
One of the most common ways to name icons in sources is a &amp;quot;compact&amp;quot; form which includes various details. The format is the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;theme&amp;gt;&amp;lt;size&amp;gt;-&amp;lt;context&amp;gt;-&amp;lt;name&amp;gt;.&amp;lt;extension&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ''theme'': the two-letter name of the icon theme; for example:&lt;br /&gt;
** &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt;: hicolor&lt;br /&gt;
** &amp;lt;tt&amp;gt;ox&amp;lt;/tt&amp;gt;: Oxygen&lt;br /&gt;
** &amp;lt;tt&amp;gt;cr&amp;lt;/tt&amp;gt;: Crystal SVG&lt;br /&gt;
** &amp;lt;tt&amp;gt;lo&amp;lt;/tt&amp;gt;: locolor&lt;br /&gt;
* ''size'': the size of the icon in pixels (e.g. &amp;lt;tt&amp;gt;24&amp;lt;/tt&amp;gt; for a 24x24 icon), with the special value &amp;lt;tt&amp;gt;sc&amp;lt;/tt&amp;gt; for scalable icons in SVG(Z) format&lt;br /&gt;
* ''context'': the context for the icon, as specified in either the [http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html XDG icon theme specification] or the [http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html XDG icon naming specification]; e.g. &amp;lt;tt&amp;gt;app&amp;lt;/tt&amp;gt; for application icons, &amp;lt;tt&amp;gt;mime&amp;lt;/tt&amp;gt; for MIME type icons, and so on&lt;br /&gt;
* ''name'': the real name of the icon&lt;br /&gt;
* ''extension'': the extension of the icon, e.g. &amp;lt;tt&amp;gt;png&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;svg&amp;lt;/tt&amp;gt;, etc&lt;br /&gt;
&lt;br /&gt;
=== Installing with CMake (KDE 4) ===&lt;br /&gt;
&lt;br /&gt;
To install icons with the CMake buildsystem using the KDE4 macros, you just need to use&lt;br /&gt;
&amp;lt;pre&amp;gt;kde4_install_icons(&amp;lt;installation directory&amp;gt;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
This CMake macros takes '''all''' the icons with a &amp;quot;compact&amp;quot; naming in the current directory, and installs them in the &amp;lt;installation directory&amp;gt; specified. Hence, if you want to install some icons in one location and some in another, the only solution you have is to put the icons in different directories with ad-hoc &amp;lt;tt&amp;gt;kde4_install_icons()&amp;lt;/tt&amp;gt; calls.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;installation directory&amp;gt; is usually&lt;br /&gt;
* &amp;lt;tt&amp;gt;${ICON_INSTALL_DIR}&amp;lt;/tt&amp;gt;: installs the icons in the &amp;lt;tt&amp;gt;share/icons&amp;lt;/tt&amp;gt; subdirectory of the installation prefix.&lt;br /&gt;
* &amp;lt;tt&amp;gt;${DATA_INSTALL_DIR}/''applicationname''/icons&amp;lt;/tt&amp;gt;: locally for an application only (see also the section below)&lt;br /&gt;
&lt;br /&gt;
== Choosing the right icon theme and installation directory ==&lt;br /&gt;
&lt;br /&gt;
There are few things to keep into account when choosing which icon theme use for icons, and which directory install them into.&lt;br /&gt;
&lt;br /&gt;
=== Own application icon ===&lt;br /&gt;
&lt;br /&gt;
When install the icon of your own application, you want to make it used by any other user, regarless of which icon theme they are using. Because of this:&lt;br /&gt;
* use the &amp;lt;tt&amp;gt;hi&amp;lt;/tt&amp;gt; (hicolor) icon theme, which is the only common denominator (called also ''fallback theme'') among any icon theme&lt;br /&gt;
* use &amp;lt;tt&amp;gt;${ICON_INSTALL_DIR}&amp;lt;/tt&amp;gt; as installation directory, as it allows the icon to be seen by all the other applications installed in the same prefix&lt;br /&gt;
&lt;br /&gt;
=== Other icons for own application ===&lt;br /&gt;
&lt;br /&gt;
TODO&lt;/div&gt;</summary>
		<author><name>Pino</name></author>	</entry>

	</feed>