mirror of https://github.com/vector-im/riot-web
Set font range
parent
fea219915f
commit
20ec900405
|
@ -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 => {}}
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue