Skip to content
Snippets Groups Projects
Commit ddcd51be authored by Leslie Linden's avatar Leslie Linden
Browse files

Merge

parents 4eecfd4f adeaf71e
No related branches found
No related tags found
No related merge requests found
...@@ -515,15 +515,6 @@ BOOL LLButton::handleRightMouseUp(S32 x, S32 y, MASK mask) ...@@ -515,15 +515,6 @@ BOOL LLButton::handleRightMouseUp(S32 x, S32 y, MASK mask)
return TRUE; return TRUE;
} }
void LLButton::onMouseEnter(S32 x, S32 y, MASK mask)
{
LLUICtrl::onMouseEnter(x, y, mask);
if (isInEnabledChain())
mNeedsHighlight = TRUE;
}
void LLButton::onMouseLeave(S32 x, S32 y, MASK mask) void LLButton::onMouseLeave(S32 x, S32 y, MASK mask)
{ {
LLUICtrl::onMouseLeave(x, y, mask); LLUICtrl::onMouseLeave(x, y, mask);
...@@ -538,6 +529,10 @@ void LLButton::setHighlight(bool b) ...@@ -538,6 +529,10 @@ void LLButton::setHighlight(bool b)
BOOL LLButton::handleHover(S32 x, S32 y, MASK mask) BOOL LLButton::handleHover(S32 x, S32 y, MASK mask)
{ {
if (isInEnabledChain()
&& (!gFocusMgr.getMouseCapture() || gFocusMgr.getMouseCapture() != this))
mNeedsHighlight = TRUE;
if (!childrenHandleHover(x, y, mask)) if (!childrenHandleHover(x, y, mask))
{ {
if (mMouseDownTimer.getStarted()) if (mMouseDownTimer.getStarted())
......
...@@ -160,7 +160,6 @@ class LLButton ...@@ -160,7 +160,6 @@ class LLButton
virtual void draw(); virtual void draw();
/*virtual*/ BOOL postBuild(); /*virtual*/ BOOL postBuild();
virtual void onMouseEnter(S32 x, S32 y, MASK mask);
virtual void onMouseLeave(S32 x, S32 y, MASK mask); virtual void onMouseLeave(S32 x, S32 y, MASK mask);
virtual void onMouseCaptureLost(); virtual void onMouseCaptureLost();
......
...@@ -577,7 +577,7 @@ void LLToolBar::draw() ...@@ -577,7 +577,7 @@ void LLToolBar::draw()
if (command && btn->mIsRunningSignal) if (command && btn->mIsRunningSignal)
{ {
const bool button_command_running = (*btn->mIsRunningSignal)(btn, command->isRunningParameters()); const bool button_command_running = (*btn->mIsRunningSignal)(btn, command->isRunningParameters());
btn->setFlashing(button_command_running); btn->setToggleState(button_command_running);
} }
} }
} }
......
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
bg_opaque_image_overlay="MouseGray" bg_opaque_image_overlay="MouseGray"
background_opaque="true"/> background_opaque="true"/>
<button_icon_and_text imgoverlay_label_space="7" <button_icon_and_text imgoverlay_label_space="7"
label_color_selected="White"
image_pressed="PushButton_Press"
image_pressed_selected="PushButton_Selected_Press"
image_selected="PushButton_Selected_Press"
button_width.min="70" button_width.min="70"
button_width.max="140" button_width.max="140"
desired_height="24" desired_height="24"
...@@ -25,6 +29,9 @@ ...@@ -25,6 +29,9 @@
flash_color="EmphasisColor"/> flash_color="EmphasisColor"/>
<button_icon pad_left="10" <button_icon pad_left="10"
pad_right="10" pad_right="10"
image_pressed="PushButton_Press"
image_pressed_selected="PushButton_Selected_Press"
image_selected="PushButton_Selected_Press"
desired_height="35" desired_height="35"
button_width.min="35" button_width.min="35"
button_width.max="35" button_width.max="35"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment