[chronojump] session/persons sidebar: contrast labels



commit 5afb0ae44588cac5dec5a180ff590a912f033578
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jul 21 15:55:08 2021 +0200

    session/persons sidebar: contrast labels

 glade/app1.glade           | 8 ++++----
 src/gui/app1/chronojump.cs | 8 ++++++++
 src/gui/app1/menu.cs       | 2 +-
 3 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 02f9fd9ad..76b3854f5 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1706,7 +1706,7 @@
                                                             <child>
                                                             <widget class="GtkVBox" id="vbox_manage_persons">
                                                             <property name="can_focus">False</property>
-                                                            <property name="spacing">6</property>
+                                                            <property name="spacing">4</property>
                                                             <child>
                                                             <widget class="GtkVBox" 
id="vbox_person_manage_create">
                                                             <property name="visible">True</property>
@@ -1734,7 +1734,7 @@
                                                             <widget class="GtkHBox" id="hbox535">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="spacing">6</property>
+                                                            <property name="spacing">8</property>
                                                             <child>
                                                             <widget class="GtkButton" 
id="button_person_add_single">
                                                             <property name="visible">True</property>
@@ -1850,7 +1850,7 @@
                                                             <widget class="GtkHBox" id="hbox537">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="spacing">6</property>
+                                                            <property name="spacing">8</property>
                                                             <child>
                                                             <widget class="GtkButton" 
id="button_recuperate_person">
                                                             <property name="visible">True</property>
@@ -2353,7 +2353,7 @@
                                           </widget>
                                         </child>
                                         <child>
-                                          <widget class="GtkLabel" id="label22">
+                                          <widget class="GtkLabel" id="label_persons_at_frame_persons">
                                             <property name="visible">True</property>
                                             <property name="can_focus">False</property>
                                             <property name="label" translatable="yes">Persons</property>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 14d2adcc4..609b0ac8d 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -867,6 +867,14 @@ public partial class ChronoJumpWindow
                                image_encoder_rest_time_dark_blue.Visible = true;
                                image_encoder_rest_time_clear_yellow.Visible = false;
                        }
+               } else {
+                       if(! Config.UseSystemColor)
+                       {
+                               UtilGtk.ContrastLabelsLabel (Config.ColorBackgroundIsDark, 
label_persons_at_frame_persons);
+                               UtilGtk.ContrastLabelsVBox (Config.ColorBackgroundIsDark, 
vbox_person_manage_create);
+                               UtilGtk.ContrastLabelsVBox (Config.ColorBackgroundIsDark, 
vbox_person_manage_load);
+                               UtilGtk.ContrastLabelsVBox (Config.ColorBackgroundIsDark, 
vbox_persons_bottom_no_photo);
+                       }
                }
 
                if(! Config.UseSystemColor)
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index c60ceecb1..75b918621 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -50,7 +50,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.VBox vbox_menu_session;
        [Widget] Gtk.Alignment alignment_menu_session_options;
        [Widget] Gtk.Alignment alignment_menu_person_options;
-
+       [Widget] Gtk.Label label_persons_at_frame_persons;
 
        [Widget] Gtk.Button button_menu_session_new;
        [Widget] Gtk.Button button_menu_session_load;


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