From ca180e379562e613fb5655c61832a0dba864f6cd Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 09 九月 2024 12:44:41 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/themes/themes.jsx | 4 ++--
zy-acs-flow/src/themes/rcsTheme.js | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/zy-acs-flow/src/themes/rcsTheme.js b/zy-acs-flow/src/themes/rcsTheme.js
index 106dba0..b5cbb9c 100644
--- a/zy-acs-flow/src/themes/rcsTheme.js
+++ b/zy-acs-flow/src/themes/rcsTheme.js
@@ -2,6 +2,48 @@
const MAIN_COLOR = 'rgb(47, 104, 172)';
+export const rcsDarkTheme = {
+ palette: {
+ primary: {
+ main: '#90caf9',
+ },
+ secondary: {
+ main: '#FBBA72',
+ },
+ mode: 'dark', // Switching the dark mode on is a single property value change.
+ },
+ sidebar: {
+ width: 200,
+ },
+ components: {
+ ...defaultTheme.components,
+ RaMenuItemLink: {
+ styleOverrides: {
+ root: {
+ borderLeft: '3px solid #000',
+ '&.RaMenuItemLink-active': {
+ borderLeft: '3px solid #90caf9',
+ },
+ },
+ },
+ },
+ // MuiFilledInput: {
+ // styleOverrides: undefined,
+ // },
+ MuiAppBar: {
+ styleOverrides: {
+ colorSecondary: {
+ color: '#ffffffb3',
+ backgroundColor: '#222222',
+ },
+ },
+ defaultProps: {
+ elevation: 1,
+ },
+ },
+ },
+}
+
export const rcsLightTheme = {
palette: {
primary: {
diff --git a/zy-acs-flow/src/themes/themes.jsx b/zy-acs-flow/src/themes/themes.jsx
index b4542a9..0cbd2c9 100644
--- a/zy-acs-flow/src/themes/themes.jsx
+++ b/zy-acs-flow/src/themes/themes.jsx
@@ -12,10 +12,10 @@
import { softDarkTheme, softLightTheme } from './softTheme';
import { chiptuneTheme } from './chiptuneTheme';
-import { rcsLightTheme } from './rcsTheme';
+import { rcsLightTheme, rcsDarkTheme } from './rcsTheme';
export const themes = [
- { name: 'rcs', light: rcsLightTheme },
+ { name: 'rcs', light: rcsLightTheme, dark: rcsDarkTheme },
{ name: 'soft', light: softLightTheme, dark: softDarkTheme },
{ name: 'default', light: defaultLightTheme, dark: defaultDarkTheme },
{ name: 'nano', light: nanoLightTheme, dark: nanoDarkTheme },
--
Gitblit v1.9.1