re-skin the notification bar

pull/351/head
Matthew Hodgson 2015-11-08 23:37:14 +00:00
parent 9526deb024
commit 05d921256f
5 changed files with 41 additions and 13 deletions

View File

@ -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;
}

View File

@ -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 {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -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>
); );
} }