adds mx_filterFlipColor so that the dark theme will invert this image
making it more suitable for the said theme Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
f680bb5d3c
commit
34caf5586f
1 changed files with 5 additions and 7 deletions
|
@ -576,26 +576,24 @@ module.exports = React.createClass({
|
||||||
{ _t('Never send encrypted messages to unverified devices in this room from this device') }.
|
{ _t('Never send encrypted messages to unverified devices in this room from this device') }.
|
||||||
</label>;
|
</label>;
|
||||||
|
|
||||||
if (!isEncrypted &&
|
if (!isEncrypted && roomState.mayClientSendStateEvent("m.room.encryption", cli)) {
|
||||||
roomState.mayClientSendStateEvent("m.room.encryption", cli)) {
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" ref="encrypt" onClick={ this.onEnableEncryptionClick }/>
|
<input type="checkbox" ref="encrypt" onClick={ this.onEnableEncryptionClick }/>
|
||||||
<img className="mx_RoomSettings_e2eIcon" src="img/e2e-unencrypted.svg" width="12" height="12" />
|
<img className="mx_RoomSettings_e2eIcon mx_filterFlipColor" src="img/e2e-unencrypted.svg" width="12" height="12" />
|
||||||
{ _t('Enable encryption') } { _t('(warning: cannot be disabled again!)') }
|
{ _t('Enable encryption') } { _t('(warning: cannot be disabled again!)') }
|
||||||
</label>
|
</label>
|
||||||
{ settings }
|
{ settings }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<label>
|
<label>
|
||||||
{ isEncrypted
|
{ isEncrypted
|
||||||
? <img className="mx_RoomSettings_e2eIcon" src="img/e2e-verified.svg" width="10" height="12" />
|
? <img className="mx_RoomSettings_e2eIcon mx_filterFlipColor" src="img/e2e-verified.svg" width="10" height="12" />
|
||||||
: <img className="mx_RoomSettings_e2eIcon" src="img/e2e-unencrypted.svg" width="12" height="12" />
|
: <img className="mx_RoomSettings_e2eIcon mx_filterFlipColor" src="img/e2e-unencrypted.svg" width="12" height="12" />
|
||||||
}
|
}
|
||||||
{ isEncrypted ? _t("Encryption is enabled in this room") : _t("Encryption is not enabled in this room") }.
|
{ isEncrypted ? _t("Encryption is enabled in this room") : _t("Encryption is not enabled in this room") }.
|
||||||
</label>
|
</label>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue