Here's a bit about icons:
Attachment:
gimp-tool-icons_options.png [ 21.5 KiB | Viewed 13414 times ]
In this example I've replaced the default icons for the airbrush and bucket-fill tools using the
symbolic icons. I have also created and referenced a green icon for when the mouse is hovered over the airbrush button (the PRELIGHT state)
It's also obvious from my example that the symbolic icons are the wrong colour for this background as they are too light against the horrible pink.
style "gimp-icons"
{
stock["gimp-tool-airbrush"] =
{
{ "stock_icons/tools/stock-tool-airbrush-22.png", *, *, "gtk-button" },
{ "stock_icons/tools/stock-tool-airbrush-22-prelight.png", *, PRELIGHT, "gtk-button" },
{ "stock_icons/tools/stock-tool-airbrush-22.png", *, *, * }
}
stock["gimp-tool-bucket-fill"] = { { "stock_icons/tools/stock-tool-bucket-fill-22.png" } }
# stock["gimp-tool-clone"] = { { "stock_icons/gtk-stock/dialog-warning-48.png", *, *, "gtk-button" } }
stock["gimp-warning"] =
{
{ "stock_icons/gtk-stock/dialog-warning-22.png", *, *, "gtk-button" },
{ "stock_icons/gtk-stock/dialog-warning-22.png", *, ACTIVE, "gtk-button" },
{ "stock_icons/gtk-stock/dialog-warning-22.png", *, PRELIGHT, "gtk-button" },
{ "stock_icons/gtk-stock/dialog-warning-22.png", *, *, * },
{ "stock_icons/gtk-stock/dialog-warning-48.png", *, *, "gtk-dialog" }
}
# GTK_STOCK: http://www.gtk.org/api/2.6/gtk/gtk-Stock-Items.html
#
stock["gtk-new"] =
{
{ "stock_icons/gtk-stock/folder-documents-22.png", *, *, "gtk-button" },
{ "stock_icons/gtk-stock/folder-documents-22.png", *, ACTIVE, "gtk-button" },
{ "stock_icons/gtk-stock/folder-documents-22.png", *, PRELIGHT, "gtk-button" },
{ "stock_icons/gtk-stock/folder-documents-22.png", *, *, * }
}
stock["gtk-open"] =
{
{ "stock_icons/gtk-stock/document-open-22.png", *, *, "gtk-button" },
{ "stock_icons/gtk-stock/document-open-22.png", *, ACTIVE, "gtk-button" },
{ "stock_icons/gtk-stock/document-open-22.png", *, PRELIGHT, "gtk-button" },
{ "stock_icons/gtk-stock/document-open-22.png", *, *, * }
}
}
class "GtkWidget" style "gimp-icons"
This code also defines a different sized warning icon for when the icon is used in a gtk-dialog, so that GTK doesn't have to scale the small icon up:
Attachment:
gimp-warning-icon.png [ 30.75 KiB | Viewed 13414 times ]
Finally, here's the toolbox in my current theme using the symbolic icons:
Attachment:
toolbox-symbolic.png [ 21.99 KiB | Viewed 13414 times ]
Kevin