55 lines
1019 B
QML
55 lines
1019 B
QML
// 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: luatr("BGM Volume")
|
|
}
|
|
Slider {
|
|
Layout.rightMargin: 16
|
|
Layout.fillWidth: true
|
|
from: 0
|
|
to: 100
|
|
value: config.bgmVolume
|
|
onValueChanged: config.bgmVolume = value;
|
|
}
|
|
}
|
|
|
|
RowLayout {
|
|
anchors.rightMargin: 8
|
|
spacing: 16
|
|
Text {
|
|
text: luatr("Effect Volume")
|
|
}
|
|
Slider {
|
|
Layout.rightMargin: 16
|
|
Layout.fillWidth: true
|
|
from: 0
|
|
to: 100
|
|
value: Backend.volume
|
|
onValueChanged: Backend.volume = value;
|
|
}
|
|
}
|
|
|
|
Switch {
|
|
text: luatr("Disable message audio")
|
|
checked: config.disableMsgAudio
|
|
onCheckedChanged: config.disableMsgAudio = checked;
|
|
}
|
|
|
|
Switch {
|
|
text: luatr("Hide unselectable cards")
|
|
checked: config.hideUseless
|
|
onCheckedChanged: {
|
|
config.hideUseless = checked;
|
|
}
|
|
}
|
|
|
|
}
|