@@ -20,10 +20,11 @@ limitations under the License.
20
20
position : absolute ;
21
21
display : flex ;
22
22
justify-content : center ;
23
- bottom : 5 px ;
23
+ bottom : 24 px ;
24
24
opacity : 1 ;
25
25
transition : opacity 0.5s ;
26
26
z-index : 200 ; // To be above _all_ feeds
27
+ gap : 18px ;
27
28
28
29
& .mx_CallViewButtons_hidden {
29
30
opacity : 0.001 ; // opacity 0 can cause a re-layout
@@ -32,69 +33,121 @@ limitations under the License.
32
33
33
34
.mx_CallViewButtons_button {
34
35
cursor : pointer ;
35
- margin-left : 2px ;
36
- margin-right : 2px ;
36
+
37
+ background-color : $call-view-button-on-background ;
38
+
39
+ border-radius : 100% ;
40
+ height : 40px ;
41
+ width : 40px ;
42
+
43
+ display : flex ;
44
+ justify-content : center ;
45
+ align-items : center ;
37
46
38
47
& ::before {
39
48
content : ' ' ;
40
49
display : inline-block ;
41
50
42
- height : 48px ;
43
- width : 48px ;
51
+ mask-repeat : no-repeat ;
52
+ mask-size : contain ;
53
+ mask-position : center ;
44
54
45
- background-repeat : no-repeat ;
46
- background-size : contain ;
47
- background-position : center ;
48
- }
55
+ background-color : $call-view-button-on-foreground ;
49
56
50
- & .mx_CallViewButtons_dialpad ::before {
51
- background-image : url ( ' $(res)/img/voip/dialpad.svg ' ) ;
57
+ height : 24 px ;
58
+ width : 24 px ;
52
59
}
53
60
54
- & .mx_CallViewButtons_button_micOn ::before {
55
- background-image : url ( ' $(res)/img/voip/mic-on.svg ' );
56
- }
61
+ // State buttons
62
+ & .mx_CallViewButtons_button_on {
63
+ background-color : $call-view-button-on-background ;
57
64
58
- & .mx_CallViewButtons_button_micOff ::before {
59
- background-image : url ( ' $(res)/img/voip/mic-off.svg ' ) ;
60
- }
65
+ & ::before {
66
+ background-color : $call-view-button-on-foreground ;
67
+ }
61
68
62
- & .mx_CallViewButtons_button_vidOn ::before {
63
- background -image : url (' $(res)/img/voip/vid -on.svg' );
64
- }
69
+ & .mx_CallViewButtons_button_mic ::before {
70
+ mask -image : url (' $(res)/img/voip/call-view/mic -on.svg' );
71
+ }
65
72
66
- & .mx_CallViewButtons_button_vidOff ::before {
67
- background -image : url (' $(res)/img/voip/vid-off .svg' );
68
- }
73
+ & .mx_CallViewButtons_button_vid ::before {
74
+ mask -image : url (' $(res)/img/voip/call-view/cam-on .svg' );
75
+ }
69
76
70
- & .mx_CallViewButtons_button_screensharingOn ::before {
71
- background-image : url (' $(res)/img/voip/screensharing-on.svg' );
72
- }
77
+ & .mx_CallViewButtons_button_screensharing {
78
+ background-color : $accent ;
73
79
74
- & .mx_CallViewButtons_button_screensharingOff ::before {
75
- background-image : url (' $(res)/img/voip/screensharing-off.svg' );
80
+ & ::before {
81
+ mask-image : url (' $(res)/img/voip/call-view/screensharing.svg' );
82
+ background-color : white ; // Same on both themes
83
+ }
84
+ }
85
+
86
+ & .mx_CallViewButtons_button_sidebar ::before {
87
+ mask-image : url (' $(res)/img/voip/call-view/sidebar-on.svg' );
88
+ }
76
89
}
77
90
78
- & .mx_CallViewButtons_button_sidebarOn ::before {
79
- background-image : url (' $(res)/img/voip/sidebar-on.svg' );
91
+ & .mx_CallViewButtons_button_off {
92
+ background-color : $call-view-button-off-background ;
93
+
94
+ & ::before {
95
+ background-color : $call-view-button-off-foreground ;
96
+ }
97
+
98
+ & .mx_CallViewButtons_button_mic ::before {
99
+ mask-image : url (' $(res)/img/voip/call-view/mic-off.svg' );
100
+ }
101
+
102
+ & .mx_CallViewButtons_button_vid ::before {
103
+ mask-image : url (' $(res)/img/voip/call-view/cam-off.svg' );
104
+ }
105
+
106
+ & .mx_CallViewButtons_button_screensharing {
107
+ background-color : $call-view-button-on-background ;
108
+
109
+ & ::before {
110
+ mask-image : url (' $(res)/img/voip/call-view/screensharing.svg' );
111
+ background-color : $call-view-button-on-foreground ;
112
+ }
113
+ }
114
+
115
+ & .mx_CallViewButtons_button_sidebar {
116
+ background-color : $call-view-button-on-background ;
117
+
118
+ & ::before {
119
+ mask-image : url (' $(res)/img/voip/call-view/sidebar-off.svg' );
120
+ background-color : $call-view-button-on-foreground ;
121
+ }
122
+ }
80
123
}
124
+ // State buttons
81
125
82
- & .mx_CallViewButtons_button_sidebarOff ::before {
83
- background-image : url (' $(res)/img/voip/sidebar-off.svg' );
126
+ // Stateless buttons
127
+ & .mx_CallViewButtons_dialpad ::before {
128
+ mask-image : url (' $(res)/img/voip/call-view/dialpad.svg' );
84
129
}
85
130
86
- & .mx_CallViewButtons_button_hangup ::before {
87
- background-image : url (' $(res)/img/voip/hangup.svg' );
131
+ & .mx_CallViewButtons_button_hangup {
132
+ background-color : $alert ;
133
+
134
+ & ::before {
135
+ mask-image : url (' $(res)/img/voip/call-view/hangup.svg' );
136
+ background-color : white ; // Same on both themes
137
+ }
88
138
}
89
139
90
140
& .mx_CallViewButtons_button_more ::before {
91
- background -image : url (' $(res)/img/voip/more.svg' );
141
+ mask -image : url (' $(res)/img/voip/call-view /more.svg' );
92
142
}
143
+ // Stateless buttons
93
144
145
+ // Invisible state
94
146
& .mx_CallViewButtons_button_invisible {
95
147
visibility : hidden ;
96
148
pointer-events : none ;
97
149
position : absolute ;
98
150
}
151
+ // Invisible state
99
152
}
100
153
}
0 commit comments