diff --git a/apps/readest-app/src-tauri/Cargo.toml b/apps/readest-app/src-tauri/Cargo.toml index 3e94e227..3ec9e747 100644 --- a/apps/readest-app/src-tauri/Cargo.toml +++ b/apps/readest-app/src-tauri/Cargo.toml @@ -22,7 +22,7 @@ serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } log = "0.4" # FIXME: remove the devtools feature in production -tauri = { version = "2.0.2", features = ["protocol-asset", "devtools"] } +tauri = { version = "2.0.2", features = [ "macos-private-api", "protocol-asset", "devtools"] } tauri-plugin-log = "2.0.1" tauri-plugin-fs = "2.0.1" tauri-plugin-dialog = "2.0.1" diff --git a/apps/readest-app/src-tauri/tauri.conf.json b/apps/readest-app/src-tauri/tauri.conf.json index e46653ad..d4aeb0d6 100644 --- a/apps/readest-app/src-tauri/tauri.conf.json +++ b/apps/readest-app/src-tauri/tauri.conf.json @@ -10,7 +10,7 @@ "beforeBuildCommand": "pnpm build" }, "app": { - "withGlobalTauri": true, + "macOSPrivateApi": true, "windows": [ { "title": "Readest", @@ -19,7 +19,9 @@ "resizable": true, "fullscreen": false, "maximized": true, - "decorations": false + "decorations": false, + "transparent": true, + "shadow": false } ], "security": { diff --git a/apps/readest-app/src/app/globals.css b/apps/readest-app/src/app/globals.css index 524e66eb..e21948fd 100644 --- a/apps/readest-app/src/app/globals.css +++ b/apps/readest-app/src/app/globals.css @@ -5,12 +5,14 @@ :root { --background: #ffffff; --foreground: #171717; + border-radius: 10px; } @media (prefers-color-scheme: dark) { :root { --background: #0a0a0a; --foreground: #ededed; + border-radius: 10px; } } @@ -18,6 +20,8 @@ body { color: var(--foreground); background: var(--background); font-family: Arial, Helvetica, sans-serif; + border-radius: 10px; + background-color: transparent; } @layer utilities { @@ -42,4 +46,18 @@ foliate-view { @apply inline-flex h-6 w-6 items-center justify-center rounded-full; @apply transition duration-200 ease-in-out transform hover:scale-105; @apply bg-base-300 hover:bg-gray-300; +} + +.rounded-window { + border-radius: 10px; +} + +.rounded-window-left { + border-top-left-radius: 10px; + border-bottom-left-radius: 10px; +} + +.rounded-window-right { + border-top-right-radius: 10px; + border-bottom-right-radius: 10px; } \ No newline at end of file diff --git a/apps/readest-app/src/app/library/components/Header.tsx b/apps/readest-app/src/app/library/components/Header.tsx index 38eaecd6..4647a49f 100644 --- a/apps/readest-app/src/app/library/components/Header.tsx +++ b/apps/readest-app/src/app/library/components/Header.tsx @@ -11,7 +11,10 @@ interface LibraryHeaderProps { const LibraryHeader: React.FC = ({ onImportBooks, onToggleSelectMode }) => { return ( -
+
diff --git a/apps/readest-app/src/app/library/page.tsx b/apps/readest-app/src/app/library/page.tsx index 210e35a3..8094d18d 100644 --- a/apps/readest-app/src/app/library/page.tsx +++ b/apps/readest-app/src/app/library/page.tsx @@ -73,13 +73,13 @@ const LibraryPage = () => { }; return ( -
+
-
-
+
+
= ({
= ({ return (
= ({ )}
+
+ +
); }; diff --git a/apps/readest-app/src/app/reader/components/SideBar.tsx b/apps/readest-app/src/app/reader/components/SideBar.tsx index 49ce3563..fdc2330a 100644 --- a/apps/readest-app/src/app/reader/components/SideBar.tsx +++ b/apps/readest-app/src/app/reader/components/SideBar.tsx @@ -82,7 +82,7 @@ const SideBar: React.FC<{ return ( isVisible && (
-
+