diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-10-10 12:11:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 12:11:33 -0400 |
commit | 3174f3c6578de7a525a629f1acd0d2f04d06da66 (patch) | |
tree | 392695a6b514ab3c668220a7fab2efbf7c5813ae /ext/bg/settings.html | |
parent | 6799b87cc6bc9c456b65e37d72f3003f45c47737 (diff) |
Update audio controller (#904)
* Remove redundant assignment of select value
* Update TTS preparation
* Don't hide options
* Improve voice sorting
* Update event handler
* Apply options to all selects targeting audio.textToSpeechVoice
* Update selector
* Use IDs
* Move test text to a hidden text input
Diffstat (limited to 'ext/bg/settings.html')
-rw-r--r-- | ext/bg/settings.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/bg/settings.html b/ext/bg/settings.html index c318401f..795cdd54 100644 --- a/ext/bg/settings.html +++ b/ext/bg/settings.html @@ -346,14 +346,15 @@ <input type="number" min="0" max="100" id="audio-playback-volume" class="form-control" data-setting="audio.volume"> </div> - <div class="form-group" id="text-to-speech-voice-container" hidden> + <div class="form-group" id="text-to-speech-voice-container"> <label for="text-to-speech-voice">Text-to-speech voice</label> <div class="input-group"> <select class="form-control" id="text-to-speech-voice" data-setting="audio.textToSpeechVoice"></select> <div class="input-group-btn"> - <button class="btn btn-default" id="text-to-speech-voice-test" title="Test voice" data-speech-text="よみちゃん"><span class="glyphicon glyphicon-volume-up"></span></button> + <button class="btn btn-default" id="text-to-speech-voice-test" title="Test voice"><span class="glyphicon glyphicon-volume-up"></span></button> </div> </div> + <input type="text" value="よみちゃん" id="text-to-speech-voice-test-text" hidden> </div> <div class="form-group options-advanced"> @@ -363,9 +364,9 @@ <div class="form-group ignore-form-changes"> <label>Audio playback sources</label> - <div class="audio-source-list generic-input-list"></div> + <div class="audio-source-list generic-input-list" id="audio-source-list"></div> <div class="input-group audio-source-options"> - <button class="btn btn-default audio-source-add" title="Add audio playback source"><span class="glyphicon glyphicon-plus"></span></button> + <button class="btn btn-default audio-source-add" title="Add audio playback source" id="audio-source-add"><span class="glyphicon glyphicon-plus"></span></button> </div> <template id="audio-source-template"><div class="input-group audio-source"> |