[gnome-builder] libide/tweaks: add more settings examples



commit bcfb52b7c1cc311222441ee11744620d267206ec
Author: Christian Hergert <chergert redhat com>
Date:   Wed Aug 10 14:42:09 2022 -0700

    libide/tweaks: add more settings examples

 src/libide/tweaks/demo/010-visual-appearance.ui | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
---
diff --git a/src/libide/tweaks/demo/010-visual-appearance.ui b/src/libide/tweaks/demo/010-visual-appearance.ui
index 891bdf201..e0d7d5207 100644
--- a/src/libide/tweaks/demo/010-visual-appearance.ui
+++ b/src/libide/tweaks/demo/010-visual-appearance.ui
@@ -7,6 +7,18 @@
           <object class="IdeTweaksPage" id="appearance_page">
             <property name="icon-name">preferences-desktop-appearance-symbolic</property>
             <property name="title" translatable="yes">Appearance</property>
+            <child>
+              <object class="IdeTweaksSettings">
+                <property name="schema-id">org.gnome.builder</property>
+                <property name="application-only">true</property>
+              </object>
+            </child>
+            <child>
+              <object class="IdeTweaksSettings">
+                <property name="schema-id">org.gnome.builder.editor</property>
+                <property name="application-only">true</property>
+              </object>
+            </child>
             <child>
               <object class="IdeTweaksGroup" id="appearance_page_style_group">
                 <property name="title" translatable="yes">Style</property>
@@ -15,6 +27,13 @@
             <child>
               <object class="IdeTweaksGroup" id="appearance_page_color_group">
                 <property name="title" translatable="yes">Color</property>
+                <child>
+                  <object class="IdeTweaksSwitch">
+                    <property name="action-name">settings.org.gnome.builder.editor.show-grid-lines</property>
+                    <property name="title" translatable="yes">Grid Pattern</property>
+                    <property name="subtitle" translatable="yes">Display a grid pattern underneath source 
code</property>
+                  </object>
+                </child>
               </object>
             </child>
             <child>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]