add help with zoom

This commit is contained in:
David Lechner
2021-01-14 17:16:09 -06:00
parent eba2239610
commit 9ee24d0b0c
4 changed files with 20 additions and 2 deletions
+11 -1
View File
@@ -10,6 +10,7 @@ import { closeSettings } from '../actions/app';
import { setBoolean } from '../actions/settings';
import { RootState } from '../reducers';
import { SettingId } from '../settings';
import { isMacOS } from '../utils/os';
import { SettingsStringId } from './settings-i18n';
import en from './settings-i18n.en.json';
@@ -49,7 +50,16 @@ class SettingsDrawer extends React.PureComponent<SettingsProps> {
onClose={() => onClose()}
>
<div className="pb-settings">
<FormGroup label={i18n.translate(SettingsStringId.AppearanceTitle)}>
<FormGroup
label={i18n.translate(SettingsStringId.AppearanceTitle)}
helperText={i18n.translate(
SettingsStringId.AppearanceZoomHelp,
{
in: <span>{isMacOS() ? 'Cmd' : 'Ctrl'}-+</span>,
out: <span>{isMacOS() ? 'Cmd' : 'Ctrl'}--</span>,
},
)}
>
<Switch
label={i18n.translate(
SettingsStringId.AppearanceDocumentationLabel,
+3
View File
@@ -8,6 +8,9 @@
},
"dark-mode": {
"label": "Dark mode"
},
"zoom": {
"help": "Use {in} and {out} to zoom."
}
}
}
+1
View File
@@ -8,4 +8,5 @@ export enum SettingsStringId {
AppearanceTitle = 'settings.appearance.title',
AppearanceDocumentationLabel = 'settings.appearance.documentation.label',
AppearanceDarkModeLabel = 'settings.appearance.dark-mode.label',
AppearanceZoomHelp = 'settings.appearance.zoom.help',
}
+5 -1
View File
@@ -8,6 +8,10 @@
}
.pb-settings .bp3-label {
font-size: larger;
font-size: 18px;
font-weight: bolder;
}
.pb-settings .bp3-form-helper-text {
font-size: 14px;
}