[geary/wip/714104-refine-account-dialog] Hide add account text entry borders



commit cf73a9168179a1a0e1d57a85cb02c52ea344905a
Author: Michael Gratton <mike vee net>
Date:   Wed Dec 12 20:16:32 2018 +1100

    Hide add account text entry borders
    
    Cromulence++

 src/client/accounts/accounts-editor-row.vala | 11 ++++++++++-
 ui/geary.css                                 |  4 ++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/src/client/accounts/accounts-editor-row.vala b/src/client/accounts/accounts-editor-row.vala
index 247ace9e..a99baf47 100644
--- a/src/client/accounts/accounts-editor-row.vala
+++ b/src/client/accounts/accounts-editor-row.vala
@@ -213,20 +213,29 @@ internal class Accounts.LabelledEditorRow<PaneType,V> : EditorRow<PaneType> {
 
 
     public LabelledEditorRow(string label, V value) {
-        this.label.hexpand = true;
         this.label.halign = Gtk.Align.START;
         this.label.valign = Gtk.Align.CENTER;
         this.label.set_text(label);
         this.label.show();
         this.layout.add(this.label);
 
+        bool expand_label = true;
         this.value = value;
         Gtk.Widget? widget = value as Gtk.Widget;
         if (widget != null) {
+            Gtk.Entry? entry = value as Gtk.Entry;
+            if (entry != null) {
+                expand_label = false;
+                entry.xalign = 1;
+                entry.hexpand = true;
+            }
+
             widget.valign = Gtk.Align.CENTER;
             widget.show();
             this.layout.add(widget);
         }
+
+        this.label.hexpand = expand_label;
     }
 
     public void set_dim_label(bool is_dim) {
diff --git a/ui/geary.css b/ui/geary.css
index d1cf79f4..1af251f9 100644
--- a/ui/geary.css
+++ b/ui/geary.css
@@ -212,6 +212,10 @@ row.geary-settings image {
   padding: 0px 6px;
 }
 
+row.geary-settings entry {
+  border-width: 0px;
+}
+
 row.geary-settings.geary-drag-source {
   color: @insensitive_fg_color;
   background-color: @insensitive_bg_color;


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