Skip to content
andrew-bibb edited this page Sep 18, 2015 · 5 revisions

This page describes how to set the application icons. These are icons for the window bar, desktop files and are also used internally in several dialogs. If you wish to know how to change the internal icons please refer to this page.

Application Icon

Because the application icon must be available outside the program (for instance from desktop files) it needs to be defined at build time and if it exists will be installed during the make install phase.

In the build files /images/application contains the image used for the Application Icon. This file is called cmst.png. There is also a subdirectory there called variations. This subdirecotry contains user submitted icons for the program. You may use any icon there, or any other image for that matter. What you need to do is remove the cmst.png file then copy or symlink the image you want to use in its place (called cmst.png). Run through the "qmake, make, make install" process and the image you've defined as cmst.png will be the image used.

System Theme Icon

If you would prefer a Freedesktop.org named icon to be used for the program that is possible. What you need to do is in the build files go into /images/application and remove or rename the cmst.png file. Once that is done go through the normal build process and the Application Icon should be the preferences-system-network from your current theme. If you change icon themes the icon will update to the image in the new theme.

Changing Icon

If you decide to change the icon after you've installed one in addition to running "make clean" you want to go through and manually remove all Makefiles. Make clean does not do this and sometimes a remanant Makefile gives you a real hard problem to debug.

Clone this wiki locally