Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #315 from vapormusic/audio-outputs
Browse files Browse the repository at this point in the history
Add buttons for Youtube Lyrics
  • Loading branch information
vapormusic committed Oct 28, 2021
2 parents 365f682 + 7778e10 commit 6b4a984
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 12 additions & 2 deletions resources/html/oobe.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,19 @@ <h1 class="md-h1">Other Settings</h1>
<input type="checkbox" v-model="prefs.visual.mxmon" switch/>
</div>
</div>
<div class="md-option-line" v-if="prefs.visual.mxmon">
<div class="md-option-line">
<div class="md-option-segment">
Enable Youtube Lyrics (for MV)
<br>
<small>(NOT RECOMMENDED!) Better timings and lyrics availability on some Music Videos, however can be inconsistent.</small>
</div>
<div class="md-option-segment md-option-segment_auto">
<input type="checkbox" v-model="prefs.visual.yton" switch/>
</div>
</div>
<div class="md-option-line" v-if="prefs.visual.mxmlanguage">
<div class="md-option-segment">
Musixmatch Lyrics Translation Language
Musixmatch Lyrics / Youtube Lyrics Translation Language
</div>
<div class="md-option-segment md-option-segment_auto">
<select v-model="prefs.visual.mxmlanguage" class="md-select" style="width:180px;">
Expand Down
6 changes: 6 additions & 0 deletions resources/js/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ var _tests = {
useOperatingSystemAccent: false,
scaling: 1,
mxmon: false,
yton: false,
mxmlanguage: "en",
removeScrollbars: true
},
Expand Down Expand Up @@ -192,6 +193,10 @@ var _tests = {
self.prefs.visual.mxmon = result
})

ipcRenderer.invoke("getStoreValue", "visual.yton").then((result) => {
self.prefs.visual.yton = result
})

ipcRenderer.invoke("getStoreValue", "visual.mxmlanguage").then((result) => {
self.prefs.visual.mxmlanguage = result
})
Expand All @@ -212,6 +217,7 @@ var _tests = {
ipcRenderer.invoke("setStoreValue", "visual.transparencyEffect", self.prefs.visual.transparencyEffect)
ipcRenderer.invoke("setStoreValue", "visual.useOperatingSystemAccent", self.prefs.visual.useOperatingSystemAccent)
ipcRenderer.invoke("setStoreValue", "visual.mxmon", self.prefs.visual.mxmon)
ipcRenderer.invoke("setStoreValue", "visual.yton", self.prefs.visual.yton)
ipcRenderer.invoke("setStoreValue", "visual.mxmlanguage", self.prefs.visual.mxmlanguage)
ipcRenderer.invoke("setStoreValue", "visual.removeScrollbars", self.prefs.visual.removeScrollbars)
},
Expand Down

0 comments on commit 6b4a984

Please sign in to comment.