[gnome-clocks] css: Replace {positive,negative}-lap classes



commit 4b0f8fe9795a5c5aeb5e0d479f31e8f3c10477aa
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Wed Dec 15 12:44:16 2021 +0100

    css: Replace {positive,negative}-lap classes
    
    With ones provided by libadwaita.

 data/css/gnome-clocks.css   | 8 --------
 src/stopwatch-laps-row.vala | 4 ++--
 2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/data/css/gnome-clocks.css b/data/css/gnome-clocks.css
index d4186510..4f47689f 100644
--- a/data/css/gnome-clocks.css
+++ b/data/css/gnome-clocks.css
@@ -80,14 +80,6 @@
        font-weight: bold;
 }
 
-.negative-lap {
-       color: @destructive_color;
-}
-
-.positive-lap {
-       color: @accent_color;
-}
-
 .stopped-stopwatch label,
 .running-stopwatch label,
 .paused-stopwatch label {
diff --git a/src/stopwatch-laps-row.vala b/src/stopwatch-laps-row.vala
index 016f8214..8a03472a 100644
--- a/src/stopwatch-laps-row.vala
+++ b/src/stopwatch-laps-row.vala
@@ -55,9 +55,9 @@ private class LapsRow : Gtk.ListBoxRow {
 
             var difference = this.get_delta_duration ();
             if (difference > 0) {
-                difference_label.add_css_class ("negative-lap");
+                difference_label.add_css_class ("error");
             } else if (difference < 0) {
-                difference_label.add_css_class ("positive-lap");
+                difference_label.add_css_class ("accent");
             }
         }
     }


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