From 6fbe7fe21375d7f2da64605792e30204a2a2e89b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 17 Jul 2023 13:57:17 +0900 Subject: [PATCH] Add more options to "Set as Background" menu in Dolphin. This resolves issue #17. Signed-off-by: Michele Calgaro --- .../kdesktopSetAsBackground.desktop | 42 ++++++++++++++++--- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/src/servicemenus/kdesktopSetAsBackground.desktop b/src/servicemenus/kdesktopSetAsBackground.desktop index a7ba4f1..f422c07 100644 --- a/src/servicemenus/kdesktopSetAsBackground.desktop +++ b/src/servicemenus/kdesktopSetAsBackground.desktop @@ -1,14 +1,44 @@ [Desktop Entry] X-TDE-ServiceTypes=image/* -Actions=setAsBackground;tileAsBackground; +Actions=centeredAsBackground;tiledAsBackground;centeredTiledAsBackground;centeredMaxpectAsBackground;tiledMaxpectAsBackground;scaledAsBackground;centeredAutoFitAsBackground;scaleAndCropAsBackground X-TDE-Submenu=Set as Background -[Desktop Action setAsBackground] -Name=Centered +[Desktop Action centeredAsBackground] +Name=&Centered Icon=background -Exec=dcop kdesktop KBackgroundIface setWallpaper %u 6 +Exec=dcop kdesktop KBackgroundIface setWallpaper %u 1 -[Desktop Action tileAsBackground] -Name=Tiled +[Desktop Action tiledAsBackground] +Name=&Tiled Icon=background Exec=dcop kdesktop KBackgroundIface setWallpaper %u 2 + +[Desktop Action centeredTiledAsBackground] +Name=C&enter Tiled +Icon=background +Exec=dcop kdesktop KBackgroundIface setWallpaper %u 3 + +[Desktop Action centeredMaxpectAsBackground] +Name=Ce&ntered Maxpect +Icon=background +Exec=dcop kdesktop KBackgroundIface setWallpaper %u 4 + +[Desktop Action tiledMaxpectAsBackground] +Name=Tiled &Maxpect +Icon=background +Exec=dcop kdesktop KBackgroundIface setWallpaper %u 5 + +[Desktop Action scaledAsBackground] +Name=&Scaled +Icon=background +Exec=dcop kdesktop KBackgroundIface setWallpaper %u 6 + +[Desktop Action centeredAutoFitAsBackground] +Name=Centered &Auto Fit +Icon=background +Exec=dcop kdesktop KBackgroundIface setWallpaper %u 7 + +[Desktop Action scaleAndCropAsBackground] +Name=Sca&le && Crop +Icon=background +Exec=dcop kdesktop KBackgroundIface setWallpaper %u 8