[chronojump] More improvements on dialog_message



commit 153ea2f52add6046ef6afc3fc01e790cb497a061
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Aug 20 10:53:44 2020 +0100

    More improvements on dialog_message

 glade/dialog_message.glade | 42 ++++++++++++++++++++++++++++++------------
 src/gui/dialogMessage.cs   |  5 ++++-
 2 files changed, 34 insertions(+), 13 deletions(-)
---
diff --git a/glade/dialog_message.glade b/glade/dialog_message.glade
index 01a96406..0ae1b9a2 100644
--- a/glade/dialog_message.glade
+++ b/glade/dialog_message.glade
@@ -258,27 +258,45 @@
                   </packing>
                 </child>
                 <child>
-                  <widget class="GtkScrolledWindow" id="scrolledwindow">
+                  <widget class="GtkFrame" id="frame1">
                     <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                    <property name="hscrollbar_policy">never</property>
-                    <property name="vscrollbar_policy">never</property>
+                    <property name="can_focus">False</property>
+                    <property name="label_xalign">0</property>
+                    <property name="label_yalign">1</property>
+                    <property name="shadow_type">in</property>
                     <child>
-                      <widget class="GtkViewport" id="viewport1">
+                      <widget class="GtkScrolledWindow" id="scrolledwindow">
                         <property name="visible">True</property>
-                        <property name="can_focus">False</property>
+                        <property name="can_focus">True</property>
+                        <property name="border_width">4</property>
+                        <property name="hscrollbar_policy">never</property>
+                        <property name="vscrollbar_policy">never</property>
                         <child>
-                          <widget class="GtkLabel" id="label_message">
+                          <widget class="GtkViewport" id="viewport1">
                             <property name="visible">True</property>
-                            <property name="can_focus">True</property>
-                            <property name="xalign">0</property>
-                            <property name="use_markup">True</property>
-                            <property name="wrap">True</property>
-                            <property name="selectable">True</property>
+                            <property name="can_focus">False</property>
+                            <child>
+                              <widget class="GtkLabel" id="label_message">
+                                <property name="visible">True</property>
+                                <property name="can_focus">True</property>
+                                <property name="xalign">0</property>
+                                <property name="xpad">4</property>
+                                <property name="ypad">4</property>
+                                <property name="use_markup">True</property>
+                                <property name="wrap">True</property>
+                                <property name="selectable">True</property>
+                              </widget>
+                            </child>
                           </widget>
                         </child>
                       </widget>
                     </child>
+                    <child>
+                      <placeholder/>
+                      <packing>
+                        <property name="type">label_item</property>
+                      </packing>
+                    </child>
                   </widget>
                   <packing>
                     <property name="expand">True</property>
diff --git a/src/gui/dialogMessage.cs b/src/gui/dialogMessage.cs
index 359d9910..8932c6a2 100644
--- a/src/gui/dialogMessage.cs
+++ b/src/gui/dialogMessage.cs
@@ -36,7 +36,7 @@ public class DialogMessage
        [Widget] Gtk.Image image_help;
        [Widget] Gtk.Image image_inspect;
 
-       [Widget] Gtk.Box hbox_stiffness_formula;
+       [Widget] Gtk.HBox hbox_stiffness_formula;
        [Widget] Gtk.Button button_go;
        public bool Visible;
        private string button_go_link = "";
@@ -58,7 +58,10 @@ public class DialogMessage
        {
                initialize("", type, message, false);
                if(objectToShow == "hbox_stiffness_formula")
+               {
                        hbox_stiffness_formula.Show();
+                       UtilGtk.ContrastLabelsHBox (UtilGtk.ColorIsDark(colorBackground), 
hbox_stiffness_formula);
+               }
                else if(objectToShow == "button_go_r_mac")
                {
                        button_go_link = Constants.RmacDownload;


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