forked from Github/frigate
UI cleanup (#10567)
* Fix selected items text * Use action icons from design and fix spacing * Fix icons for live grid * Fix viewed select api * Setup default theme as system * Make conig editor respect system theme
This commit is contained in:
42
web/src/components/icons/LiveIcons.tsx
Normal file
42
web/src/components/icons/LiveIcons.tsx
Normal file
@@ -0,0 +1,42 @@
|
||||
type LiveIconProps = {
|
||||
layout?: "list" | "grid";
|
||||
};
|
||||
|
||||
export function LiveGridIcon({ layout }: LiveIconProps) {
|
||||
return (
|
||||
<div className="size-full flex flex-col gap-0.5 rounded-md overflow-hidden">
|
||||
<div
|
||||
className={`h-1 w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||||
/>
|
||||
<div className="h-1 w-full flex gap-0.5">
|
||||
<div
|
||||
className={`w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||||
/>
|
||||
<div
|
||||
className={`w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||||
/>
|
||||
</div>
|
||||
<div className="h-1 w-full flex gap-0.5">
|
||||
<div
|
||||
className={`w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||||
/>
|
||||
<div
|
||||
className={`w-full ${layout == "grid" ? "bg-selected" : "bg-muted-foreground"}`}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function LiveListIcon({ layout }: LiveIconProps) {
|
||||
return (
|
||||
<div className="size-full flex flex-col gap-0.5 rounded-md overflow-hidden">
|
||||
<div
|
||||
className={`size-full ${layout == "list" ? "bg-selected" : "bg-muted-foreground"}`}
|
||||
/>
|
||||
<div
|
||||
className={`size-full ${layout == "list" ? "bg-selected" : "bg-muted-foreground"}`}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user