1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-06 14:20:56 +00:00
* Added: Option to display debugging information in chat when highlight filters are applied to a message.
* Changed: Treat a completely transparent highlight color as removing highlights from a message. This allows rules such as preventing messages from bots (Bot Badge) from being highlighted.
* Fixed: Detect an invalid IndexedDB database and recreate it when necessary.
* API Added: `applyHighlight(msg, priority, color, reason)` method for tokenizers.
This commit is contained in:
SirStendec 2021-05-03 15:33:03 -04:00
parent 3c37dbf23a
commit 5f0d4b2bfe
8 changed files with 225 additions and 70 deletions

View file

@ -31,7 +31,11 @@
<chrome-picker :disable-alpha="! alpha" :value="colors" @input="onPick" />
</div>
</div>
<div v-else class="tw-relative">
<div
v-else
:class="{'tw-tooltip__container': hasTooltip}"
class="tw-relative"
>
<button
class="tw-button tw-button--text ffz-color-preview"
@click="togglePicker"
@ -51,6 +55,15 @@
>
<chrome-picker :disable-alpha="! alpha" :value="colors" @input="onPick" />
</div>
<div
v-if="! open && hasTooltip"
class="tw-tooltip tw-tooltip--down tw-tooltip--align-right"
>
{{ tooltip }}
<div v-if="nullable" class="tw-regular">
{{ t('setting.color.nullable', 'Right-Click to Reset') }}
</div>
</div>
</div>
</div>
</template>
@ -88,6 +101,10 @@ export default {
type: Boolean,
default: true
},
tooltip: {
type: String,
default: null
},
openUp: {
type: Boolean,
default: false
@ -103,6 +120,10 @@ export default {
},
computed: {
hasTooltip() {
return this.tooltip?.length > 0 || this.nullable
},
colors() {
try {
return Color.RGBA.fromCSS(this.color || this.default)