diff --git a/src/views/acc-appearance-view.jsx b/src/views/acc-appearance-view.jsx
index d6dd8a87..f057ef28 100644
--- a/src/views/acc-appearance-view.jsx
+++ b/src/views/acc-appearance-view.jsx
@@ -2,17 +2,17 @@
import React from 'react';
import { FormattedMessage } from 'react-intl';
-import CheckBox from '../widgets/checkbox.jsx';
-
export default class AccAppearanceView extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
colorSchema: props.colorSchema || 'light dark',
+ textSize: (props.textSize * 10) || '100',
};
this.handleColorSchemaSelected = this.handleColorSchemaSelected.bind(this);
+ this.handleTextSizeChanged = this.handleTextSizeChanged.bind(this);
}
handleColorSchemaSelected(e) {
@@ -20,6 +20,13 @@ export default class AccAppearanceView extends React.PureComponent {
this.props.onChangeColorSchema(e.currentTarget.value);
}
+ handleTextSizeChanged(e) {
+ // In %%.
+ this.setState({textSize: e.currentTarget.value});
+ // Convert %% to pt, 100% = 10pt.
+ this.props.onTextSizeChanged((e.currentTarget.value / 10) | 0);
+ }
+
render() {
return (
@@ -60,6 +67,28 @@ export default class AccAppearanceView extends React.PureComponent {
+
+
+
+
+
+
+
+
+
+
+
+
);
}
diff --git a/src/views/acc-notifications-view.jsx b/src/views/acc-notifications-view.jsx
index cf686b52..c00e1f56 100644
--- a/src/views/acc-notifications-view.jsx
+++ b/src/views/acc-notifications-view.jsx
@@ -16,8 +16,6 @@ export default class AccNotificationsView extends React.PureComponent {
this.props.onToggleMessageSounds(checked);
} else if (what == 'alert') {
this.props.onTogglePushNotifications(checked);
- } else if (what == 'incognito') {
- this.props.onToggleIncognitoMode(checked);
}
}
@@ -47,14 +45,6 @@ export default class AccNotificationsView extends React.PureComponent {
checked={this.props.desktopAlerts}
onChange={this.props.desktopAlertsEnabled ? this.handleCheckboxClick : null} />
-
-
-
-
);
}
diff --git a/src/views/acc-security-view.jsx b/src/views/acc-security-view.jsx
index 05752a7c..92f64bb6 100644
--- a/src/views/acc-security-view.jsx
+++ b/src/views/acc-security-view.jsx
@@ -2,6 +2,7 @@
import React from 'react';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
+import CheckBox from '../widgets/checkbox.jsx';
import InPlaceEdit from '../widgets/in-place-edit.jsx';
import PermissionsEditor from '../widgets/permissions-editor.jsx';
@@ -42,6 +43,7 @@ class AccSecurityView extends React.Component {
this.handleHidePermissionsEditor = this.handleHidePermissionsEditor.bind(this);
this.handlePermissionsChanged = this.handlePermissionsChanged.bind(this);
this.handleDeleteAccount = this.handleDeleteAccount.bind(this);
+ this.handleCheckboxClick = this.handleCheckboxClick.bind(this);
}
handlePasswordUpdate(pwd) {
@@ -70,6 +72,10 @@ class AccSecurityView extends React.Component {
this.setState(newState);
}
+ handleCheckboxClick(what, checked) {
+ this.props.onToggleIncognitoMode(checked);
+ }
+
handleDeleteAccount(e) {
e.preventDefault();
const {formatMessage} = this.props.intl;
@@ -109,6 +115,21 @@ class AccSecurityView extends React.Component {
+
+
+
+
+
+
+
+
+
+