EXT-5646 Replace the "More >>" chevron with the art we use for the Favorites bar overflow (TabIcon_Close_Off and TabIcon_Close_Over).

cc # 179
master
Leyla Farazha 2010-04-07 15:05:55 -07:00
parent 8bf3a6ad2b
commit 6900278d7f
2 changed files with 19 additions and 4 deletions

View File

@ -168,7 +168,7 @@ BOOL LLPanelNearByMedia::postBuild()
mLessRect = getRect();
mLessRect.mBottom = minimized_controls->getRect().mBottom;
getChild<LLUICtrl>("more_less_btn")->setValue(false);
getChild<LLUICtrl>("more_btn")->setVisible(false);
onMoreLess();
return TRUE;
@ -954,7 +954,7 @@ void LLPanelNearByMedia::onAdvancedButtonClick()
void LLPanelNearByMedia::onMoreLess()
{
bool is_more = getChild<LLUICtrl>("more_less_btn")->getValue();
bool is_more = getChild<LLUICtrl>("more_btn")->getVisible();
mNearbyMediaPanel->setVisible(is_more);
// enable resizing when expanded
@ -964,6 +964,9 @@ void LLPanelNearByMedia::onMoreLess()
new_rect.translate(getRect().mRight - new_rect.mRight, getRect().mTop - new_rect.mTop);
setShape(new_rect);
getChild<LLUICtrl>("more_btn")->setVisible(!is_more);
getChild<LLUICtrl>("less_btn")->setVisible(is_more);
}
void LLPanelNearByMedia::updateControls()

View File

@ -64,19 +64,31 @@
function="MediaListCtrl.GoMediaPrefs" />
</button>
<button
name="more_less_btn"
name="more_btn"
follows="right"
tool_tip="Advanced Controls"
top_delta="0"
right="-8"
width="66"
height="22"
toggle="true"
label="More &gt;&gt;"
label_selected="Less &lt;&lt;">
<button.commit_callback
function="MediaListCtrl.MoreLess" />
</button>
<button
name="less_btn"
follows="right"
tool_tip="Advanced Controls"
top_delta="0"
right="-8"
width="66"
height="22"
label="More &gt;&gt;"
label_selected="Less &lt;&lt;">
<button.commit_callback
function="MediaListCtrl.MoreLess" />
</button>
</panel>
<panel
name="nearby_media_panel"