Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Enable

Manav Rathicc6b3897a7a3
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index 3ea105ef8b..4d50878a19 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -326,8 +326,6 @@ const attachProcessHandlers = () => {
*/
const waitForRendererDevServer = () => wait(1000);
-const wipDesktopCustomTitlebar = process.env.ENTE_WIP_TITLEBAR == "1";
-
/**
* Create an return the {@link BrowserWindow} that will form our app's UI.
*
@@ -364,12 +362,8 @@ const createMainWindow = () => {
// do it (Step 2) unconditionally (i.e., on macOS too).
//
// https://www.electronjs.org/docs/latest/tutorial/custom-title-bar#create-a-custom-title-bar
- ...(wipDesktopCustomTitlebar
- ? {
- titleBarStyle: "hidden",
- titleBarOverlay: true,
- }
- : {}),
+ titleBarStyle: "hidden",
+ titleBarOverlay: true,
// The color to show in the window until the web content gets loaded.
// https://www.electronjs.org/docs/latest/api/browser-window#setting-the-backgroundcolor-property
//
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index 1145eaf0e1..f915d0e9df 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -1,9 +1,4 @@
-import {
- clientPackageName,
- isDesktop,
- staticAppTitle,
- wipDesktopCustomTitlebar,
-} from "@/base/app";
+import { clientPackageName, isDesktop, staticAppTitle } from "@/base/app";
import { CenteredRow } from "@/base/components/containers";
import { CustomHead } from "@/base/components/Head";
import {
@@ -192,9 +187,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
<Notification {...notificationProps} />
- {wipDesktopCustomTitlebar && (
- <WindowTitlebar>{title}</WindowTitlebar>
- )}
+ {isDesktop && <WindowTitlebar>{title}</WindowTitlebar>}
<AppContext.Provider value={appContext}>
{!isI18nReady ? (
<LoadingIndicator />
diff --git a/web/packages/base/app.ts b/web/packages/base/app.ts
index 9dd56c1f35..74b891a9c0 100644
--- a/web/packages/base/app.ts
+++ b/web/packages/base/app.ts
@@ -40,9 +40,6 @@ export const appName: AppName = process.env.appName as AppName;
*/
export const isDesktop = process.env.isDesktop == "1";
-export const wipDesktopCustomTitlebar =
- isDesktop && process.env.NEXT_PUBLIC_ENTE_WIP_TITLEBAR == "1";
-
/**
* Version of the desktop app.
*
diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsx
index 505d255c6b..6c96b47859 100644
--- a/web/packages/base/components/mui/SidebarDrawer.tsx
+++ b/web/packages/base/components/mui/SidebarDrawer.tsx
@@ -1,3 +1,5 @@
+import { isDesktop } from "@/base/app";
+import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
import CloseIcon from "@mui/icons-material/Close";
import {
@@ -10,8 +12,6 @@ import {
type DrawerProps,
} from "@mui/material";
import React from "react";
-import { wipDesktopCustomTitlebar } from "../../app";
-import type { ModalVisibilityProps } from "../utils/modal";
/**
* A MUI {@link Drawer} with a standard set of styling that we use for our left
@@ -36,7 +36,7 @@ export const SidebarDrawer: React.FC<DrawerProps> = ({ children, ...rest }) => (
},
}}
>
- {wipDesktopCustomTitlebar && <AppTitlebarBackdrop />}
+ {isDesktop && <AppTitlebarBackdrop />}
<Box sx={{ p: 1 }}>{children}</Box>
</Drawer>
);