Skip to content

Commit

Permalink
drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed May 15, 2024
1 parent 223a87c commit d654e94
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Website/src/activitys/MainActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import UnverifiedHostActivity from "./UnverifiedHostActivity";
import { useModFS } from "@Hooks/useModFS";
import { SuFile } from "@Native/SuFile";
import { LogcatActivity } from "./LogcatActivity";
import { view } from "@Native/View";

const getLocation = () => {
if (window.location !== window.parent.location) {
Expand Down Expand Up @@ -284,6 +285,18 @@ const MainActivity = (): JSX.Element => {
<Splitter>
<Splitter.Side
side="left"
sx={{
borderColor: theme.palette.menuoutline,
borderStyle: "solid",
borderLeft: "0px",
borderWidth: "1px",
borderRadius: `0px ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px 0px`,
mt: `calc(${view.getWindowTopInsets() || 8}px + 0.5% - 2px)`,
mb: `calc(${view.getWindowBottomInsets() || 8}px + 0.5% - 2px)`,
".page--material": {
borderRadius: `0px ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px 0px`,
},
}}
width={250}
collapse={true}
swipeable={false}
Expand Down
2 changes: 2 additions & 0 deletions Website/src/components/onsenui/Splitter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import onsCustomElement from "@Util/onsCustomElement";
import { SxProps } from "@mui/material";
import "onsenui/esm/elements/ons-splitter";
import React from "react";

Expand All @@ -9,6 +10,7 @@ interface HTMLSplitter {
interface HTMLSplitterContent {}

interface HTMLSplitterSide {
sx?: SxProps;
collapse?: boolean | "portrait" | "landscape";
swipeable?: boolean;
isOpen?: boolean;
Expand Down
1 change: 1 addition & 0 deletions Website/src/hooks/useTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ const THIS_IS_THE_THEME_OBJECT_OF_THIS_F_APP = createTheme({
secondary: "#777777",
},
divider: "#f3f5f726",
menuoutline: "#333638",
},
} as unknown as MMRLTheme);

Expand Down
1 change: 1 addition & 0 deletions Website/src/typings/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ declare global {
primary?: {
header?: string;
};
menuoutline?: string;
text?: {
link?: string;
};
Expand Down

0 comments on commit d654e94

Please sign in to comment.