mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat: Lyric font size adjustment | 歌词字体大小可调节 (#398)
* feat: Lyric font size adjustment | 歌词字体大小可调节
This commit is contained in:
parent
52d7a2af26
commit
6b68287e62
6 changed files with 56 additions and 7 deletions
|
|
@ -74,6 +74,27 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">
|
||||
<div class="title"> {{ $t("settings.lyricFontSize.text") }} </div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<select v-model="lyricFontSize">
|
||||
<option value="14">
|
||||
{{ $t("settings.lyricFontSize.small") }} - 14px
|
||||
</option>
|
||||
<option value="22">
|
||||
{{ $t("settings.lyricFontSize.medium") }} - 22px
|
||||
</option>
|
||||
<option value="28">
|
||||
{{ $t("settings.lyricFontSize.large") }} - 28px
|
||||
</option>
|
||||
<option value="36">
|
||||
{{ $t("settings.lyricFontSize.xlarge") }} - 36px
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">
|
||||
<div class="title"> {{ $t("settings.deviceSelector") }} </div>
|
||||
|
|
@ -294,6 +315,15 @@ export default {
|
|||
this.clearCache("tracks");
|
||||
},
|
||||
},
|
||||
lyricFontSize: {
|
||||
get() {
|
||||
if (this.settings.lyricFontSize === undefined) return 28;
|
||||
return this.settings.lyricFontSize;
|
||||
},
|
||||
set(value) {
|
||||
this.$store.commit("changeLyricFontSize", value);
|
||||
},
|
||||
},
|
||||
outputDevice: {
|
||||
get() {
|
||||
if (this.withoutAudioPriviledge === true) this.getAllOutputDevices();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue