diff --git a/.gitignore b/.gitignore index c9e2fb9..71b24cb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ dist-ssr update.json scripts/_env.sh .vscode +.tool-version \ No newline at end of file diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..9caef8f --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 21.7.1 diff --git a/src-tauri/src/utils/resolve.rs b/src-tauri/src/utils/resolve.rs index 65d7689..e075a6c 100644 --- a/src-tauri/src/utils/resolve.rs +++ b/src-tauri/src/utils/resolve.rs @@ -171,7 +171,7 @@ pub fn create_window(app_handle: &AppHandle) { .title_bar_style(tauri::TitleBarStyle::Overlay) .build(); #[cfg(target_os = "linux")] - let window = builder.decorations(true).transparent(false).build(); + let window = builder.decorations(false).transparent(true).build(); match window { Ok(win) => { diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 36bb58a..d29e42d 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -47,11 +47,11 @@ body { @import "./page.scss"; @import "./font.scss"; -@media (prefers-color-scheme: dark) { - :root { - background-color: rgba(18, 18, 18, 1); - } -} +// @media (prefers-color-scheme: dark) { +// :root { +// background-color: rgba(18, 18, 18, 1); +// } +// } .user-none { user-select: none; diff --git a/src/assets/styles/layout.scss b/src/assets/styles/layout.scss index fe2ef30..78b0cc3 100644 --- a/src/assets/styles/layout.scss +++ b/src/assets/styles/layout.scss @@ -94,7 +94,7 @@ // position: absolute; // top: 0px; // right: 0px; - height: 24px; + height: 36px; display: flex; // align-items: center; justify-content: end; diff --git a/src/pages/_layout.tsx b/src/pages/_layout.tsx index ce58f90..d33b4dc 100644 --- a/src/pages/_layout.tsx +++ b/src/pages/_layout.tsx @@ -122,6 +122,14 @@ const Layout = () => { ({ palette }) => ({ bgcolor: palette.background.paper, }), + OS === "linux" + ? { + borderRadius: "8px", + border: "2px solid var(--divider-color)", + width: "calc(100vw - 4px)", + height: "calc(100vh - 4px)", + } + : {}, ]} >