2016-05-06 05:14:39 +08:00
|
|
|
import React from 'react';
|
|
|
|
import Modal from 'react-modal';
|
2016-05-20 21:37:19 +08:00
|
|
|
import Icon from '/imports/ui/components/icon/component';
|
|
|
|
import Button from '/imports/ui/components/button/component';
|
2016-05-20 21:46:30 +08:00
|
|
|
import BaseMenu from './BaseMenu';
|
2016-05-06 05:14:39 +08:00
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import FontControl from '/imports/api/FontControl';
|
|
|
|
|
|
|
|
export default class ApplicationMenu extends BaseMenu {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.state = {
|
|
|
|
currentFontSize: FontControl.fontSizeEnum.MEDIUM,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
getContent() {
|
|
|
|
return (
|
2016-05-07 01:46:14 +08:00
|
|
|
<div>
|
2016-05-06 05:14:39 +08:00
|
|
|
<p style={{ float: 'left' }}>Audio notifications for chat</p>
|
|
|
|
<p style={{ float: 'right' }}>audio not</p>
|
|
|
|
<p style={{ clear: 'both' }}>fsdfds</p>
|
|
|
|
<p style={{ float: 'left' }}>Push notifications for chat</p>
|
|
|
|
<p style={{ float: 'right' }}>push not</p>
|
|
|
|
<br />
|
|
|
|
<div style={{ clear: 'both' }}>
|
|
|
|
<div style={{ float: 'left', width: '25%', textAlign: 'left' }}>Font size</div>
|
|
|
|
<div style={{ float: 'left', width: '50%', textAlign: 'center' }}>
|
|
|
|
{FontControl.getFontSizeName.call(this)}
|
|
|
|
</div>
|
|
|
|
<div style={{ float: 'left', width: '25%', textAlign: 'right' }}>
|
|
|
|
<button className="fontSizeButton"
|
|
|
|
onClick={FontControl.increaseFontSize.bind(this)}
|
|
|
|
>+</button>
|
|
|
|
<button className="fontSizeButton"
|
|
|
|
onClick={FontControl.decreaseFontSize.bind(this)}
|
|
|
|
>-</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|