Skip to content

Commit

Permalink
A new value for background_image_layout to scale the background image…
Browse files Browse the repository at this point in the history
… while preserving its aspect ratio.

Also have centered images work even for images larger than the window size
Fixes #6458
  • Loading branch information
kovidgoyal committed Jul 13, 2023
1 parent e363303 commit d218040
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Detailed list of changes
0.29.1 [future]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- A new value for :opt:`background_image_layout` to scale the background image while preserving its aspect ratio. Also have centered images work even for images larger than the window size (:pull:`6458`)

- macOS: Fix a regression that caused rendering to hang when transitioning to full screen with :opt:`macos_colorspace` set to ``default`` (:iss:`6435`)

- macOS: Fix a regression causing *burn-in* of text when resizing semi-transparent OS windows (:iss:`6439`)
Expand Down
4 changes: 3 additions & 1 deletion kitty/options/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,9 @@
ctype='bglayout',
long_text='''
Whether to tile, scale or clamp the background image. The value can be one of
:code:`tiled`, :code:`mirror-tiled`, :code:`scaled`, :code:`clamped` or :code:`centered`.
:code:`tiled`, :code:`mirror-tiled`, :code:`scaled`, :code:`clamped`, :code:`centered`
or :code:`cscaled`. The :code:`scaled` and :code:`cscaled` values scale the image to the
window size, with :code:`cscaled` preserving the image aspect ratio.
'''
)

Expand Down

0 comments on commit d218040

Please sign in to comment.