From 1d3ca853320ee3c97ef860917e7742a61f29b4f3 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Sun, 12 Oct 2025 12:01:14 -0700 Subject: [PATCH] window ui redesign --- dist-electron/main.js | 8 ++++++++ electron/main.ts | 8 ++++++++ src/App.tsx | 40 +++++++++++++++++++++++++++++----------- src/index.css | 19 +++++++++---------- 4 files changed, 54 insertions(+), 21 deletions(-) diff --git a/dist-electron/main.js b/dist-electron/main.js index a76bb02..812f20e 100644 --- a/dist-electron/main.js +++ b/dist-electron/main.js @@ -13,6 +13,14 @@ let win; function createWindow() { win = new BrowserWindow({ icon: path.join(process.env.VITE_PUBLIC, "electron-vite.svg"), + width: 360, + height: 64, + frame: false, + transparent: true, + resizable: false, + alwaysOnTop: true, + hasShadow: false, + vibrancy: "sidebar", webPreferences: { preload: path.join(__dirname, "preload.mjs") } diff --git a/electron/main.ts b/electron/main.ts index 94391f6..9d7239c 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -29,6 +29,14 @@ let win: BrowserWindow | null function createWindow() { win = new BrowserWindow({ icon: path.join(process.env.VITE_PUBLIC, 'electron-vite.svg'), + width: 360, + height: 64, + frame: false, + transparent: true, + resizable: false, + alwaysOnTop: true, + hasShadow: false, + vibrancy: 'sidebar', webPreferences: { preload: path.join(__dirname, 'preload.mjs'), }, diff --git a/src/App.tsx b/src/App.tsx index a083dcf..86aafc9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,18 +1,36 @@ -import "./App.css"; -import { Button } from "@/components/ui/button" import { useScreenRecorder } from "./hooks/useScreenRecorder"; +import { Button } from "@/components/ui/button"; +import { BsRecordCircle } from "react-icons/bs"; +import { FaRegStopCircle } from "react-icons/fa"; +import { MdClose } from "react-icons/md"; -function App() { +export default function App() { const { recording, toggleRecording } = useScreenRecorder(); return ( - <> - - - +
+ + +
); } - -export default App; diff --git a/src/index.css b/src/index.css index cad43db..42299a3 100644 --- a/src/index.css +++ b/src/index.css @@ -1,3 +1,6 @@ +body { + background: transparent !important; +} @tailwind base; @tailwind components; @tailwind utilities; @@ -50,9 +53,6 @@ button { cursor: pointer; transition: border-color 0.25s; } -button:hover { - border-color: #646cff; -} button:focus, button:focus-visible { outline: 4px auto -webkit-focus-ring-color; @@ -73,7 +73,7 @@ button:focus-visible { -@layer base { +@layer base { :root { --background: 0 0% 100%; --foreground: 20 14.3% 4.1%; @@ -100,7 +100,7 @@ button:focus-visible { --chart-4: 43 74% 66%; --chart-5: 27 87% 67%; --radius: 0.5rem; - } + } .dark { --background: 20 14.3% 4.1%; --foreground: 60 9.1% 97.8%; @@ -130,12 +130,11 @@ button:focus-visible { } - -@layer base { - * { +@layer base { + * { @apply border-border; - } - body { + } + body { @apply bg-background text-foreground; } }