more ui
This commit is contained in:
6 files changed
+42
-11
No files matched your search
@@ -33,6 +33,8 @@ function createWindow(): BrowserWindow {
|
||||
minHeight: 620,
|
||||
show: false,
|
||||
autoHideMenuBar: true,
|
||||
titleBarStyle: "hiddenInset",
|
||||
trafficLightPosition: { x: 16, y: 18 },
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, "preload.js"),
|
||||
contextIsolation: true,
|
||||
|
||||
@@ -31,8 +31,9 @@ function Layout() {
|
||||
|
||||
if (!api) {
|
||||
return (
|
||||
<div className="flex h-screen items-center justify-center bg-[#0c0c0c] text-[#e0e0e0]">
|
||||
<div className="text-center">
|
||||
<div className="flex h-screen flex-col bg-[#0c0c0c] text-[#e0e0e0]">
|
||||
<div className="drag-region h-[52px] shrink-0" />
|
||||
<div className="flex flex-1 items-center justify-center">
|
||||
<p className="text-sm text-[#a0a0a0]/60">
|
||||
Native bridge unavailable. Launch through Electron.
|
||||
</p>
|
||||
|
||||
@@ -135,12 +135,14 @@ export default function ChatView() {
|
||||
// Empty state: no active thread
|
||||
if (!activeThread) {
|
||||
return (
|
||||
<div className="flex flex-1 flex-col items-center justify-center bg-[#0c0c0c] text-[#a0a0a0]/40">
|
||||
<div className="text-center">
|
||||
<div className="mb-3 text-4xl">✨</div>
|
||||
<p className="text-sm">
|
||||
Select a thread or create a new one to get started.
|
||||
</p>
|
||||
<div className="flex flex-1 flex-col bg-[#0c0c0c] text-[#a0a0a0]/40">
|
||||
<div className="drag-region h-[52px] shrink-0" />
|
||||
<div className="flex flex-1 items-center justify-center">
|
||||
<div className="text-center">
|
||||
<p className="text-sm">
|
||||
Select a thread or create a new one to get started.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
@@ -149,7 +151,7 @@ export default function ChatView() {
|
||||
return (
|
||||
<div className="flex flex-1 flex-col bg-[#0c0c0c]">
|
||||
{/* Top bar */}
|
||||
<header className="flex items-center justify-between border-b border-white/[0.08] px-5 py-3">
|
||||
<header className="drag-region flex items-center justify-between border-b border-white/[0.08] px-5 pt-[28px] pb-3">
|
||||
<div className="flex items-center gap-3">
|
||||
<h2 className="text-sm font-medium text-[#e0e0e0]">
|
||||
{activeThread.title}
|
||||
|
||||
@@ -6,7 +6,7 @@ export default function DiffPanel() {
|
||||
return (
|
||||
<aside className="flex h-full w-[400px] shrink-0 flex-col border-l border-white/[0.08] bg-[#141414]">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between border-b border-white/[0.08] px-4 py-3">
|
||||
<div className="drag-region flex items-center justify-between border-b border-white/[0.08] px-4 pt-[28px] pb-3">
|
||||
<h3 className="text-xs font-medium text-[#e0e0e0]">
|
||||
Uncommitted changes
|
||||
</h3>
|
||||
|
||||
@@ -53,8 +53,10 @@ export default function Sidebar() {
|
||||
|
||||
return (
|
||||
<aside className="sidebar flex h-full w-[260px] shrink-0 flex-col border-r border-white/[0.08] bg-[#141414]">
|
||||
{/* Drag region / traffic light space */}
|
||||
<div className="drag-region h-[52px] shrink-0" />
|
||||
{/* Branding */}
|
||||
<div className="flex items-center gap-2 px-4 pt-5 pb-4">
|
||||
<div className="flex items-center gap-2 px-4 pb-4">
|
||||
<div className="flex h-7 w-7 items-center justify-center rounded-lg bg-white text-xs font-bold text-[#0c0c0c]">
|
||||
CT
|
||||
</div>
|
||||
|
||||
@@ -14,6 +14,17 @@ body {
|
||||
background: #0c0c0c;
|
||||
}
|
||||
|
||||
body::after {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0.035;
|
||||
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
||||
background-repeat: repeat;
|
||||
background-size: 256px 256px;
|
||||
}
|
||||
|
||||
pre,
|
||||
code,
|
||||
textarea,
|
||||
@@ -22,6 +33,19 @@ input {
|
||||
monospace;
|
||||
}
|
||||
|
||||
/* Window drag region (frameless titlebar) */
|
||||
.drag-region {
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
.drag-region button,
|
||||
.drag-region input,
|
||||
.drag-region textarea,
|
||||
.drag-region select,
|
||||
.drag-region a {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
/* Scrollbar styling */
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
|
||||
Reference in new issue
Block a user