- Updated to use configurable gaugeHeader, gaugeSubheader and containerHeight etc
This commit is contained in:
1 parent
f4f863e60f
commit
a2d31124ff
3 files changed
+21
-23
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { createTheme } from "@mui/material";
|
||||
import { gaugeText } from "./lightTheme"
|
||||
import { gaugeHeaderCommon } from "./lightTheme"
|
||||
export { gaugeHeaderCommon }
|
||||
|
||||
const text = {
|
||||
primary: "#fafafa",
|
||||
@@ -35,14 +36,6 @@ const darkTheme = createTheme({
|
||||
primary: { main: "#1570ef" },
|
||||
secondary: { main: "#2D2D33" },
|
||||
text: text,
|
||||
gaugePercentageText: {
|
||||
...gaugeText,
|
||||
fontSize: "11px"
|
||||
},
|
||||
gaugeDisplayText: {
|
||||
...gaugeText,
|
||||
fontSize: "9px"
|
||||
},
|
||||
background: background,
|
||||
border: border,
|
||||
info: {
|
||||
|
||||
@@ -13,7 +13,7 @@ const background = {
|
||||
accent: "#f9fafb",
|
||||
};
|
||||
|
||||
export const gaugeText = {
|
||||
export const gaugeHeaderCommon = {
|
||||
fontWeight: 400,
|
||||
fill: text.tertiary,
|
||||
textAnchor: "middle",
|
||||
@@ -40,14 +40,7 @@ const lightTheme = createTheme({
|
||||
primary: { main: "#1570EF" },
|
||||
secondary: { main: "#F4F4F4", dark: "#e3e3e3", contrastText: "#475467" },
|
||||
text: text,
|
||||
gaugePercentageText: {
|
||||
...gaugeText,
|
||||
fontSize: "11px"
|
||||
},
|
||||
gaugeDisplayText: {
|
||||
...gaugeText,
|
||||
fontSize: "9px"
|
||||
},
|
||||
gaugeHeaderCommon: gaugeHeaderCommon,
|
||||
background: background,
|
||||
border: border,
|
||||
info: {
|
||||
|
||||
Reference in new issue
Block a user