feat(thumbnail-indicators): Configurable icon sizes.

This commit is contained in:
Hristo Terezov 2019-02-21 17:10:22 +00:00
parent 981600a999
commit a95d38a0f4
1 changed files with 5 additions and 10 deletions

View File

@ -18,16 +18,6 @@ const ThumbnailSizes = {
MEDIUM: 80 MEDIUM: 80
}; };
/**
* Contains font sizes for thumbnail indicators
* @type {{SMALL: number, MEDIUM: number}}
*/
const IndicatorFontSizes = {
SMALL: 5,
MEDIUM: 6,
NORMAL: 8
};
/** /**
* Created by hristo on 12/22/14. * Created by hristo on 12/22/14.
*/ */
@ -310,6 +300,11 @@ const UIUtil = {
? $('#localVideoContainer').height() : thumbnailHeight; ? $('#localVideoContainer').height() : thumbnailHeight;
const { SMALL, MEDIUM } = ThumbnailSizes; const { SMALL, MEDIUM } = ThumbnailSizes;
const IndicatorFontSizes = interfaceConfig.INDICATOR_FONT_SIZES || {
SMALL: 5,
MEDIUM: 6,
NORMAL: 8
};
let fontSize = IndicatorFontSizes.NORMAL; let fontSize = IndicatorFontSizes.NORMAL;
if (height <= SMALL) { if (height <= SMALL) {