From 4e6e7d671b5e806bdc16a452a3240139e67e7cac Mon Sep 17 00:00:00 2001 From: Ruby Lazuli Date: Sat, 1 May 2021 17:44:04 -0500 Subject: [PATCH] Add "Scale (fit)" background image mode The current "Scale" mode crops out part of the image if the scaled image is larger than the terminal in any direction. This is useful for most cases, such as wallpapers repurposed as terminal backgrounds. However, this may be surprising to users coming from xfce4-terminal, where the equivalent "Scaled" mode tries to fit the background within the terminal in both dimensions. This new "Scale (fit)" mode is meant to emulate this behaviour. --- data/gsettings/com.gexperts.Tilix.gschema.xml | 7 ++++--- source/gx/gtk/cairo.d | 19 ++++++++++++++++++- source/gx/tilix/appwindow.d | 3 +++ source/gx/tilix/prefeditor/prefdialog.d | 2 +- source/gx/tilix/preferences.d | 3 ++- 5 files changed, 28 insertions(+), 6 deletions(-) diff --git a/data/gsettings/com.gexperts.Tilix.gschema.xml b/data/gsettings/com.gexperts.Tilix.gschema.xml index bcf4cff75..173416348 100644 --- a/data/gsettings/com.gexperts.Tilix.gschema.xml +++ b/data/gsettings/com.gexperts.Tilix.gschema.xml @@ -37,9 +37,10 @@ - - - + + + +