diff --git a/src/index.ts b/src/index.ts index 95af579a..1f7d7ff4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,3 +7,4 @@ export * from "./ui/hooks"; export * from "./types"; export { contextRender } from "./testResources"; export * from "./version"; +export * from "./phoebusTheme"; diff --git a/src/ui/widgets/Display/display.tsx b/src/ui/widgets/Display/display.tsx index a74789aa..d1d52583 100644 --- a/src/ui/widgets/Display/display.tsx +++ b/src/ui/widgets/Display/display.tsx @@ -21,6 +21,8 @@ import { MacroContextType } from "../../../types/macros"; import { getOptionalValue } from "../utils"; +import { Theme, ThemeProvider } from "@mui/material"; +import { phoebusTheme } from "../../../phoebusTheme"; const widgetName = "display"; @@ -38,6 +40,7 @@ const DisplayProps = { type DisplayComponentProps = InferWidgetProps & { id: string; class?: string; + theme?: Theme; }; // Generic display widget to put other things inside @@ -92,11 +95,13 @@ export const DisplayComponent = (props: DisplayComponentProps): JSX.Element => { }; } return ( - -
- <>{newProps.children} -
-
+ + +
+ <>{newProps.children} +
+
+
); }; diff --git a/src/ui/widgets/Tabs/tabs.tsx b/src/ui/widgets/Tabs/tabs.tsx index 359e68f6..cd63a562 100644 --- a/src/ui/widgets/Tabs/tabs.tsx +++ b/src/ui/widgets/Tabs/tabs.tsx @@ -95,6 +95,7 @@ export const TabBar = (props: TabComponentProps): JSX.Element => { { aria-labelledby={`simple-tab-${index}`} sx={{ overflow: "scroll", - backgroundColor: "transparent" + backgroundColor: "transparent", + backgroundImage: "none" }} > {value === index && <>{tab.children}}