Skip to content

Commit 05d9212

Browse files
committed
re-skin the notification bar
1 parent 9526deb commit 05d9212

5 files changed

Lines changed: 41 additions & 13 deletions

File tree

‎src/skins/vector/css/molecules/MatrixToolbar.css‎

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,40 @@ limitations under the License.
1515
*/
1616

1717
.mx_MatrixToolbar {
18-
text-align: center;
19-
background-color: #ff0064;
18+
background-color: #76cfa6;
2019
color: #fff;
21-
font-weight: bold;
22-
padding: 6px;
20+
21+
display: -webkit-box;
22+
display: -moz-box;
23+
display: -ms-flexbox;
24+
display: -webkit-flex;
25+
display: flex;
26+
-webkit-align-items: center;
27+
align-items: center;
2328
}
2429

25-
.mx_MatrixToolbar button {
26-
margin-left: 12px;
30+
.mx_MatrixToolbar_warning {
31+
margin-left: 16px;
32+
margin-right: 8px;
33+
margin-top: -2px;
34+
}
35+
36+
.mx_MatrixToolbar_link
37+
{
38+
color: #fff ! important;
39+
text-decoration: underline ! important;
40+
cursor: pointer;
2741
}
2842

2943
.mx_MatrixToolbar_close {
30-
float: right;
31-
margin-top: 3px;
32-
margin-right: 12px;
44+
-webkit-flex: 1;
45+
flex: 1;
3346
cursor: pointer;
34-
}
47+
text-align: right;
48+
}
49+
50+
.mx_MatrixToolbar_close img {
51+
display: block;
52+
float: right;
53+
margin-right: 10px;
54+
}

‎src/skins/vector/css/pages/MatrixChat.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ limitations under the License.
3535
-webkit-order: 1;
3636
order: 1;
3737

38-
height: 21px;
38+
height: 40px;
3939
}
4040

4141
.mx_MatrixChat_toolbarShowing {
1.15 KB
Loading

‎src/skins/vector/img/warning.png‎

1.44 KB
Loading

‎src/skins/vector/views/molecules/MatrixToolbar.js‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,20 @@ module.exports = React.createClass({
2828
Notifier.setToolbarHidden(true);
2929
},
3030

31+
onClick: function() {
32+
var Notifier = sdk.getComponent('organisms.Notifier');
33+
Notifier.setEnabled(true);
34+
},
35+
3136
render: function() {
3237
var EnableNotificationsButton = sdk.getComponent("atoms.EnableNotificationsButton");
3338
return (
3439
<div className="mx_MatrixToolbar">
35-
You are not receiving desktop notifications. <EnableNotificationsButton />
36-
<div className="mx_MatrixToolbar_close"><img src="img/close-white.png" width="16" height="16" onClick={ this.hideToolbar } /></div>
40+
<img className="mx_MatrixToolbar_warning" src="img/warning.png" width="28" height="28" alt="/!\"/>
41+
<div>
42+
You are not receiving desktop notifications. <a className="mx_MatrixToolbar_link" onClick={ this.onClick }>Enable them now</a>
43+
</div>
44+
<div className="mx_MatrixToolbar_close"><img src="img/cancel-black2.png" width="23" height="23" onClick={ this.hideToolbar } /></div>
3745
</div>
3846
);
3947
}

0 commit comments

Comments
 (0)