Bladeren bron

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

master
hristoterezov 10 jaren geleden
bovenliggende
commit
cbeff0d7b7
3 gewijzigde bestanden met toevoegingen van 22 en 0 verwijderingen
  1. 5
    0
      css/main.css
  2. 1
    0
      desktopsharing.js
  3. 16
    0
      toolbar.js

+ 5
- 0
css/main.css Bestand weergeven

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

+ 1
- 0
desktopsharing.js Bestand weergeven

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

+ 16
- 0
toolbar.js Bestand weergeven

@@ -238,5 +238,21 @@ var Toolbar = (function (my) {
238 238
         }
239 239
     };
240 240
 
241
+    /**
242
+     * Sets the state of the button. The button has blue glow if desktop streaming is active.
243
+     * @param active the state of the desktop streaming.
244
+     */
245
+    my.changeDesktopSharingButtonState = function (active) {
246
+        var button = $("#desktopsharing > a");
247
+        if(active)
248
+        {
249
+            button.addClass("glow");
250
+        }
251
+        else
252
+        {
253
+            button.removeClass("glow");
254
+        }
255
+    }
256
+
241 257
     return my;
242 258
 }(Toolbar || {}));

Laden…
Annuleren
Opslaan