mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-17 22:39:42 +02:00
Lots more theme stuff
This commit is contained in:
@@ -24,10 +24,7 @@ export function Sidebar({ className, activeRequestId, workspaceId, requests, ...
|
||||
const [open, setOpen] = useState<boolean>(false);
|
||||
return (
|
||||
<div
|
||||
className={classnames(
|
||||
className,
|
||||
'w-52 bg-violet-600 dark:bg-violet-50 h-full border-gray-100/50 relative z-10',
|
||||
)}
|
||||
className={classnames(className, 'w-52 bg-gray-100 h-full border-r border-gray-200')}
|
||||
{...props}
|
||||
>
|
||||
<HStack as={WindowDragRegion} items="center" justify="end">
|
||||
@@ -37,6 +34,7 @@ export function Sidebar({ className, activeRequestId, workspaceId, requests, ...
|
||||
Save
|
||||
</Button>
|
||||
</Dialog>
|
||||
<IconButton size="sm" icon="camera" onClick={() => setOpen(true)} />
|
||||
<IconButton
|
||||
size="sm"
|
||||
icon={appearance === 'dark' ? 'moon' : 'sun'}
|
||||
@@ -54,19 +52,7 @@ export function Sidebar({ className, activeRequestId, workspaceId, requests, ...
|
||||
{requests.map((r) => (
|
||||
<SidebarItem key={r.id} request={r} active={r.id === activeRequestId} />
|
||||
))}
|
||||
<div>
|
||||
<div className="w-10 h-5 bg-blue-50" />
|
||||
<div className="w-10 h-5 bg-blue-100" />
|
||||
<div className="w-10 h-5 bg-blue-200" />
|
||||
<div className="w-10 h-5 bg-blue-300" />
|
||||
<div className="w-10 h-5 bg-blue-400" />
|
||||
<div className="w-10 h-5 bg-blue-500" />
|
||||
<div className="w-10 h-5 bg-blue-600" />
|
||||
<div className="w-10 h-5 bg-blue-700" />
|
||||
<div className="w-10 h-5 bg-blue-800" />
|
||||
<div className="w-10 h-5 bg-blue-900" />
|
||||
<div className="w-10 h-5 bg-blue-950" />
|
||||
</div>
|
||||
{/*<Colors />*/}
|
||||
</VStack>
|
||||
</div>
|
||||
);
|
||||
@@ -77,9 +63,8 @@ function SidebarItem({ request, active }: { request: HttpRequest; active: boolea
|
||||
<li key={request.id}>
|
||||
<Button
|
||||
as={Link}
|
||||
color="tint"
|
||||
to={`/workspaces/${request.workspaceId}/requests/${request.id}`}
|
||||
className={classnames('w-full', active && 'bg-gray-500/[0.1] text-gray-900')}
|
||||
className={classnames('w-full', active ? 'bg-gray-200/70 text-gray-900' : 'text-gray-500')}
|
||||
size="xs"
|
||||
justify="start"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user