Adds glow to desktop streaming icon if desktop streaming is active.
This commit is contained in:
@@ -307,3 +307,8 @@ form {
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.glow
|
||||
{
|
||||
text-shadow: 0px 0px 30px #06a5df, 0px 0px 10px #06a5df, 0px 0px 5px #06a5df,0px 0px 3px #06a5df;
|
||||
}
|
||||
|
||||
@@ -247,6 +247,7 @@ function streamSwitchDone() {
|
||||
//window.setTimeout(
|
||||
// function () {
|
||||
switchInProgress = false;
|
||||
Toolbar.changeDesktopSharingButtonState(isUsingScreenStream);
|
||||
// }, 100
|
||||
//);
|
||||
}
|
||||
|
||||
+16
@@ -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;
|
||||
}(Toolbar || {}));
|
||||
|
||||
Reference in New Issue
Block a user