diff options
author | Jean-Philippe Fleury <contact@jpfleury.net> | 2014-09-29 01:32:55 -0400 |
---|---|---|
committer | Jean-Philippe Fleury <contact@jpfleury.net> | 2014-09-29 01:32:55 -0400 |
commit | ca2dedfc21b3c99a61d9dbddf36d344e68fbad2f (patch) | |
tree | 1662a1bca8feb8ea9ed6e07fd4f19dabc05857ae /gtk-3.0 | |
parent | 0d4036be85ac2b26d65972a9484b0d95e3211214 (diff) |
Revert "Suppression de «gtk-3.0/img/border-focused-ptb.svg»"
This reverts commit 78d2d31fa20fa230d1b5dce7ae6c6de223dfa174.
Diffstat (limited to 'gtk-3.0')
-rw-r--r-- | gtk-3.0/gtk-widgets-img.css | 10 | ||||
-rw-r--r-- | gtk-3.0/gtk-widgets.css | 18 | ||||
-rw-r--r-- | gtk-3.0/gtk.css | 14 | ||||
-rw-r--r-- | gtk-3.0/img/border-focused-ptb.svg | 98 |
4 files changed, 140 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="16px" + height="16px" + id="svg33222" + version="1.1" + inkscape:version="0.48.3.1 r9886" + sodipodi:docname="border-focused-2.svg"> + <defs + id="defs33224"> + <linearGradient + id="linearGradient3837"> + <stop + style="stop-color:#ffffff;stop-opacity:1;" + offset="0" + id="stop3839" /> + <stop + style="stop-color:#ffffff;stop-opacity:0;" + offset="1" + id="stop3841" /> + </linearGradient> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#8e8e8e" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="1" + inkscape:pageshadow="2" + inkscape:zoom="44.5625" + inkscape:cx="8" + inkscape:cy="8" + inkscape:current-layer="layer1" + showgrid="false" + inkscape:grid-bbox="true" + inkscape:document-units="px" + inkscape:window-width="1280" + inkscape:window-height="949" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:snap-nodes="false" + inkscape:snap-bbox="true" + inkscape:showpageshadow="false" + showborder="false"> + <inkscape:grid + type="xygrid" + id="grid2992" + empspacing="5" + visible="true" + enabled="true" + snapvisiblegridlinesonly="true" /> + </sodipodi:namedview> + <metadata + id="metadata33227"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + id="layer1" + inkscape:label="Layer 1" + inkscape:groupmode="layer"> + <rect + ry="2.5" + rx="2.5000005" + y="0.5" + x="0.5" + height="13.999999" + width="15" + id="rect17861" + style="color:#000000;fill:none;stroke:#869bb7;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" /> + <rect + ry="1.5" + rx="1.5" + y="1.5" + x="1.5" + height="12" + width="13.000001" + id="rect17861-6" + style="color:#000000;fill:none;stroke:#cccccc;stroke-width:0.99999994000000003;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;opacity:0.25" /> + </g> +</svg> |