Add ability to change audio and video devices during a call (#7173)
This commit is contained in:
parent
ce3bc9dc07
commit
3c36a7f704
12 changed files with 247 additions and 24 deletions
|
@ -80,6 +80,7 @@
|
|||
@import "./views/avatars/_WidgetAvatar.scss";
|
||||
@import "./views/beta/_BetaCard.scss";
|
||||
@import "./views/context_menus/_CallContextMenu.scss";
|
||||
@import "./views/context_menus/_DeviceContextMenu.scss";
|
||||
@import "./views/context_menus/_IconizedContextMenu.scss";
|
||||
@import "./views/context_menus/_MessageContextMenu.scss";
|
||||
@import "./views/dialogs/_AddExistingToSpaceDialog.scss";
|
||||
|
|
27
res/css/views/context_menus/_DeviceContextMenu.scss
Normal file
27
res/css/views/context_menus/_DeviceContextMenu.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
Copyright 2021 Šimon Brandner <simon.bra.ag@gmail.com>
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
.mx_DeviceContextMenu {
|
||||
max-width: 252px;
|
||||
|
||||
.mx_DeviceContextMenu_device_icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mx_IconizedContextMenu_label {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
}
|
|
@ -25,6 +25,11 @@ limitations under the License.
|
|||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.mx_IconizedContextMenu_optionList_label {
|
||||
font-size: $font-15px;
|
||||
font-weight: $font-semi-bold;
|
||||
}
|
||||
|
||||
// the notFirst class is for cases where the optionList might be under a header of sorts.
|
||||
&:nth-child(n + 2), .mx_IconizedContextMenu_optionList_notFirst {
|
||||
// This is a bit of a hack when we could just use a simple border-top property,
|
||||
|
|
|
@ -46,6 +46,10 @@ limitations under the License.
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
position: relative;
|
||||
|
||||
box-shadow: 0px 4px 4px 0px #00000026; // Same on both themes
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
|
@ -60,6 +64,25 @@ limitations under the License.
|
|||
width: 24px;
|
||||
}
|
||||
|
||||
&.mx_CallViewButtons_dropdownButton {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
|
||||
&::before {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
mask-image: url('$(res)/img/element-icons/message/chevron-up.svg');
|
||||
}
|
||||
|
||||
&.mx_CallViewButtons_dropdownButton_collapsed::before {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
// State buttons
|
||||
&.mx_CallViewButtons_button_on {
|
||||
background-color: $call-view-button-on-background;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue