Fixed logo spin + added automatic subtitle that maybe works
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
glowIntensity: 0.6,
|
||||
logoSpin: false,
|
||||
logoSpinSpeed: 5,
|
||||
autoSubtitle: false,
|
||||
titlePosition: "top",
|
||||
};
|
||||
|
||||
@@ -71,7 +72,9 @@
|
||||
let glowIntensity = saved.glowIntensity;
|
||||
let logoSpin = saved.logoSpin;
|
||||
let logoSpinSpeed = saved.logoSpinSpeed;
|
||||
let autoSubtitle = saved.autoSubtitle;
|
||||
let titlePosition = saved.titlePosition;
|
||||
let capturedTrackLabel = "";
|
||||
let visualizerComponent;
|
||||
let toggleHidden = false;
|
||||
let hideTimer;
|
||||
@@ -99,6 +102,10 @@
|
||||
clearTimeout(hideTimer);
|
||||
}
|
||||
|
||||
$: if (autoSubtitle && capturedTrackLabel) {
|
||||
subtitle = capturedTrackLabel;
|
||||
}
|
||||
|
||||
$: {
|
||||
const settings = {
|
||||
selectedPreset,
|
||||
@@ -126,6 +133,7 @@
|
||||
glowIntensity,
|
||||
logoSpin,
|
||||
logoSpinSpeed,
|
||||
autoSubtitle,
|
||||
titlePosition,
|
||||
};
|
||||
try {
|
||||
@@ -183,6 +191,7 @@
|
||||
glowIntensity = defaults.glowIntensity;
|
||||
logoSpin = defaults.logoSpin;
|
||||
logoSpinSpeed = defaults.logoSpinSpeed;
|
||||
autoSubtitle = defaults.autoSubtitle;
|
||||
titlePosition = defaults.titlePosition;
|
||||
}
|
||||
|
||||
@@ -311,6 +320,7 @@
|
||||
{glowIntensity}
|
||||
{logoSpin}
|
||||
{logoSpinSpeed}
|
||||
bind:capturedTrackLabel
|
||||
bind:isListening
|
||||
bind:fileCurrentTime
|
||||
bind:fileDuration
|
||||
@@ -381,6 +391,7 @@
|
||||
bind:glowIntensity
|
||||
bind:logoSpin
|
||||
bind:logoSpinSpeed
|
||||
bind:autoSubtitle
|
||||
bind:titlePosition
|
||||
{isListening}
|
||||
{colorPresets}
|
||||
|
||||
Reference in New Issue
Block a user