EXT-7293 : Make link items easier to distinguish from regular items

Link items now appear in light gray.
master
Loren Shih 2010-05-10 13:59:57 -04:00
parent 8e1dbbbb56
commit 79457a85fe
2 changed files with 6 additions and 0 deletions

View File

@ -836,6 +836,7 @@ void LLFolderViewItem::draw()
static LLUIColor sFilterTextColor = LLUIColorTable::instance().getColor("FilterTextColor", DEFAULT_WHITE);
static LLUIColor sSuffixColor = LLUIColorTable::instance().getColor("InventoryItemColor", DEFAULT_WHITE);
static LLUIColor sLibraryColor = LLUIColorTable::instance().getColor("InventoryItemLibraryColor", DEFAULT_WHITE);
static LLUIColor sLinkColor = LLUIColorTable::instance().getColor("InventoryItemLinkColor", DEFAULT_WHITE);
static LLUIColor sSearchStatusColor = LLUIColorTable::instance().getColor("InventorySearchStatusColor", DEFAULT_WHITE);
const Params& default_params = LLUICtrlFactory::getDefaultParams<LLFolderViewItem>();
@ -965,6 +966,8 @@ void LLFolderViewItem::draw()
}
LLColor4 color = (mIsSelected && filled) ? sHighlightFgColor : sFgColor;
const LLViewerInventoryItem *item = getInventoryItem();
if (item && item->getIsLinkType()) color = sLinkColor;
if (in_library) color = sLibraryColor;
F32 right_x = 0;

View File

@ -423,6 +423,9 @@
<color
name="InventoryItemLibraryColor"
reference="EmphasisColor" />
<color
name="InventoryItemLinkColor"
reference="LtGray_50" />
<color
name="InventorySearchStatusColor"
reference="EmphasisColor" />