Skip to content

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:

  1. Open the plugin settings.
  2. Select "Multimedia controls".
  3. Modify the newly added setting "Volume control".
  4. Return to the main page.
  5. Click the button for "Multimedia controls".
  6. Navigate to both the "Devices" and "Play" tabs.
  7. Press the volume keys.
  8. Observe the volume adjustment step on the target device.
  9. Verify that the volume adjustment step matches the configured step length.

Merge request reports

Loading