From 94eac09c61011e1d633f91867bca188c97b4892a Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 7 May 2020 15:26:12 +0200 Subject: [PATCH] Add share and access to the bottom bar --- customize.dist/src/less2/include/toolbar.less | 5 +- www/common/onlyoffice/inner.js | 15 +----- www/common/sframe-app-framework.js | 16 +----- www/common/toolbar.js | 49 +++++++++++++++---- www/file/inner.js | 2 +- www/poll/inner.js | 15 +----- 6 files changed, 47 insertions(+), 55 deletions(-) diff --git a/customize.dist/src/less2/include/toolbar.less b/customize.dist/src/less2/include/toolbar.less index b56888e83..228809c86 100644 --- a/customize.dist/src/less2/include/toolbar.less +++ b/customize.dist/src/less2/include/toolbar.less @@ -1003,7 +1003,7 @@ color: var(--toolbar-bg-color); .cp-toolbar-bottom { background-color: @toolbar-bg-color-l8; background-color: var(--toolbar-bg-color-l8); - color: #FFF; // XXX + color: @cryptpad_text_col; button:hover, button.cp-toolbar-button-active { background-color: @toolbar-bg-color; background-color: var(--toolbar-bg-color); @@ -1028,6 +1028,9 @@ color: var(--toolbar-bg-color); margin: 0px; border-radius: 0; height: 100%; + .fa { + margin-right: 5px; + } } .cp-dropdown-content { margin-top: -1px; diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 4ebe813c0..9a879544a 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -1483,18 +1483,7 @@ define([ Title = common.createTitle({}); var configTb = { - displayed: [ - 'chat', - 'userlist', - 'title', - 'useradmin', - 'spinner', - 'newpad', - 'share', - 'limit', - 'unpinnedWarning', - 'notifications' - ], + displayed: ['pad'], title: Title.getTitleConfig(), metadataMgr: metadataMgr, readOnly: readOnly, @@ -1561,8 +1550,6 @@ define([ var $properties = common.createButton('properties', true); toolbar.$drawer.append($properties); - var $access = common.createButton('access', true); - toolbar.$drawer.append($access); }; config.onReady = function (info) { diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index 8b3f6d4fc..546e3cd37 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -654,19 +654,7 @@ define([ getHeadingText: function () { return titleRecommender(); } }, onLocal); var configTb = { - displayed: [ - 'chat', - 'userlist', - 'title', - 'useradmin', - 'spinner', - 'newpad', - 'share', - 'limit', - 'request', - 'unpinnedWarning', - 'notifications' - ], + displayed: ['pad'], title: title.getTitleConfig(), metadataMgr: cpNfInner.metadataMgr, readOnly: readOnly, @@ -722,8 +710,6 @@ define([ var $properties = common.createButton('properties', true); toolbar.$drawer.append($properties); - var $access = common.createButton('access', true); - toolbar.$drawer.append($access); createFilePicker(); diff --git a/www/common/toolbar.js b/www/common/toolbar.js index f2edb7c7c..bda25405f 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -473,10 +473,12 @@ MessengerUI, Messages) { toolbar.chatContent = $content; - var $container = $('', {id: 'cp-toolbar-chat-drawer-open', title: Messages.chatButton}); + var $container = $('', {id: 'cp-toolbar-chat-drawer-open'}); - var $button = $('