Boldface group moderators' names in the group IM member list. Fixes FIRE-984.
parent
de33331ee0
commit
25d24cce01
|
|
@ -67,6 +67,7 @@ LLAvatarListItem::Params::Params()
|
|||
voice_call_left_style("voice_call_left_style"),
|
||||
online_style("online_style"),
|
||||
offline_style("offline_style"),
|
||||
group_moderator_style("group_moderator_style"),
|
||||
name_right_pad("name_right_pad",0)
|
||||
{};
|
||||
|
||||
|
|
@ -312,6 +313,9 @@ void LLAvatarListItem::setState(EItemState item_style)
|
|||
case IS_OFFLINE:
|
||||
mAvatarNameStyle = params.offline_style();
|
||||
break;
|
||||
case IS_GROUPMOD:
|
||||
mAvatarNameStyle = params.group_moderator_style();
|
||||
break;
|
||||
}
|
||||
|
||||
// *NOTE: You cannot set the style on a text box anymore, you must
|
||||
|
|
@ -783,6 +787,11 @@ LLAvatarListItem::icon_color_map_t& LLAvatarListItem::getItemIconColorMap()
|
|||
std::make_pair(IS_OFFLINE,
|
||||
LLUIColorTable::instance().getColor("AvatarListItemIconOfflineColor", LLColor4::white)));
|
||||
|
||||
// TS: Group moderators get the online color
|
||||
item_icon_color_map.insert(
|
||||
std::make_pair(IS_GROUPMOD,
|
||||
LLUIColorTable::instance().getColor("AvatarListItemIconOnlineColor", LLColor4::white)));
|
||||
|
||||
return item_icon_color_map;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,9 @@ public:
|
|||
voice_call_joined_style,
|
||||
voice_call_left_style,
|
||||
online_style,
|
||||
offline_style;
|
||||
offline_style,
|
||||
group_moderator_style;
|
||||
|
||||
|
||||
Optional<S32> name_right_pad;
|
||||
|
||||
|
|
@ -65,6 +67,7 @@ public:
|
|||
IS_VOICE_LEFT,
|
||||
IS_ONLINE,
|
||||
IS_OFFLINE,
|
||||
IS_GROUPMOD,
|
||||
} EItemState;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -347,6 +347,7 @@ void LLParticipantList::onAvatarListRefreshed(LLUICtrl* ctrl, const LLSD& param)
|
|||
tooltip.erase(found, moderator_indicator_len);
|
||||
item->setAvatarToolTip(tooltip);
|
||||
}
|
||||
item->setState(LLAvatarListItem::IS_ONLINE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -376,6 +377,7 @@ void LLParticipantList::onAvatarListRefreshed(LLUICtrl* ctrl, const LLSD& param)
|
|||
tooltip += moderator_indicator;
|
||||
item->setAvatarToolTip(tooltip);
|
||||
}
|
||||
item->setState(LLAvatarListItem::IS_GROUPMOD);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,4 +41,10 @@
|
|||
font="SansSerifSmall"
|
||||
font.style="NORMAL"
|
||||
color="SL-MidDkGray"/>
|
||||
|
||||
<!-- TS: styles for GROUP MODERATOR avatar item (FIRE-984) -->
|
||||
<group_moderator_style
|
||||
font="SansSerifSmall"
|
||||
font.style="BOLD"
|
||||
color="White"/>
|
||||
</avatar_list_item>
|
||||
|
|
|
|||
|
|
@ -41,4 +41,10 @@
|
|||
font="SansSerifSmall"
|
||||
font.style="NORMAL"
|
||||
color="SL-MidDkGray"/>
|
||||
|
||||
<!-- TS: styles for GROUP MODERATOR avatar item (FIRE-984) -->
|
||||
<group_moderator_style
|
||||
font="SansSerifSmall"
|
||||
font.style="BOLD"
|
||||
color="White"/>
|
||||
</avatar_list_item>
|
||||
|
|
|
|||
|
|
@ -42,4 +42,10 @@
|
|||
font="SansSerifSmall"
|
||||
font.style="NORMAL"
|
||||
color="SL-MidDkGray"/>
|
||||
|
||||
<!-- TS: styles for GROUP MODERATOR avatar item (FIRE-984)-->
|
||||
<group_moderator_style
|
||||
font="SansSerifSmall"
|
||||
font.style="BOLD"
|
||||
color="White"/>
|
||||
</avatar_list_item>
|
||||
|
|
|
|||
Loading…
Reference in New Issue