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">
|
||||||
<div className="mx_AppearanceUserSettingsTab_fontSlider_smallText">Aa</div>
|
<div className="mx_AppearanceUserSettingsTab_fontSlider_smallText">Aa</div>
|
||||||
<Slider
|
<Slider
|
||||||
values={_range(
|
values={[13, 14, 15, 18, 20]}
|
||||||
SettingsStore.getValue("fontSizeMin"),
|
|
||||||
SettingsStore.getValue("fontSizeMax")+ 2,
|
|
||||||
2.5,
|
|
||||||
)}
|
|
||||||
value={this.state.fontSize}
|
value={this.state.fontSize}
|
||||||
onSelectionChange={this._onFontSizeChanged}
|
onSelectionChange={this._onFontSizeChanged}
|
||||||
displayFunc={value => {}}
|
displayFunc={value => {}}
|
||||||
|
|
|
@ -174,12 +174,12 @@ export const SETTINGS = {
|
||||||
"fontSizeMin": {
|
"fontSizeMin": {
|
||||||
displayName: _td("Min font size"),
|
displayName: _td("Min font size"),
|
||||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
default: 14,
|
default: 13,
|
||||||
},
|
},
|
||||||
"fontSizeMax": {
|
"fontSizeMax": {
|
||||||
displayName: _td("Max font size"),
|
displayName: _td("Max font size"),
|
||||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
default: 24,
|
default: 20,
|
||||||
},
|
},
|
||||||
"useCustomFontSize": {
|
"useCustomFontSize": {
|
||||||
displayName: _td("Custom font size"),
|
displayName: _td("Custom font size"),
|
||||||
|
|
Loading…
Reference in New Issue