-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into wip/sb/permanently-show-warning-icon
- Loading branch information
Showing
109 changed files
with
2,054 additions
and
1,399 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
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,61 @@ | ||
<script setup lang="ts"> | ||
import SvgIcon from '@/components/SvgIcon.vue' | ||
import ToggleIcon from '@/components/ToggleIcon.vue' | ||
const props = defineProps<{ recordMode: boolean }>() | ||
const emit = defineEmits<{ recordOnce: []; 'update:recordMode': [enabled: boolean] }>() | ||
</script> | ||
|
||
<template> | ||
<div class="RecordControl" @pointerdown.stop @pointerup.stop @click.stop> | ||
<div class="control left-end"> | ||
<ToggleIcon | ||
icon="record" | ||
class="button" | ||
:alt="`${props.recordMode ? 'Enable' : 'Disable'} record mode`" | ||
:modelValue="props.recordMode" | ||
@update:modelValue="emit('update:recordMode', $event)" | ||
/> | ||
</div> | ||
<div class="control right-end"> | ||
<SvgIcon | ||
alt="Record once" | ||
class="button" | ||
name="record_once" | ||
draggable="false" | ||
@click.stop="() => emit('recordOnce')" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.RecordControl { | ||
user-select: none; | ||
display: flex; | ||
place-items: center; | ||
gap: 1px; | ||
} | ||
.control { | ||
background: var(--color-frame-bg); | ||
backdrop-filter: var(--blur-app-bg); | ||
padding: 8px 8px; | ||
} | ||
.left-end { | ||
border-radius: var(--radius-full) 0 0 var(--radius-full); | ||
} | ||
.right-end { | ||
border-radius: 0 var(--radius-full) var(--radius-full) 0; | ||
} | ||
.toggledOn { | ||
color: #ba4c40; | ||
} | ||
.button:active { | ||
color: #ba4c40; | ||
} | ||
</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 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
Oops, something went wrong.