From ca2dedfc21b3c99a61d9dbddf36d344e68fbad2f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Fleury Date: Mon, 29 Sep 2014 01:32:55 -0400 Subject: =?UTF-8?q?Revert=20"Suppression=20de=20=C2=ABgtk-3.0/img/border-f?= =?UTF-8?q?ocused-ptb.svg=C2=BB"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 78d2d31fa20fa230d1b5dce7ae6c6de223dfa174. --- gtk-3.0/gtk-widgets-img.css | 10 ++++ gtk-3.0/gtk-widgets.css | 18 +++++++ gtk-3.0/gtk.css | 14 ++++++ gtk-3.0/img/border-focused-ptb.svg | 98 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+) create mode 100644 gtk-3.0/img/border-focused-ptb.svg (limited to 'gtk-3.0') diff --git a/gtk-3.0/gtk-widgets-img.css b/gtk-3.0/gtk-widgets-img.css index 07ea7f3..dec374c 100644 --- a/gtk-3.0/gtk-widgets-img.css +++ b/gtk-3.0/gtk-widgets-img.css @@ -591,6 +591,7 @@ GtkListBoxRow.button.list-row:hover { .button.default, .primary-toolbar .entry:focus, .primary-toolbar .button:active:focus, +.primary-toolbar .button:focus:hover, .primary-toolbar .combobox-entry .entry:focus, .primary-toolbar .combobox-entry .button:focus, .primary-toolbar .button.raised:focus:active, @@ -610,6 +611,15 @@ GtkListBoxRow.button.list-row:hover { border-color: transparent; } +/* focused primary toolbar button borders */ +.primary-toolbar .button:focus { + border-image: url("img/border-focused-ptb.svg") 3 3 4 3 / 3px 3px 4px 3px repeat; + border-radius: 3px; + border-width: 1px 1px 2px 1px; + border-style: solid; + border-color: transparent; +} + /* focused switch trough borders */ GtkSwitch.trough:active { border-image: url("img/border-focused-switch.svg") 3 3 4 3 / 3px 3px 4px 3px stretch; diff --git a/gtk-3.0/gtk-widgets.css b/gtk-3.0/gtk-widgets.css index 09620af..37621c5 100644 --- a/gtk-3.0/gtk-widgets.css +++ b/gtk-3.0/gtk-widgets.css @@ -707,6 +707,24 @@ GtkColorChooserWidget #add-color-button:hover { background-color: transparent; } +/* Focused primary toolbar button background */ +.primary-toolbar .button:focus { + background-image: linear-gradient(to bottom, + @pt_button_focus_gradient_a, + @pt_button_focus_gradient_b 50%, + @pt_button_focus_gradient_c 50%, + @pt_button_focus_gradient_d); +} + +/* Focused + prelit primary toolbar button background */ +.primary-toolbar .button:focus:hover { + background-image: linear-gradient(to bottom, + @pt_button_focus_hover_gradient_a, + @pt_button_focus_hover_gradient_b 50%, + @pt_button_focus_hover_gradient_c 50%, + @pt_button_focus_hover_gradient_d); +} + /***************** * Notebooks and * * tabs * diff --git a/gtk-3.0/gtk.css b/gtk-3.0/gtk.css index 0694bde..9f18c61 100644 --- a/gtk-3.0/gtk.css +++ b/gtk-3.0/gtk.css @@ -106,6 +106,20 @@ @define-color button_active_insensitive_gradient_e shade(@core_color_b, 0.99); @define-color button_active_insensitive_gradient_f shade(@core_color_b, 0.96); +/* primary toolbar focus */ + +@define-color pt_button_focus_gradient_a mix(#fafafa, shade(@core_color_a, 1.09), 0.3); +@define-color pt_button_focus_gradient_b mix(#ededed, shade(@core_color_a, 1.05), 0.3); +@define-color pt_button_focus_gradient_c mix(#e8e8e8, shade(@core_color_a, 1.01), 0.25); +@define-color pt_button_focus_gradient_d mix(#e8e8e8, shade(@core_color_a, 0.96), 0.3); + +/* primary toolbar focus hover */ + +@define-color pt_button_focus_hover_gradient_a mix(#fcfcfc, shade(@core_color_a, 1.09), 0.15); +@define-color pt_button_focus_hover_gradient_b mix(#fcfcfc, shade(@core_color_a, 1.05), 0.15); +@define-color pt_button_focus_hover_gradient_c mix(#fcfcfc, shade(@core_color_a, 1.01), 0.2); +@define-color pt_button_focus_hover_gradient_d mix(#e8e8e8, shade(@core_color_a, 0.96), 0.2); + /***************** * color chooser * *****************/ diff --git a/gtk-3.0/img/border-focused-ptb.svg b/gtk-3.0/img/border-focused-ptb.svg new file mode 100644 index 0000000..b360734 --- /dev/null +++ b/gtk-3.0/img/border-focused-ptb.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + -- cgit v1.2.3