feat: add blockmatic icon and color to menubar
This commit is contained in:
parent
663b026c6e
commit
fdabe89dd5
2 changed files with 7 additions and 5 deletions
|
|
@ -266,7 +266,7 @@ function Canvas() {
|
||||||
onToolUse();
|
onToolUse();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[dragging, coords, scale, tool, mouseCoords, onToolUse, setCoords, setSelectionCoords]
|
[dragging, coords, scale, tool, mouseCoords, onToolUse, setCoords, setSelectionCoords, radius]
|
||||||
);
|
);
|
||||||
|
|
||||||
const onMouseDown = useCallback(() => {
|
const onMouseDown = useCallback(() => {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@ import EditMenu from "./EditMenu";
|
||||||
import ViewMenu from "./ViewMenu";
|
import ViewMenu from "./ViewMenu";
|
||||||
import MoreMenu from "./MoreMenu";
|
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";
|
import GithubIcon from "@/assets/github.svg?react";
|
||||||
|
|
||||||
function Menubar() {
|
function Menubar() {
|
||||||
|
|
@ -20,8 +21,9 @@ function Menubar() {
|
||||||
return (
|
return (
|
||||||
<DialogProvider>
|
<DialogProvider>
|
||||||
<UIMenubar className="rounded-none border-t-0 border-x-0 col-span-3">
|
<UIMenubar className="rounded-none border-t-0 border-x-0 col-span-3">
|
||||||
<Link to={{ pathname: "/" }} className="px-4 w-32">
|
<Link to={{ pathname: "/" }} className="px-4 w-40 flex gap-2 items-center">
|
||||||
<BlockmaticText className="h-full w-full" fill={isDark ? "white" : "black"} />
|
<BlockmaticIcon className="h-full w-8" />
|
||||||
|
<BlockmaticText className="h-full w-full" />
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<FileMenu />
|
<FileMenu />
|
||||||
|
|
@ -29,7 +31,7 @@ function Menubar() {
|
||||||
<ViewMenu />
|
<ViewMenu />
|
||||||
<MoreMenu />
|
<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"} />
|
<GithubIcon fill={isDark ? "white" : "black"} />
|
||||||
</a>
|
</a>
|
||||||
</UIMenubar>
|
</UIMenubar>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue