feat: add blockmatic icon and color to menubar

This commit is contained in:
trafficlunar 2025-01-18 23:09:32 +00:00
parent 663b026c6e
commit fdabe89dd5
2 changed files with 7 additions and 5 deletions

View file

@ -266,7 +266,7 @@ function Canvas() {
onToolUse();
}
},
[dragging, coords, scale, tool, mouseCoords, onToolUse, setCoords, setSelectionCoords]
[dragging, coords, scale, tool, mouseCoords, onToolUse, setCoords, setSelectionCoords, radius]
);
const onMouseDown = useCallback(() => {

View file

@ -11,7 +11,8 @@ import EditMenu from "./EditMenu";
import ViewMenu from "./ViewMenu";
import MoreMenu from "./MoreMenu";
import BlockmaticText from "@/assets/blockmatic-text.svg?react";
import BlockmaticIcon from "@/assets/blockmatic-icon-colored.svg?react";
import BlockmaticText from "@/assets/blockmatic-text-colored.svg?react";
import GithubIcon from "@/assets/github.svg?react";
function Menubar() {
@ -20,8 +21,9 @@ function Menubar() {
return (
<DialogProvider>
<UIMenubar className="rounded-none border-t-0 border-x-0 col-span-3">
<Link to={{ pathname: "/" }} className="px-4 w-32">
<BlockmaticText className="h-full w-full" fill={isDark ? "white" : "black"} />
<Link to={{ pathname: "/" }} className="px-4 w-40 flex gap-2 items-center">
<BlockmaticIcon className="h-full w-8" />
<BlockmaticText className="h-full w-full" />
</Link>
<FileMenu />
@ -29,7 +31,7 @@ function Menubar() {
<ViewMenu />
<MoreMenu />
<a href="https://github.com/trafficlunar/blockmatic" className="w-5 absolute right-2">
<a href="https://github.com/trafficlunar/blockmatic" className="w-6 absolute right-2">
<GithubIcon fill={isDark ? "white" : "black"} />
</a>
</UIMenubar>