Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 20ea143

Browse files
committed
Update iconography for spaces
1 parent 8369d42 commit 20ea143

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

res/css/structures/_LeftPanel.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ $roomListCollapsedWidth: 68px;
130130
mask-repeat: no-repeat;
131131
background: $secondary-fg-color;
132132
}
133+
134+
&.mx_LeftPanel_exploreButton_space::before {
135+
mask-image: url('$(res)/img/element-icons/roomlist/browse.svg');
136+
}
133137
}
134138
}
135139

res/css/structures/_SpacePanel.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,15 @@ $activeBorderColor: $secondary-fg-color;
339339
}
340340

341341
.mx_SpacePanel_iconPlus::before {
342-
mask-image: url('$(res)/img/element-icons/plus.svg');
342+
mask-image: url('$(res)/img/element-icons/roomlist/plus-circle.svg');
343+
}
344+
345+
.mx_SpacePanel_iconHash::before {
346+
mask-image: url('$(res)/img/element-icons/roomlist/hash-circle.svg');
343347
}
344348

345349
.mx_SpacePanel_iconExplore::before {
346-
mask-image: url('$(res)/img/element-icons/roomlist/explore.svg');
350+
mask-image: url('$(res)/img/element-icons/roomlist/browse.svg');
347351
}
348352
}
349353

res/css/views/rooms/_RoomList.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ limitations under the License.
2727
.mx_RoomList_iconExplore::before {
2828
mask-image: url('$(res)/img/element-icons/roomlist/explore.svg');
2929
}
30+
.mx_RoomList_iconBrowse::before {
31+
mask-image: url('$(res)/img/element-icons/roomlist/browse.svg');
32+
}
3033
.mx_RoomList_iconDialpad::before {
3134
mask-image: url('$(res)/img/element-icons/roomlist/dialpad.svg');
3235
}

src/components/structures/LeftPanel.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,9 @@ export default class LeftPanel extends React.Component<IProps, IState> {
392392
onEnter={this.onEnter}
393393
/>
394394
<AccessibleTooltipButton
395-
className="mx_LeftPanel_exploreButton"
395+
className={classNames("mx_LeftPanel_exploreButton", {
396+
mx_LeftPanel_exploreButton_space: !!this.state.activeSpace,
397+
})}
396398
onClick={this.onExplore}
397399
title={_t("Explore rooms")}
398400
/>

src/components/views/spaces/SpaceTreeLevel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> {
258258
onClick={this.onNewRoomClick}
259259
/>
260260
<IconizedContextMenuOption
261-
iconClassName="mx_SpacePanel_iconPlus"
261+
iconClassName="mx_SpacePanel_iconHash"
262262
label={_t("Add existing room")}
263263
onClick={this.onAddExistingRoomClick}
264264
/>

0 commit comments

Comments
 (0)