History of IconStyles
Version 7 | Current version | |
---|---|---|
{r2} bitweaver has always had th eoption of using your own icons by overriding existing ones. This has just been overhauled in R2 - our icon styles are now compatible with Gnome and KDE icon themes! Using the IconStylesIconStyles can be viewed and chosen on the Admin --> Themes --> Themes Manager page. A selection of icons is shown that you can select your favourite theme easily.As soon as you add a new icon style, it should appear on the Themes Manager ready for selection. A screenshot of the administration area where you can pick an icon style Where can i get more IconStyles?We don't have a repository for this yet. Hopefully soon though. We have started some icon research with a list of possible icon sets.Adding new IconStylesIt's quite easy to add new IconStyles thanks to the fact that we try to stick to the official Icon Naming Specification. Since the Tango Desktop Project is tightly associated with the icon naming specification we chose this theme as the bitweaver default.Where are Icon Styles?You can find icon styles in your themes directory. The structure of an icon style is outlined below.IconStyles Directory
1. Get new Icon ThemeYou can get more icon themes from here - Please note that most of these themes don't adhere to the naming convention yet and will therefore probably not work with bitweaver. If you find new themes that adhere to naming specifications please let us know.2. Make the icon style compatible with bitweaverThere are 3 types of icon themes:
1. Full icon set themesThese icon themes are the easiest to convert.Typical icon theme directory structure
We now need to move all the icons of a given size to a directory called small. Do the same for some other size and large. In bitweaver we are using 16x16 as small and 32x32 for large icons. Finally we copy the files into an appropriately named directory in bitweaver icon_themes. In the example below we will create a style called foo. Execute this to move all icons to the appropriate directories
2. SVG icon set themesThese icon themes contain SVG icon files and some also have some png files especially for small versions of the icons to make them look nice at those sizes. If you are on windows I have no idea how to convert these icons using a batch process (perhaps irfanview can deal with SVG files). On linux you will need rsvg in your path to execute the following script (you need to install librsvg if you don't have it).Add style informationThe style_info directory works exactly the same as it does in the theme styles directories. Please look at existing ones to see what is going on in there.Override a couple of iconsThe Tango icon theme is our default icon theme. This means that any icon that isn't found in your selected icon style will be searched for in the Tango theme. If you want to override a couple of icons, you can simply create your custom icon style in themes/icon_styles/ and then place your icons in the small and large subdirectories using the same names as in the Tango theme. Finally select your icon style in the Themes Manager page.If you want to change the default icon style - we don't have an interface for this - you need to edit the define() in kernel/setup_inc.php kernel/setup_inc.php
Convert all icons to gifThanks to our alltime favourite browser MSIE it's virtually impossible to use png icons unless you use some javascript. If you want to avoid this, you can use gif icons instead. i fyou are on linux and have ImageMagic installed, you can use this little script to convert all the png images to gifsThe above script will also create gif copies of all png icons, but if you want to do it manually, here is a code snippet that might help you. PNG to GIF conversion script
Overriding icons that are not found in the icon styleSome packages still require their own icons as the icon themes only provide a certain set of icons which are not always sufficient. You can override these in using the icons directory.e.g.: To override the busy icon in liberty/icons/ place the busy icon you want to use (must have either gif, png or jpg extension) in themes/styles/<style>/icons/liberty/ </style> | Bitweaver's Icon Styles are compatible with Gnome and KDE icon themes. Icon Styles can be viewed and chosen on the Admin > Themes > Themes Manager page. Icons Styles are presented for you to select from: About Icon StylesIcon Styles added by the admin appear on the Themes Manager page. See icon research as a starting point for a new Icon Style. It's quite easy to add new Icon Styles thanks to the fact that Bitweaver sticks to the official Icon Naming Specification. Since the Tango Desktop Project is tightly associated with the icon naming specification we chose their theme Tango as bitweaver's default. The available Icon Styles reside in the themes directory:IconStyles Directory
Overriding or adding specific iconsTo use icons that are not part of an Icon Style, or to override icons that are, use the icons directory in your custom style. E.g., to override the "busy" icon in liberty/icons/ place the new "busy" icon in themes/styles/yourstyle/icons/liberty/ (must have either gif, png or jpg extension).Getting new icon themesIcon themes that don't adhere to the naming convention will probably not work with Bitweaver. Themes that do adhere to the naming specifications can be found on sites like:Making the icon theme compatible with BitweaverThere are 3 types of icon themes:
1. Full icon set themesThese icon themes are the easiest to convert.Typical icon theme directory structure
We now need to move all the icons of a given size to directories called small and large. Bitweaver uses 16x16 px for small and 32x32 px for large icons. Finally we copy the files into an appropriately named directory in bitweaver icon_themes. In the example below we will create a style called foo. Execute this to move all icons to the appropriate directories
2. SVG icon set themesThese kinds of icon themes contain SVG icon files and also PNG files for small versions of the icons. On Linux you will need rsvg in your path to execute the following script (librsvg is required).Addding style informationThe style_info directory works exactly the same as it does in the theme styles directories.Overriding a couple of iconsThe Tango icon theme is BitweaveR's default Icon Style. Any icon not found in the currently selected Icon Style will be searched for in the Tango theme. If you want to override a couple of icons, you can simply create your custom Icon Style in /themes/icon_styles/ and then place your icons in the small and large subdirectories using the same names as in the Tango theme. Finally select your icon style in the Themes Manager page. To change the default Icon Style (Tango), edit kernel/setup_inc.php:kernel/setup_inc.php
Converting icons to GIFIf you want to avoid using Javascript to make PNG icons work in Microsoft's Internet Explorer, you can use GIF icons instead. On Linux with ImageMagic, you can use this little script to convert all the PNG images to GIFs. (The above script will also create GIF copies of all PNG icons, but if you want to do it manually, here is a code snippet that might help you.)PNG to GIF conversion script
|