From 48b4fc3407816ddcab6e2bd20b063b6de9746e25 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Thu, 15 Mar 2018 14:53:50 -0400 Subject: Add auto-detect toggle switch Currently if a user changes the DPI, there is no way to reset it back to the auto-detected value from Xserver (which we store as 0 in gsettings). Adding this toggle solves that issue. I also removed a deprecated [GtkHandleBox](https://developer.gnome.org/gtk3/stable/GtkHandleBox.html) and all its associated code. --- capplets/appearance/data/appearance.ui | 221 +++++++++++++++++++++------------ 1 file changed, 143 insertions(+), 78 deletions(-) (limited to 'capplets/appearance/data') diff --git a/capplets/appearance/data/appearance.ui b/capplets/appearance/data/appearance.ui index d8667193..ba20160f 100644 --- a/capplets/appearance/data/appearance.ui +++ b/capplets/appearance/data/appearance.ui @@ -1,5 +1,26 @@ - + @@ -56,23 +77,40 @@ vertical 18 - + True False - 0 - 0 + vertical + 8 - + True False - 12 + start + R_esolution + True + dpi_spinner + + + + + + False + False + 0 + + + + + True + False + center + 8 - + True False - R_esolution: - True - dpi_spinner + Dots per inch (DPI): False @@ -81,34 +119,10 @@ - + True - False - 6 - - - True - True - 1 - - - False - False - 1 - - - - - True - False - dots per inch - - - False - False - 2 - - + True + 1 False @@ -117,11 +131,53 @@ + + False + False + 1 + + + + + True + False + 8 + + + True + False + This resets the font DPI to the auto-detected value from Xserver. + Automatic detection: + + + False + True + 0 + + + + + True + True + True + + + False + True + 1 + + + + + False + False + 2 + False - False + True 0 @@ -757,6 +813,9 @@ 3 + + + False @@ -769,6 +828,9 @@ button3 + + + False @@ -1553,6 +1615,9 @@ theme_help_button theme_close_button + + + False @@ -1724,6 +1789,9 @@ save_dialog_cancel_button save_dialog_save_button + + + @@ -3085,53 +3153,47 @@ True False - + True False + both-horiz - + True False - both-horiz - - - True - False - True - gtk-new - - - False - True - - - - - True - False - gtk-open - - - False - True - - - - - True - False - gtk-save - - - False - True - - - + True + gtk-new + + + False + True + + + + + True + False + gtk-open + + False + True + + + + True + False + gtk-save + + + False + True + + + @@ -3192,5 +3254,8 @@ help_button close_button + + + -- cgit v1.2.1