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

Commit 55592d3

Browse files
committed
Merge branch 'develop' into travis/msc-send-widget-events
2 parents a212dab + 3467d44 commit 55592d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+4665
-685
lines changed

res/css/_components.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@
228228
@import "./views/settings/tabs/user/_SecurityUserSettingsTab.scss";
229229
@import "./views/settings/tabs/user/_VoiceUserSettingsTab.scss";
230230
@import "./views/terms/_InlineTermsAgreement.scss";
231+
@import "./views/toasts/_AnalyticsToast.scss";
231232
@import "./views/toasts/_NonUrgentEchoFailureToast.scss";
232233
@import "./views/verification/_VerificationShowSas.scss";
233234
@import "./views/voip/_CallContainer.scss";

res/css/views/auth/_InteractiveAuthEntryComponents.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,35 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
.mx_InteractiveAuthEntryComponents_emailWrapper {
18+
padding-right: 60px;
19+
position: relative;
20+
margin-top: 32px;
21+
margin-bottom: 32px;
22+
23+
&::before, &::after {
24+
position: absolute;
25+
width: 116px;
26+
height: 116px;
27+
content: "";
28+
right: -10px;
29+
}
30+
31+
&::before {
32+
background-color: rgba(244, 246, 250, 0.91);
33+
border-radius: 50%;
34+
top: -20px;
35+
}
36+
37+
&::after {
38+
background-image: url('$(res)/img/element-icons/email-prompt.svg');
39+
background-repeat: no-repeat;
40+
background-position: center;
41+
background-size: contain;
42+
top: -25px;
43+
}
44+
}
45+
1746
.mx_InteractiveAuthEntryComponents_msisdnWrapper {
1847
text-align: center;
1948
}

res/css/views/rooms/_IRCLayout.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ $irc-line-height: $font-18px;
186186
overflow: hidden;
187187
text-overflow: ellipsis;
188188
min-width: var(--name-width);
189+
text-align: end;
189190
}
190191
}
191192
}

res/css/views/rooms/_NewRoomIntro.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
.mx_NewRoomIntro {
18-
margin: 80px 0 48px 64px;
18+
margin: 40px 0 48px 64px;
1919

2020
.mx_MiniAvatarUploader_hasAvatar:not(.mx_MiniAvatarUploader_busy):not(:hover) {
2121
&::before, &::after {

res/css/views/rooms/_RoomList.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ limitations under the License.
3333

3434
div:first-child {
3535
font-weight: $font-semi-bold;
36-
margin-bottom: 8px;
3736
}
3837

3938
.mx_AccessibleButton {
4039
color: $secondary-fg-color;
4140
position: relative;
4241
padding: 0 0 0 24px;
4342
font-size: inherit;
43+
margin-top: 8px;
4444

4545
&::before {
4646
content: '';
@@ -53,6 +53,13 @@ limitations under the License.
5353
mask-position: center;
5454
mask-size: contain;
5555
mask-repeat: no-repeat;
56+
}
57+
58+
&.mx_RoomList_explorePrompt_startChat::before {
59+
mask-image: url('$(res)/img/element-icons/feedback.svg');
60+
}
61+
62+
&.mx_RoomList_explorePrompt_explore::before {
5663
mask-image: url('$(res)/img/element-icons/roomlist/explore.svg');
5764
}
5865
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
Copyright 2020 The Matrix.org Foundation C.I.C.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_AnalyticsToast {
18+
.mx_AccessibleButton_kind_danger {
19+
background: none;
20+
color: $accent-color;
21+
}
22+
23+
.mx_AccessibleButton_kind_primary {
24+
background: $accent-color;
25+
color: #ffffff;
26+
}
27+
}
Lines changed: 13 additions & 0 deletions
Loading

res/themes/dark/css/_dark.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ $composer-shadow-color: rgba(0, 0, 0, 0.28);
274274
background-color: #080808;
275275
}
276276
}
277+
278+
blockquote {
279+
color: #919191;
280+
}
277281
}
278282

279283
// diff highlight colors

src/Modal.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,15 @@ export class ModalManager {
147147
return this.appendDialogAsync<T>(...rest);
148148
}
149149

150+
public closeCurrentModal(reason: string) {
151+
const modal = this.getCurrentModal();
152+
if (!modal) {
153+
return;
154+
}
155+
modal.closeReason = reason;
156+
modal.close();
157+
}
158+
150159
private buildModal<T extends any[]>(
151160
prom: Promise<React.ComponentType>,
152161
props?: IProps<T>,

src/Notifier.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ import SettingsStore from "./settings/SettingsStore";
3434
import { hideToast as hideNotificationsToast } from "./toasts/DesktopNotificationsToast";
3535
import {SettingLevel} from "./settings/SettingLevel";
3636
import {isPushNotifyDisabled} from "./settings/controllers/NotificationControllers";
37+
import RoomViewStore from "./stores/RoomViewStore";
38+
import UserActivity from "./UserActivity";
3739

3840
/*
3941
* Dispatches:
@@ -376,6 +378,11 @@ export const Notifier = {
376378
const room = MatrixClientPeg.get().getRoom(ev.getRoomId());
377379
const actions = MatrixClientPeg.get().getPushActionsForEvent(ev);
378380
if (actions && actions.notify) {
381+
if (RoomViewStore.getRoomId() === room.roomId && UserActivity.sharedInstance().userActiveRecently()) {
382+
// don't bother notifying as user was recently active in this room
383+
return;
384+
}
385+
379386
if (this.isEnabled()) {
380387
this._displayPopupNotification(ev, room);
381388
}

0 commit comments

Comments
 (0)