[gnome-clocks/wip/stopwatchlistbox] Test another tweak



commit 8b7ea6ab4f5c23f0bfe2369a008b1bf068026782
Author: Paolo Borelli <pborelli gnome org>
Date:   Wed Aug 7 17:34:05 2013 +0200

    Test another tweak

 src/stopwatch.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/stopwatch.vala b/src/stopwatch.vala
index eed927d..56e3a7c 100644
--- a/src/stopwatch.vala
+++ b/src/stopwatch.vala
@@ -117,7 +117,11 @@ public class AnalogFrame : Gtk.Frame {
             var progress = millisecs;
             if (progress > 0) {
                 cr.set_line_width (2);
-                color = context.get_background_color (Gtk.StateFlags.SELECTED);
+                if (progress < (seconds + millisecs) / 60) {
+                    color = context.get_color (Gtk.StateFlags.SELECTED);
+                } else {
+                    color = context.get_background_color (Gtk.StateFlags.SELECTED);
+                }
                 cr.arc (center_x, center_y, radius, 1.5  * Math.PI, (1.5 + progress * 2 ) * Math.PI);
                 Gdk.cairo_set_source_rgba (cr, color);
                 cr.stroke ();


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