changeset 70:aa6a1c6e24ad

Reduce jump between focus and backdrop for "suggested action" button
author IBBoard <dev@ibboard.co.uk>
date Mon, 13 Nov 2017 20:46:08 +0000
parents 486bdc94db57
children ad99a00224bb
files gtk-3.20/gtk.css gtk-3.20/gtk.scss
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk-3.20/gtk.css	Mon Nov 13 20:45:16 2017 +0000
+++ b/gtk-3.20/gtk.css	Mon Nov 13 20:46:08 2017 +0000
@@ -2086,7 +2086,7 @@
 
 .titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action:active, .titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action:checked, headerbar:not(.selection-mode) button.suggested-action:active, headerbar:not(.selection-mode) button.suggested-action:checked { color: white; outline-color: rgba(255, 255, 255, 0.3); border-color: #2b3a1d; background-image: image(#4f6a34); box-shadow: inset 0 1px rgba(255, 255, 255, 0); text-shadow: none; -gtk-icon-shadow: none; }
 
-.titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action:backdrop, .titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action.flat:backdrop, headerbar:not(.selection-mode) button.suggested-action:backdrop, headerbar:not(.selection-mode) button.suggested-action.flat:backdrop { border-color: #5E7F3E; background-image: image(#5E7F3E); text-shadow: none; -gtk-icon-shadow: none; box-shadow: inset 0 1px rgba(255, 255, 255, 0); }
+.titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action:backdrop, .titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action.flat:backdrop, headerbar:not(.selection-mode) button.suggested-action:backdrop, headerbar:not(.selection-mode) button.suggested-action.flat:backdrop { border-color: #5E7F3E; background-image: image(#5E7F3E); text-shadow: none; -gtk-icon-shadow: none; box-shadow: inset 0 1px rgba(255, 255, 255, 0); border-color: #2b3a1d; }
 
 .titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action:backdrop label, .titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action:backdrop, .titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action.flat:backdrop label, .titlebar:not(headerbar) headerbar:not(.selection-mode) button.suggested-action.flat:backdrop, headerbar:not(.selection-mode) button.suggested-action:backdrop label, headerbar:not(.selection-mode) button.suggested-action:backdrop, headerbar:not(.selection-mode) button.suggested-action.flat:backdrop label, headerbar:not(.selection-mode) button.suggested-action.flat:backdrop { color: #dfe5d8; }
 
--- a/gtk-3.20/gtk.scss	Mon Nov 13 20:45:16 2017 +0000
+++ b/gtk-3.20/gtk.scss	Mon Nov 13 20:46:08 2017 +0000
@@ -337,6 +337,7 @@
       &:backdrop,
       &.flat:backdrop {
         @include button(backdrop, $selected_bg_color, white);
+        border-color: $selected_bg_border;
 
         &:active,
         &:checked { @include button(backdrop-active, $selected_bg_color, $insensitive_dark_fg_color); }