Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Acrylic Background #577

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
3 changes: 3 additions & 0 deletions app/electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const createWindow = () => {
icon: path.join(process.env.VITE_PUBLIC, 'favicon.ico'),
titleBarStyle: 'hiddenInset',
frame: false,
transparent: true,
vibrancy: 'fullscreen-ui',
backgroundMaterial: 'acrylic',
webPreferences: {
preload: PRELOAD_PATH,
webviewTag: true,
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/AppBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const AppBar = observer(() => {
return (
<div
className={clsx(
'flex flex-row items-center pl-20 h-10 border-b bg-background dark:bg-background-active transition-colors duration-300 ease-in-out',
'flex flex-row items-center pl-20 h-10 border-b bg-none transition-colors duration-300 ease-in-out',
routeManager.route === Route.SIGN_IN && 'bg-transparent border-b-0',
updateManager.updateAvailable &&
'bg-red-950 transition-opacity duration-300 ease-in-out',
Expand Down
2 changes: 1 addition & 1 deletion app/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
@apply border-border;
}
body {
@apply bg-background text-foreground;
@apply bg-background/70 text-foreground;
}
::-webkit-scrollbar {
@apply hidden;
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/editor/Canvas/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const Canvas = observer(({ children }: { children: ReactNode }) => {
<HotkeysArea scale={scale} setScale={setScale}>
<div
ref={containerRef}
className="overflow-hidden bg-background-onlook flex flex-grow relative"
className="overflow-hidden bg-transparent flex flex-grow relative"
onClick={handleCanvasClicked}
>
<div
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/editor/TopBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const EditorTopBar = observer(() => {
];

return (
<div className="bg-background-onlook/60 backdrop-blur-sm flex flex-row h-10 p-2 justify-center items-center">
<div className="bg-none flex flex-row h-10 p-2 justify-center items-center">
<div className="flex flex-row flex-grow basis-0 space-x-1 justify-start items-center">
<ProjectBreadcrumb />
<div className="space-x-0 hidden lg:block">
Expand Down