fix: use transparent background for rounded window on Linux, closes #1982 (#1991)

This commit is contained in:
Huang Xin
2025-09-07 16:38:27 +08:00
committed by GitHub
parent d2242423f5
commit 70a7f5be19
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ pub fn run() {
}
#[cfg(target_os = "linux")]
{
builder = builder.transparent(true);
builder = builder.transparent(true).background_color(tauri::window::Color(0, 0, 0, 0));
}
builder
+2 -2
View File
@@ -619,7 +619,7 @@ const LibraryPageContent = ({ searchParams }: { searchParams: ReadonlyURLSearchP
};
if (!appService || !insets || checkOpenWithBooks || checkLastOpenBooks) {
return <div className='bg-base-200 h-[100vh]' />;
return <div className={clsx('h-[100vh]', !appService?.isLinuxApp && 'bg-base-200')} />;
}
const showBookshelf = libraryLoaded || libraryBooks.length > 0;
@@ -730,7 +730,7 @@ const LibraryPageContent = ({ searchParams }: { searchParams: ReadonlyURLSearchP
const LibraryPage = () => {
return (
<Suspense fallback={<div className='bg-base-200 h-[100vh]' />}>
<Suspense fallback={<div className='h-[100vh]' />}>
<LibraryPageWithSearchParams />
</Suspense>
);
@@ -155,7 +155,7 @@ const Reader: React.FC<{ ids?: string }> = ({ ids }) => {
</Suspense>
</div>
) : (
<div className='bg-base-100 h-[100vh]'></div>
<div className={clsx('h-[100vh]', !appService?.isLinuxApp && 'bg-base-100')}></div>
);
};
@@ -21,6 +21,9 @@ const Providers = ({ children }: { children: React.ReactNode }) => {
}
}, [appService]);
// Make sure appService is available in all children components
if (!appService) return;
return (
<CSPostHogProvider>
<AuthProvider>