From 4483dfcacc9b66cf4b2711bf7d32e7b08aea240d Mon Sep 17 00:00:00 2001 From: MoonlightWave-12 <135532-MoonlightWave-12@users.noreply.gitlab.gnome.org> Date: Tue, 5 Nov 2024 23:05:24 +0100 Subject: [PATCH] doc/layout.md: Update information about how to deactivate layout-stretching and mention how to activate it again. Part-of: --- doc/layouts.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/layouts.md b/doc/layouts.md index 167dd37a..35a79c97 100644 --- a/doc/layouts.md +++ b/doc/layouts.md @@ -67,9 +67,18 @@ scale = 1.00 ### Layout-stretching -Squeekboard may slightly stretch layouts horizontally (up to 5.5%) before showing them. -For creating layouts with precise sizes, it can be useful to disable this. -This can be done by changing the value `1.055` in the line `let scale_x = if (h_scale / v_scale) < 1.055 { h_scale } else { v_scale };` of the `calculate_transformation` function in `src/layout.rs` to `1.0`, before building Squeekboard. +Layouts will adjust their proportions to fit the available space on a panel. +For creating layouts with precise sizes, it can be useful to deactivate this with: + +``` +$ gsettings set sm.puri.Squeekboard layout-shape-changes-to-fit-panel false +``` + +It can be activated again with: + +``` +$ gsettings set sm.puri.Squeekboard layout-shape-changes-to-fit-panel true +``` Layout syntax -------------