Set font range

pull/21833/head
Jorik Schellekens 2020-05-13 15:36:53 +01:00
parent fea219915f
commit 20ec900405
2 changed files with 3 additions and 7 deletions

View File

@ -252,11 +252,7 @@ export default class AppearanceUserSettingsTab extends React.Component {
<div className="mx_AppearanceUserSettingsTab_fontSlider">
<div className="mx_AppearanceUserSettingsTab_fontSlider_smallText">Aa</div>
<Slider
values={_range(
SettingsStore.getValue("fontSizeMin"),
SettingsStore.getValue("fontSizeMax")+ 2,
2.5,
)}
values={[13, 14, 15, 18, 20]}
value={this.state.fontSize}
onSelectionChange={this._onFontSizeChanged}
displayFunc={value => {}}

View File

@ -174,12 +174,12 @@ export const SETTINGS = {
"fontSizeMin": {
displayName: _td("Min font size"),
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
default: 14,
default: 13,
},
"fontSizeMax": {
displayName: _td("Max font size"),
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
default: 24,
default: 20,
},
"useCustomFontSize": {
displayName: _td("Custom font size"),