-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Hiroshiba <[email protected]>
- Loading branch information
Showing
11 changed files
with
661 additions
and
108 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
<template> | ||
<div v-if="editTarget === 'NOTE'" class="tool-palette"> | ||
<QBtn | ||
flat | ||
round | ||
:color="sequencerNoteTool === 'SELECT_FIRST' ? 'primary' : ''" | ||
@click="$emit('update:sequencerNoteTool', 'SELECT_FIRST')" | ||
> | ||
<i class="material-symbols-outlined">arrow_selector_tool</i> | ||
<QTooltip | ||
anchor="center right" | ||
self="center left" | ||
:offset="[8, 0]" | ||
:delay="500" | ||
transitionShow="" | ||
transitionHide="" | ||
> | ||
選択優先 | ||
</QTooltip> | ||
</QBtn> | ||
<QBtn | ||
flat | ||
round | ||
:color="sequencerNoteTool === 'EDIT_FIRST' ? 'primary' : ''" | ||
@click="$emit('update:sequencerNoteTool', 'EDIT_FIRST')" | ||
> | ||
<i class="material-symbols-outlined">stylus</i> | ||
<QTooltip | ||
anchor="center right" | ||
self="center left" | ||
:offset="[8, 0]" | ||
:delay="500" | ||
transitionShow="" | ||
transitionHide="" | ||
> | ||
編集優先 | ||
</QTooltip> | ||
</QBtn> | ||
</div> | ||
<div v-else-if="editTarget === 'PITCH'" class="tool-palette"> | ||
<QBtn | ||
flat | ||
round | ||
:color="sequencerPitchTool === 'DRAW' ? 'primary' : ''" | ||
@click="$emit('update:sequencerPitchTool', 'DRAW')" | ||
> | ||
<i class="material-symbols-outlined">stylus</i> | ||
<QTooltip | ||
anchor="center right" | ||
self="center left" | ||
:offset="[8, 0]" | ||
:delay="500" | ||
transitionShow="" | ||
transitionHide="" | ||
> | ||
ピッチ編集 | ||
</QTooltip> | ||
</QBtn> | ||
<QBtn | ||
flat | ||
round | ||
:color="sequencerPitchTool === 'ERASE' ? 'primary' : ''" | ||
@click="$emit('update:sequencerPitchTool', 'ERASE')" | ||
> | ||
<i class="material-symbols-outlined">ink_eraser</i> | ||
<QTooltip | ||
anchor="center right" | ||
self="center left" | ||
:offset="[8, 0]" | ||
:delay="500" | ||
transitionShow="" | ||
transitionHide="" | ||
> | ||
ピッチ削除 | ||
</QTooltip> | ||
</QBtn> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { SequencerEditTarget, NoteEditTool, PitchEditTool } from "@/store/type"; | ||
defineProps<{ | ||
editTarget: SequencerEditTarget; | ||
sequencerNoteTool: NoteEditTool; | ||
sequencerPitchTool: PitchEditTool; | ||
}>(); | ||
defineEmits<{ | ||
(event: "update:sequencerNoteTool", value: NoteEditTool): void; | ||
(event: "update:sequencerPitchTool", value: PitchEditTool): void; | ||
}>(); | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.tool-palette { | ||
display: flex; | ||
flex-direction: column; | ||
background: var(--scheme-color-surface); | ||
outline: 1px solid var(--scheme-color-outline-variant); | ||
position: fixed; | ||
top: 144px; | ||
left: 72px; | ||
z-index: 10; | ||
padding: 2px; | ||
border-radius: 24px; | ||
gap: 0; | ||
box-shadow: | ||
0px 8px 16px -4px rgba(0, 0, 0, 0.1), | ||
0px 4px 8px -4px rgba(0, 0, 0, 0.06); | ||
.material-symbols-outlined { | ||
font-size: 20px; | ||
} | ||
.q-btn { | ||
min-height: 40px; | ||
min-width: 40px; | ||
padding: 8px; | ||
&.text-primary { | ||
background-color: var(--scheme-color-secondary-container); | ||
.material-symbols-outlined { | ||
color: var(--scheme-color-on-primary-container); | ||
} | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters