feat(tool): shape
This commit is contained in:
@@ -214,6 +214,10 @@ const TopTools = (
|
||||
setImageFilter,
|
||||
crosshairStatus,
|
||||
setCrosshairStatus,
|
||||
assistToolEnabled,
|
||||
setAssistToolEnabled,
|
||||
assistToolSize,
|
||||
setAssistToolSize,
|
||||
needBackup,
|
||||
setNeedBackup,
|
||||
checkSize,
|
||||
@@ -2030,6 +2034,36 @@ const TopTools = (
|
||||
/>
|
||||
)}
|
||||
</Flex>
|
||||
<Flex justify="space-between" align="center" p={8} gap={4}>
|
||||
<ActionIcon
|
||||
variant="transparent"
|
||||
style={{ cursor: "pointer" }}
|
||||
c={assistToolEnabled ? "blue" : "var(--mantine-color-text)"}
|
||||
onClick={() => {
|
||||
setAssistToolEnabled(!assistToolEnabled)
|
||||
}}>
|
||||
<Eclipse size={16} />
|
||||
</ActionIcon>
|
||||
<NumberInput
|
||||
value={assistToolSize}
|
||||
w={58}
|
||||
min={1}
|
||||
size="xs"
|
||||
hideControls
|
||||
onChange={(v) => {
|
||||
const next = Number(v)
|
||||
if (Number.isFinite(next) && next >= 1) {
|
||||
setAssistToolSize(next)
|
||||
}
|
||||
}}
|
||||
onFocus={() => {
|
||||
useKeyEventStore.getState().setFocusInput(true)
|
||||
}}
|
||||
onBlur={() => {
|
||||
useKeyEventStore.getState().setFocusInput(false)
|
||||
}}
|
||||
/>
|
||||
</Flex>
|
||||
<Divider orientation="vertical" />
|
||||
<Flex justify="center" align="center">
|
||||
<ActionIcon
|
||||
|
||||
Reference in New Issue
Block a user