Pārlūkot izejas kodu

feat(avatar-background): Change default colors for avatar backgrounds

master
hmuresan 3 gadus atpakaļ
vecāks
revīzija
4a322d2e60
1 mainītis faili ar 10 papildinājumiem un 8 dzēšanām
  1. 10
    8
      react/features/base/avatar/functions.js

+ 10
- 8
react/features/base/avatar/functions.js Parādīt failu

3
 import _ from 'lodash';
3
 import _ from 'lodash';
4
 
4
 
5
 const AVATAR_COLORS = [
5
 const AVATAR_COLORS = [
6
-    '232, 105, 156',
7
-    '255, 198, 115',
8
-    '128, 128, 255',
9
-    '105, 232, 194',
10
-    '234, 255, 128'
6
+    '#6A50D3',
7
+    '#FF9B42',
8
+    '#DF486F',
9
+    '#73348C',
10
+    '#B23683',
11
+    '#F96E57',
12
+    '#4380E2',
13
+    '#2AA076',
14
+    '#00A8B3'
11
 ];
15
 ];
12
 
16
 
13
-const AVATAR_OPACITY = 0.4;
14
-
15
 /**
17
 /**
16
  * Generates the background color of an initials based avatar.
18
  * Generates the background color of an initials based avatar.
17
  *
19
  *
35
         colorIndex = nameHash % colorsBase.length;
37
         colorIndex = nameHash % colorsBase.length;
36
     }
38
     }
37
 
39
 
38
-    return hasCustomAvatarBackgronds ? colorsBase[colorIndex] : `rgba(${colorsBase[colorIndex]}, ${AVATAR_OPACITY})`;
40
+    return colorsBase[colorIndex];
39
 }
41
 }
40
 
42
 
41
 /**
43
 /**

Notiek ielāde…
Atcelt
Saglabāt