[chronojump] colorized viewport on exit confirm



commit 9e268001a49724fa5ce61b400c1aacdb25175506
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Apr 15 11:45:34 2020 +0200

    colorized viewport on exit confirm

 glade/app1.glade          | 145 +++++++++++++++++++++++++---------------------
 src/gui/app1/menu.cs      |   2 +
 src/gui/app1/menu_tiny.cs |   1 +
 3 files changed, 82 insertions(+), 66 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 23e66520..119482fe 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -39247,99 +39247,117 @@ then click this button.</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <child>
-                  <widget class="GtkHBox" id="hbox367">
+                  <widget class="GtkViewport" id="viewport_exit_confirm">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <child>
-                      <widget class="GtkVBox" id="vbox202">
+                      <widget class="GtkHBox" id="hbox367">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <child>
-                          <widget class="GtkFrame" id="frame17">
+                          <widget class="GtkVBox" id="vbox202">
                             <property name="visible">True</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="GtkVBox" id="vbox203">
+                              <widget class="GtkFrame" id="frame17">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
-                                <property name="border_width">20</property>
-                                <property name="spacing">20</property>
+                                <property name="label_xalign">0</property>
+                                <property name="label_yalign">1</property>
+                                <property name="shadow_type">in</property>
                                 <child>
-                                  <widget class="GtkVBox" id="vbox204">
+                                  <widget class="GtkViewport" id="viewport13">
                                     <property name="visible">True</property>
                                     <property name="can_focus">False</property>
-                                    <property name="spacing">40</property>
+                                    <property name="border_width">4</property>
                                     <child>
-                                      <widget class="GtkLabel" id="label_22">
-                                        <property name="visible">True</property>
-                                        <property name="can_focus">False</property>
-                                        <property name="xalign">0</property>
-                                        <property name="label" translatable="yes">Are you sure you want to 
exit Chronojump?</property>
-                                        <property name="use_markup">True</property>
-                                      </widget>
-                                      <packing>
-                                        <property name="expand">True</property>
-                                        <property name="fill">True</property>
-                                        <property name="position">0</property>
-                                      </packing>
-                                    </child>
-                                    <child>
-                                      <widget class="GtkHButtonBox" id="hbuttonbox14">
+                                      <widget class="GtkVBox" id="vbox203">
                                         <property name="visible">True</property>
                                         <property name="can_focus">False</property>
+                                        <property name="border_width">20</property>
+                                        <property name="spacing">20</property>
                                         <child>
-                                          <widget class="GtkButton" id="button_exit_cancel">
-                                            <property name="label">gtk-cancel</property>
+                                          <widget class="GtkVBox" id="vbox204">
                                             <property name="visible">True</property>
-                                            <property name="can_focus">True</property>
-                                            <property name="receives_default">True</property>
-                                            <property name="use_stock">True</property>
-                                            <signal name="clicked" handler="on_button_exit_cancel_clicked" 
swapped="no"/>
+                                            <property name="can_focus">False</property>
+                                            <property name="spacing">40</property>
+                                            <child>
+                                              <widget class="GtkLabel" id="label_22">
+                                                <property name="visible">True</property>
+                                                <property name="can_focus">False</property>
+                                                <property name="xalign">0</property>
+                                                <property name="label" translatable="yes">Are you sure you 
want to exit Chronojump?</property>
+                                                <property name="use_markup">True</property>
+                                              </widget>
+                                              <packing>
+                                                <property name="expand">True</property>
+                                                <property name="fill">True</property>
+                                                <property name="position">0</property>
+                                              </packing>
+                                            </child>
+                                            <child>
+                                              <widget class="GtkHButtonBox" id="hbuttonbox14">
+                                                <property name="visible">True</property>
+                                                <property name="can_focus">False</property>
+                                                <child>
+                                                  <widget class="GtkButton" id="button_exit_cancel">
+                                                    <property name="label">gtk-cancel</property>
+                                                    <property name="visible">True</property>
+                                                    <property name="can_focus">True</property>
+                                                    <property name="receives_default">True</property>
+                                                    <property name="use_stock">True</property>
+                                                    <signal name="clicked" 
handler="on_button_exit_cancel_clicked" swapped="no"/>
+                                                  </widget>
+                                                  <packing>
+                                                    <property name="expand">False</property>
+                                                    <property name="fill">False</property>
+                                                    <property name="position">0</property>
+                                                  </packing>
+                                                </child>
+                                                <child>
+                                                  <widget class="GtkButton" id="button_exit_confirm">
+                                                    <property name="label">gtk-quit</property>
+                                                    <property name="visible">True</property>
+                                                    <property name="can_focus">True</property>
+                                                    <property name="receives_default">True</property>
+                                                    <property name="use_stock">True</property>
+                                                    <signal name="clicked" 
handler="on_button_exit_confirm_clicked" swapped="no"/>
+                                                  </widget>
+                                                  <packing>
+                                                    <property name="expand">False</property>
+                                                    <property name="fill">False</property>
+                                                    <property name="position">1</property>
+                                                  </packing>
+                                                </child>
+                                              </widget>
+                                              <packing>
+                                                <property name="expand">True</property>
+                                                <property name="fill">True</property>
+                                                <property name="position">1</property>
+                                              </packing>
+                                            </child>
                                           </widget>
                                           <packing>
-                                            <property name="expand">False</property>
-                                            <property name="fill">False</property>
+                                            <property name="expand">True</property>
+                                            <property name="fill">True</property>
                                             <property name="position">0</property>
                                           </packing>
                                         </child>
-                                        <child>
-                                          <widget class="GtkButton" id="button_exit_confirm">
-                                            <property name="label">gtk-quit</property>
-                                            <property name="visible">True</property>
-                                            <property name="can_focus">True</property>
-                                            <property name="receives_default">True</property>
-                                            <property name="use_stock">True</property>
-                                            <signal name="clicked" handler="on_button_exit_confirm_clicked" 
swapped="no"/>
-                                          </widget>
-                                          <packing>
-                                            <property name="expand">False</property>
-                                            <property name="fill">False</property>
-                                            <property name="position">1</property>
-                                          </packing>
-                                        </child>
                                       </widget>
-                                      <packing>
-                                        <property name="expand">True</property>
-                                        <property name="fill">True</property>
-                                        <property name="position">1</property>
-                                      </packing>
                                     </child>
                                   </widget>
+                                </child>
+                                <child>
+                                  <placeholder/>
                                   <packing>
-                                    <property name="expand">True</property>
-                                    <property name="fill">True</property>
-                                    <property name="position">0</property>
+                                    <property name="type">label_item</property>
                                   </packing>
                                 </child>
                               </widget>
-                            </child>
-                            <child>
-                              <placeholder/>
                               <packing>
-                                <property name="type">label_item</property>
+                                <property name="expand">True</property>
+                                <property name="fill">False</property>
+                                <property name="position">0</property>
                               </packing>
                             </child>
                           </widget>
@@ -39350,11 +39368,6 @@ then click this button.</property>
                           </packing>
                         </child>
                       </widget>
-                      <packing>
-                        <property name="expand">True</property>
-                        <property name="fill">False</property>
-                        <property name="position">0</property>
-                      </packing>
                     </child>
                   </widget>
                   <packing>
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index a2d3cba5..af07dda7 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -38,6 +38,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.HPaned hpaned_contacts_main;
        [Widget] Gtk.Alignment alignment_viewport_menu_top;
        [Widget] Gtk.Viewport viewport_hpaned_contacts_main;
+       [Widget] Gtk.Viewport viewport_exit_confirm;
        [Widget] Gtk.Viewport viewport_start_modes;
        [Widget] Gtk.Viewport viewport_menu_top;
        [Widget] Gtk.Viewport viewport_menu;
@@ -234,6 +235,7 @@ public partial class ChronoJumpWindow
                Gdk.Color color = UtilGtk.ColorParse(preferences.colorBackgroundString);
 
                UtilGtk.ViewportColor(viewport_hpaned_contacts_main, color);
+               UtilGtk.ViewportColor(viewport_exit_confirm, color);
                UtilGtk.ViewportColor(viewport_menu_top, color);
                UtilGtk.ViewportColor(viewport_menu, color);
                //UtilGtk.ViewportColor(viewport_menu, UtilGtk.BLUE_CLEAR2);
diff --git a/src/gui/app1/menu_tiny.cs b/src/gui/app1/menu_tiny.cs
index 7bafd976..c896ec7f 100644
--- a/src/gui/app1/menu_tiny.cs
+++ b/src/gui/app1/menu_tiny.cs
@@ -104,6 +104,7 @@ public partial class ChronoJumpWindow
                Gdk.Color color = UtilGtk.ColorParse(preferences.colorBackgroundString);
 
                UtilGtk.ViewportColor(viewport_hpaned_contacts_main, color);
+               UtilGtk.ViewportColor(viewport_exit_confirm, color);
                UtilGtk.ViewportColor(viewport_rest_time_contacts, color);
                UtilGtk.ViewportColor(viewport_rest_time_encoder, color);
                UtilGtk.ViewportColor(viewport_image_logo_icon, UtilGtk.BLUE_CHRONOJUMP);


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