[gtk+] Adwaita: tweak list row transition



commit 52e91f1f74ecb943d5068b4f884af1d1c8dc945e
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Thu Oct 16 14:12:13 2014 +0200

    Adwaita: tweak list row transition
    
    Thanks to Carlos Soriano expertise.

 gtk/resources/theme/Adwaita/_common.scss           |    7 +++++++
 gtk/resources/theme/Adwaita/gtk-contained-dark.css |    9 +++++++++
 gtk/resources/theme/Adwaita/gtk-contained.css      |    9 +++++++++
 3 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 361f00a..2d8a5fb 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -2485,6 +2485,13 @@ GtkScrolledWindow {
   }
 }
 
+// transition
+.list-row, list-row.button {
+  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
+  &:hover { transition: none; }
+}
+
+
 /*********************
  * App Notifications *
  *********************/
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css 
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 53d1d47..2449067 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -3695,6 +3695,15 @@ GtkCalendar.header .list-row.button.titlebutton {
       .list-row:selected .button:insensitive:active > .label, .list-row:selected .button:insensitive:checked 
.label {
         color: inherit; }
 
+.list-row, list-row.button, .header-bar list-row.button.titlebutton,
+.titlebar list-row.button.titlebutton,
+GtkCalendar.header list-row.button.titlebutton {
+  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
+  .list-row:hover, list-row.button:hover, .header-bar list-row.button.titlebutton:hover,
+  .titlebar list-row.button.titlebutton:hover,
+  GtkCalendar.header list-row.button.titlebutton:hover {
+    transition: none; }
+
 /*********************
  * App Notifications *
  *********************/
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index 77defbe..c52a29c 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -3856,6 +3856,15 @@ GtkCalendar.header .list-row.button.titlebutton {
       .list-row:selected .button:insensitive:active > .label, .list-row:selected .button:insensitive:checked 
.label {
         color: inherit; }
 
+.list-row, list-row.button, .header-bar list-row.button.titlebutton,
+.titlebar list-row.button.titlebutton,
+GtkCalendar.header list-row.button.titlebutton {
+  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
+  .list-row:hover, list-row.button:hover, .header-bar list-row.button.titlebutton:hover,
+  .titlebar list-row.button.titlebutton:hover,
+  GtkCalendar.header list-row.button.titlebutton:hover {
+    transition: none; }
+
 /*********************
  * App Notifications *
  *********************/


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