Skip to content

[Feature request] Additional "fill" mode for background image #1326

@Claviarm

Description

@Claviarm

Current situation/problem

Image stretch modes are always a tradeoff between image distortion, image cutoff, and unfilled space. Currently the background image has several modes for stretching/fitting, but the option I find most useful is missing. We have no option which avoids both distortion and empty space.

Current modes are as follows.
None: Avoids distortion but may have empty space or cutoff depending on the image.
Stretch: Avoids cutoff and empty space at the cost of image distortion.
Zoom: Avoids distortion and cutoff but may have unfilled space in one dimension.
Fit: Avoids distortion and cutoff but may have unfilled space in one or two dimensions.
Center: Avoids distortion but may have empty space or cutoff depending on the image.

Proposed solution

The missing mode is already found in the settings for LXQt's desktop wallpaper where it is called "zoom the image to fill the entire screen". It avoids distortion and empty space at the cost of potential cutoff in only one dimension. It can be thought of as a "zoom" that zooms in further so that it doesn't leave empty space. It centers the image, and expands or shrinks as needed to precisely fill the window, while maintaining the image's aspect ratio.

This mode is also found in several other terminal programs which support background images. It could perhaps be called "Fill" in QTerminal.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions