Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

Refactor: Update NotesWindow and createNotesWindow for improved UI

itzadetunji33dedd68569f
diff --git a/electron/windows.ts b/electron/windows.ts
index 96394df3c..3db5d9660 100644
--- a/electron/windows.ts
+++ b/electron/windows.ts
@@ -326,14 +326,13 @@ export function createNotesWindow(): BrowserWindow {
const win = new BrowserWindow({
width: 480,
height: 640,
- frame: false,
- transparent: true,
- backgroundColor: "#00000000",
+ minWidth: 320,
+ minHeight: 400,
+ title: "Notes",
+ backgroundColor: "#09090b",
+ resizable: true,
alwaysOnTop: true,
- hasShadow: true,
- vibrancy: "under-window",
- visualEffectState: "active",
- titleBarStyle: "hidden",
+ skipTaskbar: false,
show: false,
webPreferences: {
preload: path.join(__dirname, "preload.mjs"),
diff --git a/src/components/launch/NotesWindow.tsx b/src/components/launch/NotesWindow.tsx
index d93709076..1e1028c19 100644
--- a/src/components/launch/NotesWindow.tsx
+++ b/src/components/launch/NotesWindow.tsx
@@ -8,7 +8,7 @@ export function NotesWindow() {
};
return (
- <div className="bg-red-900 h-100 w-100 ">
+ <div className="bg-red-900 h-screen w-screen ">
<textarea
className="w-full h-full bg-transparent outline-none resize-none"
placeholder="Take notes here..."