Adds glow to desktop streaming icon if desktop streaming is active.

This commit is contained in:
hristoterezov 2014-09-24 15:47:26 +03:00
parent 6fe0864402
commit cbeff0d7b7
3 changed files with 22 additions and 0 deletions

View File

@ -307,3 +307,8 @@ form {
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
} }
.glow
{
text-shadow: 0px 0px 30px #06a5df, 0px 0px 10px #06a5df, 0px 0px 5px #06a5df,0px 0px 3px #06a5df;
}

View File

@ -247,6 +247,7 @@ function streamSwitchDone() {
//window.setTimeout( //window.setTimeout(
// function () { // function () {
switchInProgress = false; switchInProgress = false;
Toolbar.changeDesktopSharingButtonState(isUsingScreenStream);
// }, 100 // }, 100
//); //);
} }

View File

@ -238,5 +238,21 @@ var Toolbar = (function (my) {
} }
}; };
/**
* Sets the state of the button. The button has blue glow if desktop streaming is active.
* @param active the state of the desktop streaming.
*/
my.changeDesktopSharingButtonState = function (active) {
var button = $("#desktopsharing > a");
if(active)
{
button.addClass("glow");
}
else
{
button.removeClass("glow");
}
}
return my; return my;
}(Toolbar || {})); }(Toolbar || {}));