[gnome-mines] Remove transitions for a snappier experience (#14)



commit 1227fbf707479dd11954e98feedc6b94674e8d9b
Author: Robert Roth <robert roth off gmail com>
Date:   Sat Oct 13 00:12:17 2018 +0300

    Remove transitions for a snappier experience (#14)

 data/org.gnome.mines.gschema.xml |  2 +-
 data/themes/default/theme.css    |  2 --
 src/gnome-mines.css              | 10 ----------
 src/theme-selector-dialog.vala   |  7 -------
 4 files changed, 1 insertion(+), 20 deletions(-)
---
diff --git a/data/org.gnome.mines.gschema.xml b/data/org.gnome.mines.gschema.xml
index 546180a..5e1760c 100644
--- a/data/org.gnome.mines.gschema.xml
+++ b/data/org.gnome.mines.gschema.xml
@@ -21,7 +21,7 @@
       <description>Set to true to automatically flag squares as mined when enough squares are 
revealed</description>
     </key>
     <key name="use-animations" type="b">
-      <default>true</default>
+      <default>false</default>
       <summary>Enable animations</summary>
       <description>Set to false to disable theme-defined transition animations</description>
     </key>
diff --git a/data/themes/default/theme.css b/data/themes/default/theme.css
index c54dfb6..d0fc5c3 100644
--- a/data/themes/default/theme.css
+++ b/data/themes/default/theme.css
@@ -1,11 +1,9 @@
 /* Style of the unrevealed tiles after game over */
 .explodedField .tile {
   background-color:#888a85;
-  transition-duration:1s;
 }
 
 .explodedField .count,
 .explodedField .exploded {
   background-color:#d3d7cf;
-  transition-duration:1s;
 }
diff --git a/src/gnome-mines.css b/src/gnome-mines.css
index 11dcd7b..42f1c43 100644
--- a/src/gnome-mines.css
+++ b/src/gnome-mines.css
@@ -44,7 +44,6 @@
 
 .tile:not(.cursor):hover {
   background-color:#d3d7cf;
-  transition-duration:0.4s;
 }
 
 .tile:active {
@@ -58,7 +57,6 @@
   font-size:0px;
   background-image:none;
   background-color:#dededc;
-  transition-duration:0.4s;
 }
 
 .mine {
@@ -136,11 +134,3 @@
   background-color:#cc0000;
 }
 
-.completedField .flag {
-  transition-duration:1s;
-}
-
-.explodedField {
-  transition-duration:1s;
-}
-
diff --git a/src/theme-selector-dialog.vala b/src/theme-selector-dialog.vala
index 2eb86a4..bb351bc 100644
--- a/src/theme-selector-dialog.vala
+++ b/src/theme-selector-dialog.vala
@@ -96,13 +96,6 @@ public class ThemeSelectorDialog : Gtk.Dialog
         reveal_nonmines (view);
         box.pack_start (frame, true, true, 0);
 
-        var animations_check = new Gtk.CheckButton.with_mnemonic (_("Use _animations"));
-        animations_check.set_property("halign", Gtk.Align.CENTER);
-        box.pack_start (animations_check, false, false, 0);
-
-        Gtk.Settings.get_default().bind_property ("gtk-enable-animations",
-          animations_check, "active",BindingFlags.BIDIRECTIONAL|BindingFlags.SYNC_CREATE);
-
         return box;
     }
 


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