From c4037684ba9051517a3e0f87cda8e33dd91721a6 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 2 May 2024 15:06:00 +0200 Subject: [PATCH] more improvements (coloring, themes) --- react/admin-panel/src/AdminDashboard.jsx | 56 ++++--- react/admin-panel/src/App.jsx | 31 ---- react/admin-panel/src/elements/sidebar.js | 145 +++++++++--------- .../src/views/access-control-list.js | 4 +- .../admin-panel/src/views/group/group-edit.js | 2 +- .../admin-panel/src/views/group/group-list.js | 2 +- .../admin-panel/src/views/route/route-list.js | 4 +- react/admin-panel/src/views/user/user-list.js | 2 +- 8 files changed, 117 insertions(+), 129 deletions(-) diff --git a/react/admin-panel/src/AdminDashboard.jsx b/react/admin-panel/src/AdminDashboard.jsx index 54a423d..a354537 100644 --- a/react/admin-panel/src/AdminDashboard.jsx +++ b/react/admin-panel/src/AdminDashboard.jsx @@ -8,7 +8,7 @@ import {LocaleContext} from "shared/locale"; // views import View404 from "./views/404"; -import clsx from "clsx"; +import {createTheme, CssBaseline, ThemeProvider} from "@mui/material"; const Overview = lazy(() => import('./views/overview')); const UserListView = lazy(() => import('./views/user/user-list')); const UserEditView = lazy(() => import('./views/user/user-edit')); @@ -58,25 +58,43 @@ export default function AdminDashboard(props) { hideDialog: hideDialog }; + const lightTheme = createTheme({ + palette: { + mode: 'light', + }, + }); + + const darkTheme = createTheme({ + palette: { + mode: 'dark', + background: { + paper: '#343a40', + }, + }, + }); + return - - {L("general.loading")}... }> - - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - } /> - - + + + + {L("general.loading")}... }> + + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + } /> + + +