2023-04-28 10:24:31 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
RowLayout {
|
|
|
|
anchors.rightMargin: 8
|
|
|
|
spacing: 16
|
|
|
|
Text {
|
|
|
|
text: Backend.translate("BGM Volume")
|
|
|
|
}
|
|
|
|
Slider {
|
|
|
|
from: 0
|
|
|
|
to: 100
|
|
|
|
value: config.bgmVolume
|
|
|
|
onValueChanged: config.bgmVolume = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
anchors.rightMargin: 8
|
|
|
|
spacing: 16
|
|
|
|
Text {
|
|
|
|
text: Backend.translate("Effect Volume")
|
|
|
|
}
|
|
|
|
Slider {
|
|
|
|
from: 0
|
|
|
|
to: 100
|
|
|
|
value: Backend.volume
|
|
|
|
onValueChanged: Backend.volume = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-28 11:19:45 +00:00
|
|
|
Switch {
|
2023-04-28 10:24:31 +00:00
|
|
|
text: Backend.translate("Disable message audio")
|
|
|
|
checked: config.disableMsgAudio
|
|
|
|
onCheckedChanged: config.disableMsgAudio = checked;
|
|
|
|
}
|
2023-06-24 06:48:49 +00:00
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: Backend.translate("Hide unselectable cards")
|
|
|
|
checked: config.hideUseless
|
|
|
|
onCheckedChanged: {
|
|
|
|
config.hideUseless = checked;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-28 10:24:31 +00:00
|
|
|
}
|