mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
re-skin the notification bar
This commit is contained in:
parent
9526deb024
commit
05d921256f
@ -15,20 +15,40 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.mx_MatrixToolbar {
|
.mx_MatrixToolbar {
|
||||||
text-align: center;
|
background-color: #76cfa6;
|
||||||
background-color: #ff0064;
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-weight: bold;
|
|
||||||
padding: 6px;
|
display: -webkit-box;
|
||||||
|
display: -moz-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_MatrixToolbar button {
|
.mx_MatrixToolbar_warning {
|
||||||
margin-left: 12px;
|
margin-left: 16px;
|
||||||
|
margin-right: 8px;
|
||||||
|
margin-top: -2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_MatrixToolbar_link
|
||||||
|
{
|
||||||
|
color: #fff ! important;
|
||||||
|
text-decoration: underline ! important;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_MatrixToolbar_close {
|
.mx_MatrixToolbar_close {
|
||||||
float: right;
|
-webkit-flex: 1;
|
||||||
margin-top: 3px;
|
flex: 1;
|
||||||
margin-right: 12px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_MatrixToolbar_close img {
|
||||||
|
display: block;
|
||||||
|
float: right;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
@ -35,7 +35,7 @@ limitations under the License.
|
|||||||
-webkit-order: 1;
|
-webkit-order: 1;
|
||||||
order: 1;
|
order: 1;
|
||||||
|
|
||||||
height: 21px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_MatrixChat_toolbarShowing {
|
.mx_MatrixChat_toolbarShowing {
|
||||||
|
BIN
src/skins/vector/img/cancel-black2.png
Normal file
BIN
src/skins/vector/img/cancel-black2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
src/skins/vector/img/warning.png
Normal file
BIN
src/skins/vector/img/warning.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
@ -28,12 +28,20 @@ module.exports = React.createClass({
|
|||||||
Notifier.setToolbarHidden(true);
|
Notifier.setToolbarHidden(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onClick: function() {
|
||||||
|
var Notifier = sdk.getComponent('organisms.Notifier');
|
||||||
|
Notifier.setEnabled(true);
|
||||||
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var EnableNotificationsButton = sdk.getComponent("atoms.EnableNotificationsButton");
|
var EnableNotificationsButton = sdk.getComponent("atoms.EnableNotificationsButton");
|
||||||
return (
|
return (
|
||||||
<div className="mx_MatrixToolbar">
|
<div className="mx_MatrixToolbar">
|
||||||
You are not receiving desktop notifications. <EnableNotificationsButton />
|
<img className="mx_MatrixToolbar_warning" src="img/warning.png" width="28" height="28" alt="/!\"/>
|
||||||
<div className="mx_MatrixToolbar_close"><img src="img/close-white.png" width="16" height="16" onClick={ this.hideToolbar } /></div>
|
<div>
|
||||||
|
You are not receiving desktop notifications. <a className="mx_MatrixToolbar_link" onClick={ this.onClick }>Enable them now</a>
|
||||||
|
</div>
|
||||||
|
<div className="mx_MatrixToolbar_close"><img src="img/cancel-black2.png" width="23" height="23" onClick={ this.hideToolbar } /></div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user