[gnome-clocks] More css cleanups



commit 35b533b4ebff7c34f81ff064fd6631210226bbf8
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Tue Dec 14 19:35:40 2021 +0100

    More css cleanups

 data/css/gnome-clocks.css              | 40 +++-------------------------------
 data/css/gnome-clocks.dark.css         | 10 ++-------
 data/css/gnome-clocks.highcontrast.css | 10 ---------
 src/timer-row.vala                     |  3 +++
 4 files changed, 8 insertions(+), 55 deletions(-)
---
diff --git a/data/css/gnome-clocks.css b/data/css/gnome-clocks.css
index 9f8d7b45..7d8afc91 100644
--- a/data/css/gnome-clocks.css
+++ b/data/css/gnome-clocks.css
@@ -1,12 +1,3 @@
-window > stack:backdrop {
-       background-color: mix(
-               @theme_unfocused_fg_color,
-               @theme_unfocused_bg_color,
-               0.95
-       );
-       box-shadow: none;
-}
-
 /* Shared */
 
 .large-button {
@@ -60,23 +51,6 @@ row.snoozing {
 
 /* disguise insensitive spinbuttons as normal labels */
 
-spinbutton.clocks-timer-label,
-spinbutton.clocks-timer-label button,
-spinbutton.clocks-timer-label entry {
-       border-color: transparent;
-       background-color: transparent;
-       background-image: none;
-       box-shadow: none;
-}
-
-spinbutton.clocks-timer-label {
-       color: @theme_fg_color;
-}
-
-spinbutton.clocks-timer-label button {
-       color: transparent;
-}
-
 .timer-panel .timer-header {
        font-size: 20pt;
        font-weight: 300;
@@ -89,15 +63,13 @@ spinbutton.clocks-timer-label button {
 
 @keyframes clocks-blink {
        0% {
-               color: @theme_fg_color;
+               color: @accent_color;
        }
        100% {
-               color: @accent_color;
        }
 }
 
 .timer-countdown.timer-paused {
-       opacity: 0.55;
        animation-name: clocks-blink;
        animation-iteration-count: infinite;
        animation-timing-function: steps(2);
@@ -169,19 +141,13 @@ spinbutton.clocks-timer-label button {
        background-color: alpha(@blue_3, 0.25);
 }
 
+.naut .clock-time,
 .astro .clock-time {
        color: @orange_5;
        background-color: alpha(@orange_4, 0.25);
 }
 
-.naut .clock-time {
-       background: alpha(@orange_2, 0.4);
-}
-
-.civil .clock-time {
-       background: alpha(@yellow_2, 0.4);
-}
-
+.civil .clock-time,
 .day .clock-time {
        color: #ae7b03;
        background: alpha(@yellow_5, 0.25);
diff --git a/data/css/gnome-clocks.dark.css b/data/css/gnome-clocks.dark.css
index 9ca8300f..477e3c9a 100644
--- a/data/css/gnome-clocks.dark.css
+++ b/data/css/gnome-clocks.dark.css
@@ -6,18 +6,12 @@
        color: @blue_1;
 }
 
-.astro .clock-time {
-       background: alpha(@orange_2, 0.2);
-}
-
+.astro .clock-time,
 .naut .clock-time {
        color: @orange_1;
 }
 
-.civil .clock-time {
-       background: alpha(@yellow_2, 0.2);
-}
-
+.civil .clock-time,
 .day .clock-time {
        color: @yellow_2;
        background: alpha(#cd9309, 0.25);
diff --git a/data/css/gnome-clocks.highcontrast.css b/data/css/gnome-clocks.highcontrast.css
index 81e4676d..d7188dce 100644
--- a/data/css/gnome-clocks.highcontrast.css
+++ b/data/css/gnome-clocks.highcontrast.css
@@ -1,13 +1,3 @@
-window > stack {
-       background-color: @theme_bg_color;
-       box-shadow: none;
-}
-
-window > stack:backdrop {
-       background-color: @theme_unfocused_bg_color;
-       box-shadow: none;
-}
-
 /* alarms */
 
 row.snoozing {
diff --git a/src/timer-row.vala b/src/timer-row.vala
index 8afa6df8..69eee31b 100644
--- a/src/timer-row.vala
+++ b/src/timer-row.vala
@@ -103,6 +103,7 @@ public class Row : Gtk.ListBoxRow {
         delete_stack.visible_child_name = "button";
 
         countdown_label.remove_css_class ("timer-paused");
+        countdown_label.remove_css_class ("dim-label");
         countdown_label.remove_css_class ("timer-ringing");
         countdown_label.remove_css_class ("timer-running");
         start_stack.visible_child_name = "start";
@@ -116,6 +117,7 @@ public class Row : Gtk.ListBoxRow {
         countdown_label.add_css_class ("timer-running");
         countdown_label.remove_css_class ("timer-ringing");
         countdown_label.remove_css_class ("timer-paused");
+        countdown_label.remove_css_class ("dim-label");
 
         reset_stack.visible_child_name = "empty";
         delete_stack.visible_child_name = "empty";
@@ -128,6 +130,7 @@ public class Row : Gtk.ListBoxRow {
     private void ring () {
         countdown_label.add_css_class ("timer-ringing");
         countdown_label.remove_css_class ("timer-paused");
+        countdown_label.remove_css_class ("dim-label");
         countdown_label.remove_css_class ("timer-running");
     }
 


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