improve player settings

This commit is contained in:
SrGooglo 2023-03-05 05:05:27 +00:00
parent 176857f88c
commit 86a63d63b5
2 changed files with 9 additions and 3 deletions

View File

@ -6,14 +6,18 @@ export default {
settings: [
{
id: "player.allowVolumeOver100",
label: "Allow volume over 100%",
title: "Allow volume over 100%",
group: "general",
icon: "MdVolumeUp",
description: "Allow volume amplification over 100% (may cause distortion)",
component: "Switch",
storaged: true,
},
{
id: "player.crossfade",
label: "Crossfade",
title: "Crossfade",
icon: "MdSwapHoriz",
group: "general",
description: "Enable crossfade between tracks",
component: "Slider",
props: {
@ -32,9 +36,10 @@ export default {
8: "8s",
9: "9s",
10: "10s",
},
}
},
storaged: true,
disabled: true,
}
]
}

View File

@ -1,3 +1,4 @@
import React from "react"
import * as antd from "antd"
import { SliderPicker } from "react-color"