Compare commits
No commits in common. "bbbb800524bd834179fe2c12ee516d0df04905cf" and "06cb26633d4096f6f52c237213db3e4a28479bf8" have entirely different histories.
bbbb800524
...
06cb26633d
@ -2,9 +2,7 @@
|
|||||||
"$schema": "../gen/schemas/desktop-schema.json",
|
"$schema": "../gen/schemas/desktop-schema.json",
|
||||||
"identifier": "default",
|
"identifier": "default",
|
||||||
"description": "Capability for the main window",
|
"description": "Capability for the main window",
|
||||||
"windows": [
|
"windows": ["main"],
|
||||||
"main"
|
|
||||||
],
|
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"path:default",
|
"path:default",
|
||||||
"event:default",
|
"event:default",
|
||||||
@ -14,7 +12,6 @@
|
|||||||
"resources:default",
|
"resources:default",
|
||||||
"menu:default",
|
"menu:default",
|
||||||
"tray:default",
|
"tray:default",
|
||||||
"shell:allow-open",
|
"shell:allow-open"
|
||||||
"window:allow-start-dragging"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -13,13 +13,7 @@
|
|||||||
{
|
{
|
||||||
"title": "BugWork",
|
"title": "BugWork",
|
||||||
"width": 1200,
|
"width": 1200,
|
||||||
"height": 800,
|
"height": 800
|
||||||
"minWidth": 1200,
|
|
||||||
"minHeight": 800,
|
|
||||||
"titleBarStyle": "Overlay",
|
|
||||||
"decorations": true,
|
|
||||||
"hiddenTitle": true,
|
|
||||||
"transparent": false
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"security": {
|
"security": {
|
||||||
@ -37,4 +31,4 @@
|
|||||||
"icons/icon.ico"
|
"icons/icon.ico"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
import { css } from "@emotion/react";
|
|
||||||
import styled from "@emotion/styled";
|
|
||||||
|
|
||||||
const Handler = styled.div(({ theme }) =>
|
|
||||||
css({
|
|
||||||
position: "fixed",
|
|
||||||
top: 0,
|
|
||||||
left: 0,
|
|
||||||
right: 0,
|
|
||||||
height: theme.spacings.xxs * 24,
|
|
||||||
zIndex: 1,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
export function WindowMoveHandler() {
|
|
||||||
return <Handler data-tauri-drag-region />;
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
export { WindowMoveHandler } from "./WindowMoveHandler/WindowMoveHandler";
|
|
@ -13,7 +13,6 @@ export const globalStyle = (theme) =>
|
|||||||
MozOsxFontSmoothing: "grayscale",
|
MozOsxFontSmoothing: "grayscale",
|
||||||
WebkitTextSizeAdjust: "100%",
|
WebkitTextSizeAdjust: "100%",
|
||||||
backgroundColor: theme.backgroundColor.light,
|
backgroundColor: theme.backgroundColor.light,
|
||||||
overflow: "hidden",
|
|
||||||
[mq.dark]: {
|
[mq.dark]: {
|
||||||
backgroundColor: theme.backgroundColor.dark,
|
backgroundColor: theme.backgroundColor.dark,
|
||||||
},
|
},
|
||||||
|
@ -1,22 +1,3 @@
|
|||||||
import { WindowMoveHandler } from "@/components";
|
|
||||||
import { flex } from "@/style-predefines";
|
|
||||||
import { css } from "@emotion/react";
|
|
||||||
import styled from "@emotion/styled";
|
|
||||||
|
|
||||||
const LayoutContainer = styled.div(({ theme }) =>
|
|
||||||
css({
|
|
||||||
height: "100vh",
|
|
||||||
width: "100vw",
|
|
||||||
paddingTop: theme.spacings.xxs * 24,
|
|
||||||
...flex(theme, "row", "flex-start", "stretch"),
|
|
||||||
overflow: "hidden",
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
export function MainLayout() {
|
export function MainLayout() {
|
||||||
return (
|
return <div></div>;
|
||||||
<LayoutContainer>
|
|
||||||
<WindowMoveHandler />
|
|
||||||
</LayoutContainer>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user