From abe18ac825f2d53c92bf1fb3dca0d94279c7b10b Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Tue, 9 Jan 2024 15:13:42 +0800 Subject: [PATCH] feat: Add pin button --- src/components/layout/layout-control.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/components/layout/layout-control.tsx b/src/components/layout/layout-control.tsx index e525c4aa..4cac8005 100644 --- a/src/components/layout/layout-control.tsx +++ b/src/components/layout/layout-control.tsx @@ -5,6 +5,8 @@ import { CropSquareRounded, FilterNoneRounded, HorizontalRuleRounded, + PushPinOutlined, + PushPinRounded, } from "@mui/icons-material"; import { useState } from "react"; @@ -12,12 +14,28 @@ export const LayoutControl = () => { const minWidth = 40; const [isMaximized, setIsMaximized] = useState(false); + const [isPined, setIsPined] = useState(false); appWindow.isMaximized().then((isMaximized) => { setIsMaximized(() => isMaximized); }); return ( <> + +