[chronojump] color on dialog_message



commit 701bd06514a6fce47405ff434ea1677478926719
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Aug 20 10:46:21 2020 +0100

    color on dialog_message

 src/gui/app1/chronojump.cs | 3 +++
 src/gui/dialogMessage.cs   | 3 +++
 2 files changed, 6 insertions(+)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index c78280b4..d5f3a21d 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -553,6 +553,8 @@ public partial class ChronoJumpWindow
                //at initialization of chronojump and gives problems if this signals are raised while 
preferences are loading
                loadPreferencesAtStart ();
 
+               DialogMessage.colorBackground = preferences.colorBackground;
+
                checkbutton_video_contacts.Visible = true;
 
                if(topMessage != "") {
@@ -2848,6 +2850,7 @@ public partial class ChronoJumpWindow
                //repaint labels that are on the background
                //TODO: only if color changed or personWinHide
                doLabelsContrast(configChronojump.PersonWinHide);
+               DialogMessage.colorBackground = preferences.colorBackground;
 
                // update force_capture_drawingarea
                if(current_menuitem_mode == Constants.Menuitem_modes.FORCESENSOR && 
radiobutton_force_sensor_analyze_manual.Active)
diff --git a/src/gui/dialogMessage.cs b/src/gui/dialogMessage.cs
index 246a34ed..359d9910 100644
--- a/src/gui/dialogMessage.cs
+++ b/src/gui/dialogMessage.cs
@@ -25,6 +25,8 @@ using Glade;
 
 public class DialogMessage
 {
+       public static Gdk.Color colorBackground; //static to avoid passing colorBackground on all its calls
+
        [Widget] Gtk.Dialog dialog_message;
        [Widget] Gtk.ScrolledWindow scrolledwindow;
        [Widget] Gtk.Label label_message;
@@ -79,6 +81,7 @@ public class DialogMessage
 
                //put an icon to window
                UtilGtk.IconWindow(dialog_message);
+               UtilGtk.DialogColor(dialog_message, colorBackground);
        
                //with this, user doesn't see a moving/changing creation window
                //if uncommented, then does weird bug in windows not showing dialog as its correct size until 
window is moves


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