Pārlūkot izejas kodu

feat(thumbnail-indicators): Configurable icon sizes.

master
Hristo Terezov 6 gadus atpakaļ
vecāks
revīzija
a95d38a0f4
1 mainītis faili ar 5 papildinājumiem un 10 dzēšanām
  1. 5
    10
      modules/UI/util/UIUtil.js

+ 5
- 10
modules/UI/util/UIUtil.js Parādīt failu

@@ -18,16 +18,6 @@ const ThumbnailSizes = {
18 18
     MEDIUM: 80
19 19
 };
20 20
 
21
-/**
22
- * Contains font sizes for thumbnail indicators
23
- * @type {{SMALL: number, MEDIUM: number}}
24
- */
25
-const IndicatorFontSizes = {
26
-    SMALL: 5,
27
-    MEDIUM: 6,
28
-    NORMAL: 8
29
-};
30
-
31 21
 /**
32 22
  * Created by hristo on 12/22/14.
33 23
  */
@@ -310,6 +300,11 @@ const UIUtil = {
310 300
             ? $('#localVideoContainer').height() : thumbnailHeight;
311 301
 
312 302
         const { SMALL, MEDIUM } = ThumbnailSizes;
303
+        const IndicatorFontSizes = interfaceConfig.INDICATOR_FONT_SIZES || {
304
+            SMALL: 5,
305
+            MEDIUM: 6,
306
+            NORMAL: 8
307
+        };
313 308
         let fontSize = IndicatorFontSizes.NORMAL;
314 309
 
315 310
         if (height <= SMALL) {

Notiek ielāde…
Atcelt
Saglabāt