diff --git a/src/contents/config/main.xml b/src/contents/config/main.xml
index a2461f4..6f46e68 100644
--- a/src/contents/config/main.xml
+++ b/src/contents/config/main.xml
@@ -45,5 +45,8 @@
false
+
+ 5
+
diff --git a/src/contents/ui/ConfigGeneral.qml b/src/contents/ui/ConfigGeneral.qml
index 022424f..4ad5223 100644
--- a/src/contents/ui/ConfigGeneral.qml
+++ b/src/contents/ui/ConfigGeneral.qml
@@ -21,9 +21,9 @@ KCM.SimpleKCM {
property alias cfg_textScrollingBehaviour: scrollingBehaviourRadio.value
property alias cfg_textScrollingEnabled: textScrollingEnabledCheckbox.checked
property alias cfg_textScrollingResetOnPause: textScrollingResetOnPauseCheckbox.checked
-
property alias cfg_useCustomFont: customFontCheckbox.checked
property alias cfg_customFont: fontDialog.fontChosen
+ property alias cfg_volumeStep: volumeStepSpinbox.value
Kirigami.FormLayout {
Kirigami.Separator {
@@ -174,6 +174,15 @@ KCM.SimpleKCM {
text: i18n("Show music controls in the panel (play/pause/previous/next)")
Kirigami.FormData.label: i18n("Show controls:")
}
+
+ SpinBox {
+ id: volumeStepSpinbox
+ Kirigami.FormData.label: i18n("Volume step:")
+ from: 1
+ to: 100
+ textFromValue: function(text) { return text + "%"; }
+ valueFromText: function(value) { return parseInt(value); }
+ }
}
QtDialogs.FontDialog {
diff --git a/src/contents/ui/main.qml b/src/contents/ui/main.qml
index 437de27..53eb3b8 100644
--- a/src/contents/ui/main.qml
+++ b/src/contents/ui/main.qml
@@ -17,7 +17,7 @@ PlasmoidItem {
readonly property font boldTextFont: Qt.font(Object.assign({}, textFont, {weight: Font.Bold}))
readonly property bool textScrollingEnabled: plasmoid.configuration.textScrollingEnabled
readonly property bool textScrollingResetOnPause: plasmoid.configuration.textScrollingResetOnPause
- readonly property int volumeStep: 5
+ readonly property int volumeStep: plasmoid.configuration.volumeStep
toolTipTextFormat: Text.PlainText
toolTipMainText: player.playbackStatus > Mpris.PlaybackStatus.Stopped ? player.title : i18n("No media playing")