chore: Update danmuku plugin configuration handling and improve performance

This commit is contained in:
Harvey Zack committed 2024-05-29 12:42:04 +08:00
1 parent 4971eaa17c
commit fcef233746
4 files changed
+22 -7

No files matched your search

@@ -195,9 +195,9 @@ export default class Setting {
);
}
get FONTSIZE() {
get FONT_SIZE() {
return (
this.option.FONTSIZE || {
this.option.FONT_SIZE || {
min: 12,
max: 120,
steps: [],
@@ -442,7 +442,7 @@ export default class Setting {
});
this.slider.fontSize = this.createSlider({
...this.FONTSIZE,
...this.FONT_SIZE,
container: this.template.$fontSizeSlider,
findIndex: () => {
return Math.round(this.danmuku.fontSize);