Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Adds toolbar splitter button
yanas9641dbf3730f
diff --git a/css/_toolbars.scss b/css/_toolbars.scssindex 22fbea9271..f8d000e2fd 100644--- a/css/_toolbars.scss+++ b/css/_toolbars.scss@@ -44,15 +44,28 @@width: auto;border-radius: 3px;+ /**+ * First button in the toolbar.+ */.first {border-bottom-left-radius: 3px;border-top-left-radius: 3px;}+ /**+ * Last button in the toolbar.+ */.last {border-bottom-right-radius: 3px;border-top-right-radius: 3px;}++ /**+ * Splitter button in the toolbar.+ */+ .splitter {+ margin-left: $splitterToolbarButtonLeftMargin;+ }}#extendedToolbar {diff --git a/css/_variables.scss b/css/_variables.scssindex df3bbe913f..f3b6a37513 100644--- a/css/_variables.scss+++ b/css/_variables.scss@@ -1,8 +1,3 @@-/**-* Theme-*/-@import 'themes/light';-/*** Style variables*/@@ -33,10 +28,10 @@ $tooltipBg: rgba(0,0,0, 0.7);// Toolbar$toolbarSelectBackground: rgba(0, 0, 0, .6);-$toolbarBadgeBackground: #165ECC;$toolbarBadgeColor: #FFFFFF;$toolbarToggleBackground: #12499C;+$splitterToolbarButtonLeftMargin: 0px;// Main controls$inputSemiBackground: rgba(132, 132, 132, .8);diff --git a/interface_config.js b/interface_config.jsindex 876e048a33..c0dbecf94e 100644--- a/interface_config.js+++ b/interface_config.js@@ -20,6 +20,7 @@ var interfaceConfig = { // eslint-disable-line no-unused-vars// the toolbar buttons line is intentionally left in one line, to be able// to easily override values or remove them using regexMAIN_TOOLBAR_BUTTONS: ['microphone', 'camera', 'desktop', 'invite', 'fullscreen', 'hangup'], // jshint ignore:line+ MAIN_TOOLBAR_SPLITTER_INDEX: -1,TOOLBAR_BUTTONS: ['profile', 'authentication', 'microphone', 'camera', 'desktop', 'recording', 'security', 'raisehand', 'chat', 'etherpad', 'sharedvideo', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip', 'contacts'], // jshint ignore:lineSETTINGS_SECTIONS: ['language', 'devices', 'moderator'],// Determines how the video would fit the screen. 'both' would fit the wholediff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.jsindex a36cc10d4b..bb7a00720a 100644--- a/modules/UI/toolbars/Toolbar.js+++ b/modules/UI/toolbars/Toolbar.js@@ -710,7 +710,10 @@ Toolbar = {this._addMainToolbarButton(button,(index === 0),- (index === interfaceConfig.MAIN_TOOLBAR_BUTTONS.length -1));+ (index === interfaceConfig.MAIN_TOOLBAR_BUTTONS.length -1),+ (interfaceConfig.MAIN_TOOLBAR_SPLITTER_INDEX+ && index+ === interfaceConfig.MAIN_TOOLBAR_SPLITTER_INDEX));}});},@@ -723,13 +726,16 @@ Toolbar = {* toolbar* @param {boolean} isLast indicates if this is the last button in the* toolbar+ * @param {boolean} isSplitter if this button is a splitter button for+ * the dialog, which means that a special splitter style will be applied*/- _addMainToolbarButton(button, isFirst, isLast) {+ _addMainToolbarButton(button, isFirst, isLast, isSplitter) {let buttonElement = document.createElement("a");if (button.className)buttonElement.className = button.className+ ((isFirst) ? " first" : "")- + ((isLast) ? " last" : "");+ + ((isLast) ? " last" : "")+ + ((isSplitter) ? " splitter": "");buttonElement.id = button.id;