Hide font scaling behind labs

pull/21833/head
Jorik Schellekens 2020-04-16 10:28:07 +01:00
parent af4dd2770c
commit 14551b1885
3 changed files with 8 additions and 1 deletions

View File

@ -139,7 +139,7 @@ export default class StyleUserSettingsTab extends React.Component {
<div className="mx_SettingsTab">
<div className="mx_SettingsTab_heading">{_t("Style")}</div>
{this._renderThemeSection()}
{this._renderFontSection()}
{SettingsStore.getValue("feature_font_scaling") ? this._renderFontSection() : null}
</div>
);
}

View File

@ -2295,5 +2295,6 @@
"Space": "Space",
"End": "End",
"Font size": "Font size",
"Font scaling": "Font scaling",
"Style": "Style"
}

View File

@ -95,6 +95,12 @@ export const SETTINGS = {
// // not use this for new settings.
// invertedSettingName: "my-negative-setting",
// },
"feature_font_scaling": {
isFeature: true,
displayName: _td("Font scaling"),
supportedLevels: LEVELS_FEATURE,
default: false
},
"font_size": {
displayName: _td("Font size"),
supportedLevels: LEVELS_ACCOUNT_SETTINGS,