Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Icons packs

fballiano edited this page Aug 30, 2012 · 1 revision

How to use an icon pack

Download the chosen icon pack, extract it under the p4a/icons folder and define the P4A_ICONS_NAME constant in your application's index.php as the name of the folder just created under p4a/icons, eg:

define('P4A_ICONS_NAME', 'human');

If you don't want to put your new icons pack within the p4a/icons folder, extract it where you want (inside the web server's document root) and define the P4A_ICONS_PATH constant instead of the P4A_ICONS_NAME one, eg:

define('P4A_ICONS_PATH', '/human');

How to create an icon pack

Manually

Just copy the default P4A icons pack (available under the p4a/icons/default folder) and replace all the icons you need with your new ones. Just remember to respect the icon sizes, in the icons pack folder you'll find some subfolders (16, 32), that number is the size in pixels of all the icons within.

Importing freedesktop compatible icons packs

freedesktop compatible icons packs are available for the GNOME desktop environment (maybe KDE 4 too, not sure about that)

  • download the build_icon_theme.php script
  • run php build_icon_theme.php /path/where/new/icons/pack/will/be/created /path/to/your/first/icons/pack/ /path/to/your/second/icons/pack/, the new icons pack will be created where you decided (the first parameter), now you have just to use it.

The build_icon_theme.php script supports up to 2 source folders, that's commonly needed because a gtk theme can inherit from another gtk theme, thus in your chosen one maybe you won't find all the icons you need, the missing ones will be searched within the folder provided as the second parameter.

A quick video guide of this feature is contained in the Theme customizations in RC5 video tutorial on P4A TV.

Importing old KDE 3 themes

  • download the oldkdeicons2p4a.php script
  • run php oldkdeicons2p4a.php /path/to/your/chosen/icons/pack/ /path/where/new/icons/pack/will/be/created, the new icons pack will be created where you decided (the second parameter), now you have just to use it.

Available icons packs

No available icons packs at this time, if you packaged an icon pack on your server, feel free to link it here.