From 374a5b7dbe248eb62ab0fd919c13dd4fe41de3a2 Mon Sep 17 00:00:00 2001 From: Mnikolenko ProductEngine Date: Tue, 4 Aug 2015 16:46:50 +0300 Subject: MAINT-5427 FIXED Highlight notifications when hovering mouse. --- indra/newview/llnotificationlistitem.cpp | 13 +++++++++++++ indra/newview/llnotificationlistitem.h | 2 ++ .../skins/default/xui/en/panel_notification_list_item.xml | 6 +++--- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/indra/newview/llnotificationlistitem.cpp b/indra/newview/llnotificationlistitem.cpp index 2b10457e99..6e2cc39a06 100644 --- a/indra/newview/llnotificationlistitem.cpp +++ b/indra/newview/llnotificationlistitem.cpp @@ -91,6 +91,7 @@ BOOL LLNotificationListItem::postBuild() mCondensedHeight = (S32)atoi(condensed_height_str.c_str()); setExpanded(FALSE); + return rv; } @@ -147,6 +148,18 @@ BOOL LLNotificationListItem::handleMouseUp(S32 x, S32 y, MASK mask) return res; } +void LLNotificationListItem::onMouseEnter(S32 x, S32 y, MASK mask) +{ + mCondensedViewPanel->setTransparentColor(LLUIColorTable::instance().getColor( "ScrollHoveredColor" )); + mExpandedViewPanel->setTransparentColor(LLUIColorTable::instance().getColor( "ScrollHoveredColor" )); +} + +void LLNotificationListItem::onMouseLeave(S32 x, S32 y, MASK mask) +{ + mCondensedViewPanel->setTransparentColor(LLUIColorTable::instance().getColor( "SysWellItemUnselected" )); + mExpandedViewPanel->setTransparentColor(LLUIColorTable::instance().getColor( "SysWellItemUnselected" )); +} + //static LLNotificationListItem* LLNotificationListItem::create(const Params& p) { diff --git a/indra/newview/llnotificationlistitem.h b/indra/newview/llnotificationlistitem.h index 4df21951a1..950b75c39a 100644 --- a/indra/newview/llnotificationlistitem.h +++ b/indra/newview/llnotificationlistitem.h @@ -79,6 +79,8 @@ public: // handlers virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); + virtual void onMouseEnter(S32 x, S32 y, MASK mask); + virtual void onMouseLeave(S32 x, S32 y, MASK mask); //callbacks typedef boost::function item_callback_t; diff --git a/indra/newview/skins/default/xui/en/panel_notification_list_item.xml b/indra/newview/skins/default/xui/en/panel_notification_list_item.xml index 00f75a1209..73f90f73aa 100644 --- a/indra/newview/skins/default/xui/en/panel_notification_list_item.xml +++ b/indra/newview/skins/default/xui/en/panel_notification_list_item.xml @@ -42,7 +42,7 @@ - + @@ -80,7 +80,7 @@ - + @@ -93,7 +93,7 @@ - + Notice Title Notice Title N o t i c e T i t l e N o t i c e T i t l e -- cgit v1.2.3