Uh oh!
There was an error while loading. Please reload this page.
Use an SVG image for clipboard instead of unicode character - #85118
Conversation
rust-highfive
commented
May 9, 2021
Some changes occurred in HTML/CSS/JS. |
notriddle
commented
May 9, 2021
We should really switch to using an SVG sprite sheet for rustdoc icons, so all three icons can be loaded from one file, and so that we can inherit theme colors. |
GuillaumeGomez
commented
May 9, 2021
They currently keep their color, whatever the theme. |
Nemo157
commented
May 10, 2021
Nemo157
commented
May 10, 2021
GuillaumeGomez
commented
May 10, 2021
Oh right! Good catch! |
06bf2f9 to
7450f70CompareGuillaumeGomez
commented
May 10, 2021
Fixed all the mentionned issues. |
Nemo157
commented
May 10, 2021
Looks good enough to start, @notriddle do you wanna open an issue about maybe moving to an SVG sprite sheet? I guess the major thing that would need checking is browser compatibility. @bors r+ |
bors
commented
May 10, 2021
📌 Commit 7450f70 has been approved by |
…laumeGomez Rollup of 4 pull requests Successful merges: - rust-lang#84465 (rustdoc: Implement `is_primitive` in terms of `primitive_type()`) - rust-lang#85118 (Use an SVG image for clipboard instead of unicode character) - rust-lang#85148 (Fix source code line number display and make it clickable again) - rust-lang#85152 (Adjust target search algorithm for rustlib path) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
camelid
commented
May 11, 2021
GuillaumeGomez
commented
May 11, 2021
I voluntarily made it bigger actually. XD |
camelid
commented
May 11, 2021
So could you make it smaller again? ;) |
Nemo157
commented
May 11, 2021
Hmm, I don't see such a small icon on older docs, it looks like it's using system fonts so depends on what font is selected. That said the new icon definitely is a bit bigger, I kinda like something like dropping the border and reducing the opacity (with some kind of hover state). Having an inline "button" border looks quite weird to me. |
GuillaumeGomez
commented
May 11, 2021
Hum... Maybe @jsha has an opinion here? I personally don't mind changing to any of what was suggested so I'm definitely not the good person to pick one. |
jsha
commented
May 12, 2021
I like @Nemo157's proposal with the smallish, unobtrusive icon. |
GuillaumeGomez
commented
May 17, 2021
Giving it a try then! |
…provement, r=jsha Improve display for "copy-path" button, making it more discreet As suggested by `@Nemo157` [here](rust-lang#85118 (comment)):       r? `@jsha`









Linked to rust-lang/docs.rs#1394.
cc @jsha
r? @Nemo157