浏览代码

feat(thumbnail-indicators): Configurable icon sizes.

master
Hristo Terezov 6 年前
父节点
当前提交
a95d38a0f4
共有 1 个文件被更改,包括 5 次插入10 次删除
  1. 5
    10
      modules/UI/util/UIUtil.js

+ 5
- 10
modules/UI/util/UIUtil.js 查看文件

18
     MEDIUM: 80
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
  * Created by hristo on 12/22/14.
22
  * Created by hristo on 12/22/14.
33
  */
23
  */
310
             ? $('#localVideoContainer').height() : thumbnailHeight;
300
             ? $('#localVideoContainer').height() : thumbnailHeight;
311
 
301
 
312
         const { SMALL, MEDIUM } = ThumbnailSizes;
302
         const { SMALL, MEDIUM } = ThumbnailSizes;
303
+        const IndicatorFontSizes = interfaceConfig.INDICATOR_FONT_SIZES || {
304
+            SMALL: 5,
305
+            MEDIUM: 6,
306
+            NORMAL: 8
307
+        };
313
         let fontSize = IndicatorFontSizes.NORMAL;
308
         let fontSize = IndicatorFontSizes.NORMAL;
314
 
309
 
315
         if (height <= SMALL) {
310
         if (height <= SMALL) {

正在加载...
取消
保存