1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Introjucer: refactored icons.

This commit is contained in:
jules 2012-07-08 22:02:59 +01:00
parent ceb556876a
commit 1f2b26a30b
9 changed files with 54 additions and 48 deletions

View file

@ -771,23 +771,23 @@ bool Project::Item::addRelativeFile (const RelativePath& file, int insertIndex,
return false;
}
const Drawable* Project::Item::getIcon() const
Icon Project::Item::getIcon() const
{
const Icons& icons = getIcons();
if (isFile())
{
if (isImageFile())
return icons.imageDoc;
return Icon (icons.imageDoc, Colours::blue);
return icons.document;
return Icon (icons.document, Colours::yellow.darker (1.0f));
}
else if (isMainGroup())
{
return icons.juceLogo;
return Icon (icons.juceLogo, Colours::orange);
}
return icons.folder;
return Icon (icons.folder, Colours::darkgrey);
}
//==============================================================================