Rename dharma theme to light theme
This commit is contained in:
parent
6c954dadc8
commit
b0d08b9a25
9 changed files with 9 additions and 9 deletions
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* TODO: Consider unifying with general input styles in _dharma.scss */
|
/* TODO: Consider unifying with general input styles in _light.scss */
|
||||||
|
|
||||||
.mx_Field {
|
.mx_Field {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@import "../../dharma/css/_paths.scss";
|
@import "../../light/css/_paths.scss";
|
||||||
@import "../../dharma/css/_fonts.scss";
|
@import "../../light/css/_fonts.scss";
|
||||||
@import "../../dharma/css/_dharma.scss";
|
@import "../../light/css/_light.scss";
|
||||||
@import "_dark.scss";
|
@import "_dark.scss";
|
||||||
@import "../../../../res/css/_components.scss";
|
@import "../../../../res/css/_components.scss";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "_paths.scss";
|
@import "_paths.scss";
|
||||||
@import "_fonts.scss";
|
@import "_fonts.scss";
|
||||||
@import "_dharma.scss";
|
@import "_light.scss";
|
||||||
@import "../../../../res/css/_components.scss";
|
@import "../../../../res/css/_components.scss";
|
|
@ -145,7 +145,7 @@ export default class GeneralUserSettingsTab extends React.Component {
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Theme")}</span>
|
<span className="mx_SettingsTab_subheading">{_t("Theme")}</span>
|
||||||
<Field id="theme" label={_t("Theme")} element="select"
|
<Field id="theme" label={_t("Theme")} element="select"
|
||||||
value={this.state.theme} onChange={this._onThemeChange}>
|
value={this.state.theme} onChange={this._onThemeChange}>
|
||||||
<option value="dharma">{_t("Default theme")}</option>
|
<option value="light">{_t("Default theme")}</option>
|
||||||
<option value="dark">{_t("Dark theme")}</option>
|
<option value="dark">{_t("Dark theme")}</option>
|
||||||
</Field>
|
</Field>
|
||||||
<SettingsFlag name="useCompactLayout" level={SettingLevel.ACCOUNT} />
|
<SettingsFlag name="useCompactLayout" level={SettingLevel.ACCOUNT} />
|
||||||
|
|
|
@ -233,7 +233,7 @@ export const SETTINGS = {
|
||||||
},
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
default: "dharma",
|
default: "light",
|
||||||
controller: new ThemeController(),
|
controller: new ThemeController(),
|
||||||
},
|
},
|
||||||
"webRtcForcePeerToPeer": {
|
"webRtcForcePeerToPeer": {
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
import SettingController from "./SettingController";
|
import SettingController from "./SettingController";
|
||||||
|
|
||||||
const SUPPORTED_THEMES = [
|
const SUPPORTED_THEMES = [
|
||||||
"dharma",
|
"light",
|
||||||
"dark",
|
"dark",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ export default class ThemeController extends SettingController {
|
||||||
getValueOverride(level, roomId, calculatedValue, calculatedAtLevel) {
|
getValueOverride(level, roomId, calculatedValue, calculatedAtLevel) {
|
||||||
// Override in case some no longer supported theme is stored here
|
// Override in case some no longer supported theme is stored here
|
||||||
if (!SUPPORTED_THEMES.includes(calculatedValue)) {
|
if (!SUPPORTED_THEMES.includes(calculatedValue)) {
|
||||||
return "dharma";
|
return "light";
|
||||||
}
|
}
|
||||||
|
|
||||||
return null; // no override
|
return null; // no override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue