From f817d98b2c743ed1aeb7af3d0bbbff357a6eb6aa Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Tue, 28 Mar 2023 21:59:28 +0300 Subject: [PATCH] use switch for Pro-mode --- web/src/components/Settings/SettingsDialog.jsx | 5 +++-- web/src/style/materialUISetup.js | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/web/src/components/Settings/SettingsDialog.jsx b/web/src/components/Settings/SettingsDialog.jsx index 9190bad..3a27078 100644 --- a/web/src/components/Settings/SettingsDialog.jsx +++ b/web/src/components/Settings/SettingsDialog.jsx @@ -1,6 +1,6 @@ import axios from 'axios' import Button from '@material-ui/core/Button' -import Checkbox from '@material-ui/core/Checkbox' +import Switch from '@material-ui/core/Switch' import { FormControlLabel, useMediaQuery, useTheme } from '@material-ui/core' import { settingsHost } from 'utils/Hosts' import { useEffect, useState } from 'react' @@ -94,7 +94,7 @@ export default function SettingsDialog({ handleClose }) {
{t('SettingsDialog.Settings')}
{ setIsProMode(checked) @@ -105,6 +105,7 @@ export default function SettingsDialog({ handleClose }) { /> } label={t('SettingsDialog.ProMode')} + labelPlacement='start' /> diff --git a/web/src/style/materialUISetup.js b/web/src/style/materialUISetup.js index 6b1642d..8098d6c 100644 --- a/web/src/style/materialUISetup.js +++ b/web/src/style/materialUISetup.js @@ -53,6 +53,11 @@ export const useMaterialUITheme = () => { secondary: { main: mainColors[theme].secondary }, }, overrides: { + MuiTypography: { + h6: { + fontSize: '1.2rem', + }, + }, MuiInputBase: { input: { color: mainColors[theme].labels,