desktop-shell: allow to center background image
Add the centered option as background-type. This draws the image once in the center of the screen. If the image is larger, it will be cropped like scale-crop. Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
committed by
Daniel Stone
parent
1c1e4fdaf4
commit
20b241691b
+4
-1
@@ -260,7 +260,10 @@ sets the path for the background image file (string).
|
||||
.TP 7
|
||||
.BI "background-type=" tile
|
||||
determines how the background image is drawn (string). Can be
|
||||
.BR scale ", " scale-crop " or " tile " (default)."
|
||||
.BR centered ", " scale ", " scale-crop " or " tile " (default)."
|
||||
Centered shows the image once centered. If the image is smaller than the
|
||||
output, the rest of the surface will be in background color. If the image
|
||||
size does fit the output it will be cropped left and right, or top and bottom.
|
||||
Scale means scaled to fit the output precisely, not preserving aspect ratio.
|
||||
Scale-crop preserves aspect ratio, scales the background image just big
|
||||
enough to cover the output, and centers it. The image ends up cropped from
|
||||
|
||||
Reference in New Issue
Block a user