Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export * from "./components/helpers/jsonforms";
// themes
export * from "./themes/BaseTheme";
export * from "./themes/DiamondTheme";
export * from "./themes/DiamondOldTheme";
export * from "./themes/GenericTheme";
export * from "./themes/ThemeProvider";
export * from "./themes/ThemeManager";
Expand Down
37 changes: 37 additions & 0 deletions src/themes/DiamondOldTheme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { createTheme, Theme } from "@mui/material/styles";

import { mergeThemeOptions } from "./ThemeManager";
import { DiamondThemeOptions } from "./DiamondTheme";

import logoImageDark from "../public/diamond/logo-dark.svg";
import logoImageLight from "../public/diamond/logo-light.svg";

const DiamondOldThemeOptions = mergeThemeOptions(
{
logos: {
normal: {
src: logoImageDark, // Use the dark image for light backgrounds
srcDark: logoImageLight, // Use the light image for dark backgrounds
alt: "Diamond Light Source Logo",
width: "100",
},
},
colorSchemes: {
dark: {
palette: {
primary: {
main: "#6175bd", //lightened version of {dlsLogoBlue}
light: "#8090CA", // lighter blue
dark: "#435184", // mid blue
contrastText: "#ffffff", // white
},
},
},
},
},
DiamondThemeOptions,
);

const DiamondOldTheme: Theme = createTheme(DiamondOldThemeOptions);

export { DiamondOldTheme, DiamondOldThemeOptions };
101 changes: 0 additions & 101 deletions src/themes/DiamondTheme.old

This file was deleted.