[dconf-editor] Add KeyEditorChildArray TextView padding.



commit e8fe7bee0c7adb2adc52a1a63c3069094da7f9e6
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Dec 3 16:46:47 2017 +0100

    Add KeyEditorChildArray TextView padding.

 editor/dconf-editor.css |    6 ++++++
 editor/dconf-view.vala  |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/editor/dconf-editor.css b/editor/dconf-editor.css
index 0d0b430..19967a3 100644
--- a/editor/dconf-editor.css
+++ b/editor/dconf-editor.css
@@ -266,6 +266,12 @@
             list.properties-list:dir(ltr) > row > grid > label { padding-right:1em; }
             list.properties-list:dir(rtl) > row > grid > label { padding-left:1em; }
 
+/* key-editor-child properties */
+
+.key-editor-child-array textview.view {
+  padding:0.2em 0.3em;
+}
+
 /*\
 * * text formating
 \*/
diff --git a/editor/dconf-view.vala b/editor/dconf-view.vala
index 551280c..9ca84dc 100644
--- a/editor/dconf-view.vala
+++ b/editor/dconf-view.vala
@@ -443,6 +443,11 @@ private class KeyEditorChildArray : Frame, KeyEditorChild
     private ulong deleted_text_handler = 0;
     private ulong inserted_text_handler = 0;
 
+    construct
+    {
+        get_style_context ().add_class ("key-editor-child-array");
+    }
+
     public KeyEditorChildArray (string type, Variant initial_value)
     {
         this.visible = true;


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