[gnome-themes-standard/wip/sass] buttons: backdrop:active state colors



commit c00f66479f69da9d644b8bfc61c292b069a6042d
Author: Jakub Steiner <jimmac gmail com>
Date:   Wed May 14 15:47:41 2014 +0200

    buttons: backdrop:active state colors

 themes/Adwaita/gtk-3.0/_common.scss            |    9 ++++++++-
 themes/Adwaita/gtk-3.0/gtk-contained-dark.scss |    1 -
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/_common.scss b/themes/Adwaita/gtk-3.0/_common.scss
index 8416027..24df311 100644
--- a/themes/Adwaita/gtk-3.0/_common.scss
+++ b/themes/Adwaita/gtk-3.0/_common.scss
@@ -208,6 +208,12 @@ GtkGrid:insensitive {
   &:backdrop {
     @include button_backdrop($theme_bg_color);
     color: $insensitive_fg_color;
+    &:active {
+      @include button_backdrop(darken($theme_bg_color, 20%));
+      box-shadow: none;
+      border: 1px solid darken($theme_bg_color,30%);
+      color: $theme_fg_color;
+    }
   }
   &:insensitive {
     @include button_insensitive($theme_bg_color);
@@ -215,7 +221,8 @@ GtkGrid:insensitive {
   &:backdrop:insensitive {
     @include button_insensitive(transparentize($theme_bg_color,0.5));
   }
-  // Suggested and Destructive Action buttons
+  
+  /* Suggested and Destructive Action buttons */
   @each $b_type, $b_color in (suggested-action, $theme_selected_bg_color), (destructive-action, 
$destructive_color) {
     &.#{$b_type} {
       @include button_normal($b_color);
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained-dark.scss b/themes/Adwaita/gtk-3.0/gtk-contained-dark.scss
index 922eb59..8935def 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained-dark.scss
+++ b/themes/Adwaita/gtk-3.0/gtk-contained-dark.scss
@@ -14,7 +14,6 @@ $link_color: lighten($theme_selected_bg_color,10%);
 $warning_color: #f57900;
 $error_color: #cc0000;
 $success_color: $theme_selected_bg_color;
-$destructive_color: darken(#ef2929,10%);
 
 $insensitive_fg_color: lighten($theme_fg_color, 10%);
 $insensitive_bg_color: transparent;


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