[chronojump] Colorized reparir_sub_event window



commit a249f79d03408762c957be81d83bb8d8d6841677
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Sep 15 16:51:24 2020 +0200

    Colorized reparir_sub_event window

 src/gui/jump.cs  |  9 +++++++++
 src/gui/pulse.cs | 11 ++++++++++-
 src/gui/run.cs   |  9 +++++++++
 3 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/jump.cs b/src/gui/jump.cs
index aa735378..859b7260 100644
--- a/src/gui/jump.cs
+++ b/src/gui/jump.cs
@@ -571,6 +571,7 @@ public class EditJumpRjWindow : EditJumpWindow
 public class RepairJumpRjWindow 
 {
        [Widget] Gtk.Window repair_sub_event;
+       [Widget] Gtk.HBox hbox_notes_and_totaltime;
        [Widget] Gtk.Label label_header;
        [Widget] Gtk.Label label_totaltime_value;
        [Widget] Gtk.TreeView treeview_subevents;
@@ -636,6 +637,14 @@ public class RepairJumpRjWindow
                        RepairJumpRjWindowBox = new RepairJumpRjWindow (parent, myJump, pDN);
                }
                
+               //manage window color
+               if(! Config.UseSystemColor)
+               {
+                       UtilGtk.WindowColor(RepairJumpRjWindowBox.repair_sub_event, Config.ColorBackground);
+                       UtilGtk.ContrastLabelsLabel(Config.ColorBackgroundIsDark, 
RepairJumpRjWindowBox.label_header);
+                       UtilGtk.ContrastLabelsHBox(Config.ColorBackgroundIsDark, 
RepairJumpRjWindowBox.hbox_notes_and_totaltime);
+               }
+
                RepairJumpRjWindowBox.repair_sub_event.Show ();
 
                return RepairJumpRjWindowBox;
diff --git a/src/gui/pulse.cs b/src/gui/pulse.cs
index 7a864582..92bf3b19 100644
--- a/src/gui/pulse.cs
+++ b/src/gui/pulse.cs
@@ -121,6 +121,7 @@ public class EditPulseWindow : EditEventWindow
 public class RepairPulseWindow 
 {
        [Widget] Gtk.Window repair_sub_event;
+       [Widget] Gtk.HBox hbox_notes_and_totaltime;
        [Widget] Gtk.Label label_header;
        [Widget] Gtk.Label label_totaltime_value;
        [Widget] Gtk.TreeView treeview_subevents;
@@ -181,7 +182,15 @@ public class RepairPulseWindow
                if (RepairPulseWindowBox == null) {
                        RepairPulseWindowBox = new RepairPulseWindow (parent, myPulse, pDN);
                }
-               
+
+               //manage window color
+               if(! Config.UseSystemColor)
+               {
+                       UtilGtk.WindowColor(RepairPulseWindowBox.repair_sub_event, Config.ColorBackground);
+                       UtilGtk.ContrastLabelsLabel(Config.ColorBackgroundIsDark, 
RepairPulseWindowBox.label_header);
+                       UtilGtk.ContrastLabelsHBox(Config.ColorBackgroundIsDark, 
RepairPulseWindowBox.hbox_notes_and_totaltime);
+               }
+
                RepairPulseWindowBox.repair_sub_event.Show ();
 
                return RepairPulseWindowBox;
diff --git a/src/gui/run.cs b/src/gui/run.cs
index d9c87b59..55f0ce6c 100644
--- a/src/gui/run.cs
+++ b/src/gui/run.cs
@@ -564,6 +564,7 @@ public class EditRunIntervalWindow : EditRunWindow
 public class RepairRunIntervalWindow 
 {
        [Widget] Gtk.Window repair_sub_event;
+       [Widget] Gtk.HBox hbox_notes_and_totaltime;
        [Widget] Gtk.Label label_header;
        [Widget] Gtk.Label label_totaltime_value;
        [Widget] Gtk.TreeView treeview_subevents;
@@ -626,6 +627,14 @@ public class RepairRunIntervalWindow
                        RepairRunIntervalWindowBox = new RepairRunIntervalWindow (parent, myRun, pDN);
                }
                
+               //manage window color
+               if(! Config.UseSystemColor)
+               {
+                       UtilGtk.WindowColor(RepairRunIntervalWindowBox.repair_sub_event, 
Config.ColorBackground);
+                       UtilGtk.ContrastLabelsLabel(Config.ColorBackgroundIsDark, 
RepairRunIntervalWindowBox.label_header);
+                       UtilGtk.ContrastLabelsHBox(Config.ColorBackgroundIsDark, 
RepairRunIntervalWindowBox.hbox_notes_and_totaltime);
+               }
+
                RepairRunIntervalWindowBox.repair_sub_event.Show ();
 
                return RepairRunIntervalWindowBox;


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