diff --git a/indra/newview/llstatusbar.cpp b/indra/newview/llstatusbar.cpp index e505230069b78866633cf5096cb88872e5895a43..b77ad47036ebb7aa5db970d8a6093f8f4bd61dce 100644 --- a/indra/newview/llstatusbar.cpp +++ b/indra/newview/llstatusbar.cpp @@ -176,10 +176,10 @@ BOOL LLStatusBar::postBuild() mBoxBalance = getChild<LLTextBox>("balance"); mBoxBalance->setClickedCallback( &LLStatusBar::onClickBalance, this ); - mIconPresetsCamera = getChild<LLIconCtrl>( "presets_icon_camera" ); + mIconPresetsCamera = getChild<LLButton>( "presets_icon_camera" ); mIconPresetsCamera->setMouseEnterCallback(boost::bind(&LLStatusBar::onMouseEnterPresetsCamera, this)); - mIconPresetsGraphic = getChild<LLIconCtrl>( "presets_icon_graphic" ); + mIconPresetsGraphic = getChild<LLButton>( "presets_icon_graphic" ); mIconPresetsGraphic->setMouseEnterCallback(boost::bind(&LLStatusBar::onMouseEnterPresets, this)); mBtnQuickSettings = getChild<LLButton>("quick_settings_btn"); diff --git a/indra/newview/llstatusbar.h b/indra/newview/llstatusbar.h index 62679e7648da358ab6283bd68f73bdff271eb12b..1f057501babe6adc288fadb0dce8cd88a0c30b15 100644 --- a/indra/newview/llstatusbar.h +++ b/indra/newview/llstatusbar.h @@ -133,8 +133,8 @@ class LLStatusBar final LLTextBox *mTextFPS; LLView *mPanelPopupHolder; - LLIconCtrl *mIconPresetsCamera; - LLIconCtrl *mIconPresetsGraphic; + LLButton *mIconPresetsCamera; + LLButton *mIconPresetsGraphic; LLButton *mBtnQuickSettings; LLButton *mBtnAO; LLButton *mBtnVolume; diff --git a/indra/newview/skins/default/xui/en/panel_status_bar.xml b/indra/newview/skins/default/xui/en/panel_status_bar.xml index f8e6a55ee910ea41a599bf6b029cd6816be691fc..74da7a9908588c182f61e10a3ead4c21ad17171d 100644 --- a/indra/newview/skins/default/xui/en/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/en/panel_status_bar.xml @@ -130,24 +130,36 @@ width="120"> 24:00:00 AM PST </text> - <icon + <button follows="right|top" height="16" - image_name="Cam_FreeCam_Off" + image_selected="Cam_FreeCam_Off" + image_pressed="Cam_FreeCam_Off" + image_unselected="Cam_FreeCam_Off" left_pad="0" top="2" name="presets_icon_camera" - tool_tip="My Camera Presets" - width="18" /> - <icon + tool_tip="My Camera Presets" + width="16"> + <click_callback + function="Floater.ToggleOrBringToFront" + parameter="camera" /> + </button> + <button follows="right|top" - height="13" - image_name="Presets_Icon" + height="16" + image_selected="Presets_Icon" + image_pressed="Presets_Icon" + image_unselected="Presets_Icon" left_pad="6" - top="4" + top="2" name="presets_icon_graphic" - tool_tip="Graphics Presets" - width="16" /> + tool_tip="Graphics Presets" + width="16"> + <click_callback + function="Floater.ToggleOrBringToFront" + parameter="lightbox" /> + </button> <button follows="right|top" height="16" @@ -170,8 +182,7 @@ top="2" name="media_toggle_btn" tool_tip="Start/Stop All Media (Music, Video, Web pages)" - width="16" > - </button> + width="16" /> <button follows="right|top" height="16"