Skip to content

Commit

Permalink
Merge branch 'better_settings_layout' into refactor_storage
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmerk committed Nov 22, 2024
2 parents 557dacf + 56d7806 commit b5ff6be
Show file tree
Hide file tree
Showing 26 changed files with 951 additions and 892 deletions.
13 changes: 9 additions & 4 deletions gui_dev/src/components/StatusBar/StatusBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { ResizeHandle } from "./ResizeHandle";
import { SocketStatus } from "./SocketStatus";
import { WebviewStatus } from "./WebviewStatus";

import { useWebviewStore } from "@/stores";

import { useUiStore, useWebviewStore } from "@/stores";
import { Stack } from "@mui/material";

export const StatusBar = () => {
const { isWebView } = useWebviewStore((state) => state.isWebView);
const isWebView = useWebviewStore((state) => state.isWebView);
const createStatusBarContent = useUiStore((state) => state.statusBarContent);

const StatusBarContent = createStatusBarContent();

return (
<Stack
Expand All @@ -17,8 +19,11 @@ export const StatusBar = () => {
bgcolor="background.level1"
borderTop="2px solid"
borderColor="background.level3"
height="2rem"
>
<WebviewStatus />
{StatusBarContent && <StatusBarContent />}

{/* <WebviewStatus /> */}
{/* Current experiment */}
{/* Current stream */}
{/* Current activity */}
Expand Down
8 changes: 4 additions & 4 deletions gui_dev/src/components/TitledBox.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from "@mui/material";
import { Box, Container } from "@mui/material";

/**
* Component that uses the Box component to render an HTML fieldset element
Expand All @@ -13,14 +13,14 @@ export const TitledBox = ({
children,
...props
}) => (
<Container
<Box
component="fieldset"
{...props}
sx={{
borderRadius: 5,
border: "1px solid #555",
backgroundColor: "#424242",
padding: 2,
padding: 1,
width: "100%",
gap: 2,
display: "flex",
Expand All @@ -31,5 +31,5 @@ export const TitledBox = ({
>
<legend>{title}</legend>
{children}
</Container>
</Box>
);
65 changes: 0 additions & 65 deletions gui_dev/src/pages/Settings/DragAndDropList.jsx

This file was deleted.

72 changes: 0 additions & 72 deletions gui_dev/src/pages/Settings/DragAndDropList.module.css

This file was deleted.

66 changes: 0 additions & 66 deletions gui_dev/src/pages/Settings/Dropdown.jsx

This file was deleted.

88 changes: 0 additions & 88 deletions gui_dev/src/pages/Settings/FrequencyRange.jsx

This file was deleted.

Loading

0 comments on commit b5ff6be

Please sign in to comment.