Implement volume step setting for volume controller in `MprisPlugin`
Summary
Implement volume step setting for volume controller in MprisPlugin
.
The volume controller in the MprisPlugin
adjusts the volume in fixed increments of 5% by default, limiting fine-grained control. In this Merge Request, I added a setting that allows configuring the volume step for the volume controller.
I rewrote the MprisPlugin
using Kotlin and replaced annotationProcessor
with kapt
since it couldn't handle Kotlin classes. Subsequently, I added the relevant setting options to the plugin configuration.
Test Plan
To test the patch, follow these steps:
- Open the plugin settings.
- Select "Multimedia controls".
- Modify the newly added setting "Volume control".
- Return to the main page.
- Click the button for "Multimedia controls".
- Navigate to both the "Devices" and "Play" tabs.
- Press the volume keys.
- Observe the volume adjustment step on the target device.
- Verify that the volume adjustment step matches the configured step length.