diff --git a/res/css/structures/_GroupView.scss b/res/css/structures/_GroupView.scss
index ace310ee5b..1c477a959a 100644
--- a/res/css/structures/_GroupView.scss
+++ b/res/css/structures/_GroupView.scss
@@ -44,13 +44,22 @@ limitations under the License.
}
.mx_GroupHeader_button {
- margin-left: 12px;
+ margin-left: 5px;
+ margin-right: 5px;
cursor: pointer;
+ height: 20px;
+ width: 20px;
+ background-color: $groupheader-button-color;
+ mask-repeat: no-repeat;
+ mask-size: contain;
}
-.mx_GroupHeader_button object {
- // prevents clicks from being swallowed by svg in 'object' tag
- pointer-events: none;
+.mx_GroupHeader_editButton {
+ mask-image: url('$(res)/img/icons-settings-room.svg');
+}
+
+.mx_GroupHeader_shareButton {
+ mask-image: url('$(res)/img/icons-share.svg');
}
.mx_GroupView_editable {
diff --git a/res/themes/dark/css/_dark.scss b/res/themes/dark/css/_dark.scss
index d281476e37..41aaeae50a 100644
--- a/res/themes/dark/css/_dark.scss
+++ b/res/themes/dark/css/_dark.scss
@@ -77,6 +77,7 @@ $roomheader-color: $text-primary-color;
$roomheader-addroom-color: $header-panel-text-primary-color;
$tagpanel-button-color: $header-panel-text-primary-color;
$roomheader-button-color: $header-panel-text-primary-color;
+$groupheader-button-color: $header-panel-text-primary-color;
$rightpanel-button-color: $header-panel-text-primary-color;
$roomtopic-color: $text-secondary-color;
$eventtile-meta-color: $roomtopic-color;
diff --git a/res/themes/dharma/css/_dharma.scss b/res/themes/dharma/css/_dharma.scss
index c90ffe77a9..7cc6a2ce88 100644
--- a/res/themes/dharma/css/_dharma.scss
+++ b/res/themes/dharma/css/_dharma.scss
@@ -147,6 +147,7 @@ $roomheader-color: #45474a;
$roomheader-addroom-color: #91A1C0;
$tagpanel-button-color: #91A1C0;
$roomheader-button-color: #91A1C0;
+$groupheader-button-color: #91A1C0;
$rightpanel-button-color: #91A1C0;
$roomtopic-color: #9fa9ba;
$eventtile-meta-color: $roomtopic-color;
diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js
index 530a200a18..89fce9c718 100644
--- a/src/components/structures/GroupView.js
+++ b/src/components/structures/GroupView.js
@@ -1157,7 +1157,6 @@ export default React.createClass({
render: function() {
const GroupAvatar = sdk.getComponent("avatars.GroupAvatar");
const Spinner = sdk.getComponent("elements.Spinner");
- const TintableSvg = sdk.getComponent("elements.TintableSvg");
const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper");
if (this.state.summaryLoading && this.state.error === null || this.state.saving) {
@@ -1248,13 +1247,17 @@ export default React.createClass({
if (this.state.editing) {
rightButtons.push(
{ _t('Save') }
,
);
rightButtons.push(
-
+
,
@@ -1262,16 +1265,20 @@ export default React.createClass({
} else {
if (summary.user && summary.user.membership === 'join') {
rightButtons.push(
-
-
,
);
}
rightButtons.push(
-
-
+
,
);
}