diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2023-10-13 00:05:26 +0200 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2023-10-18 01:37:45 +0200 |
commit | 1c4d47f35274d560ee9eb855d7f1c45dd4dd140c (patch) | |
tree | 75a62a5828459d6f1481bee0f5701901edf6a655 /main/data | |
parent | 86b101900c28a09ebc6bcbf212f9969f70ce51b7 (diff) | |
download | dino-add-kbd-shortcut-to-zoom-text.tar.gz dino-add-kbd-shortcut-to-zoom-text.zip |
Add keyboard shortcut and setting to increase text size (fixes #978)add-kbd-shortcut-to-zoom-text
* Can zoom in / out or reset zoom levels via shortcuts
* Can change zoom value via global preferences window
Diffstat (limited to 'main/data')
-rw-r--r-- | main/data/gtk/help-overlay.ui | 18 | ||||
-rw-r--r-- | main/data/settings_dialog.ui | 13 |
2 files changed, 30 insertions, 1 deletions
diff --git a/main/data/gtk/help-overlay.ui b/main/data/gtk/help-overlay.ui index 17b0555c..bb3bb437 100644 --- a/main/data/gtk/help-overlay.ui +++ b/main/data/gtk/help-overlay.ui @@ -26,6 +26,24 @@ <property name="title" translatable="yes">Keyboard shortcuts</property> </object> </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="accelerator"><ctrl>plus</property> + <property name="title" translatable="yes">Increase text size</property> + </object> + </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="accelerator"><ctrl>minus</property> + <property name="title" translatable="yes">Lower text size</property> + </object> + </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="accelerator"><ctrl>0</property> + <property name="title" translatable="yes">Resets text size to default</property> + </object> + </child> </object> </child> <child> diff --git a/main/data/settings_dialog.ui b/main/data/settings_dialog.ui index a8b24135..ac7397a0 100644 --- a/main/data/settings_dialog.ui +++ b/main/data/settings_dialog.ui @@ -2,7 +2,7 @@ <interface> <template class="DinoUiSettingsDialog" parent="AdwPreferencesWindow"> <property name="default-width">500</property> - <property name="default-height">360</property> + <property name="default-height">420</property> <property name="modal">True</property> <property name="search-enabled">False</property> <child> @@ -11,6 +11,17 @@ <object class="AdwPreferencesGroup"> <child> <object class="AdwActionRow"> + <property name="title" translatable="yes">Set _Zoom Level</property> + <property name="use-underline">True</property> + <child type="suffix"> + <object class="GtkSpinButton" id="zoom_spinbutton"> + <property name="valign">center</property> + </object> + </child> + </object> + </child> + <child> + <object class="AdwActionRow"> <property name="title" translatable="yes">Send _Typing Notifications</property> <property name="use-underline">True</property> <property name="activatable-widget">typing_switch</property> |