[dconf-editor] Increase right margin for Entry and TextView editors.



commit 98df1cf2c096eef012863ebac59c6819a068421a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Dec 3 16:57:39 2017 +0100

    Increase right margin for Entry and TextView editors.

 editor/dconf-editor.css |   13 +++++++++++++
 editor/dconf-view.vala  |   14 ++++++++++----
 2 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/editor/dconf-editor.css b/editor/dconf-editor.css
index 19967a3..62c7ea3 100644
--- a/editor/dconf-editor.css
+++ b/editor/dconf-editor.css
@@ -268,10 +268,23 @@
 
 /* key-editor-child properties */
 
+.key-editor-child-array {
+  min-height:10em;
+}
+
 .key-editor-child-array textview.view {
   padding:0.2em 0.3em;
 }
 
+.key-editor-child-array:dir(ltr),
+.key-editor-child-entry:dir(ltr) {
+  margin-right:1em;
+}
+.key-editor-child-array:dir(rtl),
+.key-editor-child-entry:dir(rtl) {
+  margin-left:1em;
+}
+
 /*\
 * * text formating
 \*/
diff --git a/editor/dconf-view.vala b/editor/dconf-view.vala
index 9ca84dc..0712231 100644
--- a/editor/dconf-view.vala
+++ b/editor/dconf-view.vala
@@ -238,13 +238,17 @@ private class KeyEditorChildNumberDouble : Entry, KeyEditorChild
     private ulong deleted_text_handler = 0;
     private ulong inserted_text_handler = 0;
 
+    construct
+    {
+        get_style_context ().add_class ("key-editor-child-entry");
+    }
+
     public KeyEditorChildNumberDouble (Variant initial_value)
     {
         this.variant = initial_value;
 
         this.visible = true;
         this.hexpand = true;
-        this.margin_right = 6;
         this.secondary_icon_activatable = false;
         this.set_icon_tooltip_text (EntryIconPosition.SECONDARY, _("Failed to parse as double."));    // 
TODO report bug, not displayed, neither like that nor by setting secondary_icon_tooltip_text
 
@@ -453,8 +457,6 @@ private class KeyEditorChildArray : Frame, KeyEditorChild
         this.visible = true;
         this.hexpand = true;
         this.vexpand = false;
-        this.margin_right = 6;
-        this.height_request = 200;
 
         this.variant_type = type;
         this.variant = initial_value;
@@ -583,6 +585,11 @@ private class KeyEditorChildDefault : Entry, KeyEditorChild
     private ulong deleted_text_handler = 0;
     private ulong inserted_text_handler = 0;
 
+    construct
+    {
+        get_style_context ().add_class ("key-editor-child-entry");
+    }
+
     public KeyEditorChildDefault (string type, Variant initial_value)
     {
         this.variant_type = type;
@@ -590,7 +597,6 @@ private class KeyEditorChildDefault : Entry, KeyEditorChild
 
         this.visible = true;
         this.hexpand = true;
-        this.margin_right = 6;
         this.secondary_icon_activatable = false;
         this.set_icon_tooltip_text (EntryIconPosition.SECONDARY, _("This value is invalid for the key 
type."));    // TODO report bug, not displayed, neither like that nor by setting secondary_icon_tooltip_text
 


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