From 3a7798221346a76d0820f9bc28b295b8a16d9d1f Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 5 May 2015 22:10:38 +0200 Subject: All themes themes GTK3: enable spinner animation to use mate logo with latest commits from mate-icon-theme --- desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css | 29 ++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'desktop-themes/BlackMATE') diff --git a/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css b/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css index ed44a697..2739837c 100644 --- a/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css +++ b/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css @@ -285,11 +285,32 @@ GtkTreeView .separator, border-radius: 0; } -/************ - * Spinners * - ************/ +/********************* + * Spinner Animation * + *********************/ +/* This is could be CPU-intensive */ -/* This could be CPU-intensive. */ +@keyframes spin { + to { -gtk-icon-transform: rotate(1turn); } +} + +.spinner { + background-image: none; + background-color: blue; + opacity: 0; + -gtk-icon-source: -gtk-icontheme("process-working-symbolic"); +} + +.spinner:active { + opacity: 1; + animation: spin 1s linear infinite; } +.spinner:active:insensitive { + opacity: 0.5; +} + +.button .spinner:active { + color: @theme_fg_color; +} /**************** * Text Entries * -- cgit v1.2.1