WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
169696
Web Inspector: WebSockets: Update Arrow Up icon to fit in with the rest of our iconography
https://bugs.webkit.org/show_bug.cgi?id=169696
Summary
Web Inspector: WebSockets: Update Arrow Up icon to fit in with the rest of ou...
Nikita Vasilyev
Reported
2017-03-15 14:23:31 PDT
Created
attachment 304547
[details]
[Image] With patch applied Also, use half pixel values to make to more non-retina friendly.
Attachments
[Image] With patch applied
(42.04 KB, image/png)
2017-03-15 14:23 PDT
,
Nikita Vasilyev
no flags
Details
Patch
(2.30 KB, patch)
2017-03-15 14:25 PDT
,
Nikita Vasilyev
mattbaker
: review+
Details
Formatted Diff
Diff
Patch
(2.27 KB, patch)
2017-03-15 17:17 PDT
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-03-15 14:23:47 PDT
<
rdar://problem/31073748
>
Nikita Vasilyev
Comment 2
2017-03-15 14:25:12 PDT
Created
attachment 304548
[details]
Patch
Nikita Vasilyev
Comment 3
2017-03-15 14:26:27 PDT
Via
https://bugs.webkit.org/show_bug.cgi?id=169011#c6
> Based on the screenshot this icon doesn't really fit in with the rest of our iconography. Compare to other arrows (download arrow, step arrows, gc button arrows, network tab icon arrows). We should file a follow-up to improve on this icon.
Matt Baker
Comment 4
2017-03-15 14:59:57 PDT
Comment on
attachment 304548
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=304548&action=review
r=me, looks nice and clean! Why is it necessary to specify the stroke width? Is it possible to do so in CSS?
> Source/WebInspectorUI/UserInterface/Images/ArrowUp.svg:5 > + <path stroke="currentColor" stroke-width="1px" fill="none" d="M7.5,13V4"/>
Style: most (all?) of the Inspector SVGs use space-delimited path data.
Nikita Vasilyev
Comment 5
2017-03-15 15:27:55 PDT
(In reply to
comment #4
)
> Comment on
attachment 304548
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=304548&action=review
> > r=me, looks nice and clean! > > Why is it necessary to specify the stroke width? Is it possible to do so in > CSS?
Yes, it is possible to specify `stroke-width` in CSS, as well as `stroke` and `fill`, e.g.: <style> path { stroke: currentColor; stroke-width: 2px; fill: none; } </style> Is this what you want me to do?
> > > Source/WebInspectorUI/UserInterface/Images/ArrowUp.svg:5 > > + <path stroke="currentColor" stroke-width="1px" fill="none" d="M7.5,13V4"/> > > Style: most (all?) of the Inspector SVGs use space-delimited path data.
This is a Photoshop output. I need to write a code style script for this :/
Matt Baker
Comment 6
2017-03-15 16:00:03 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > Comment on
attachment 304548
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=304548&action=review
> > > > r=me, looks nice and clean! > > > > Why is it necessary to specify the stroke width? Is it possible to do so in > > CSS? > > Yes, it is possible to specify `stroke-width` in CSS, as well as `stroke` > and `fill`, e.g.: > > <style> > path { > stroke: currentColor; > stroke-width: 2px; > fill: none; > } > </style> > > Is this what you want me to do?
I think it makes sense for `fill: none` to be baked directly into the SVG file, since the arrowhead isn't meant to be solid. You can style the other properties in WebSocketContentView.css, since the SVG is created with useSVGSymbol. However, I think you can drop the stroke-width and default color. Why is it 2px for GTK?
> > > Source/WebInspectorUI/UserInterface/Images/ArrowUp.svg:5 > > > + <path stroke="currentColor" stroke-width="1px" fill="none" d="M7.5,13V4"/> > > > > Style: most (all?) of the Inspector SVGs use space-delimited path data. > > This is a Photoshop output. I need to write a code style script for this :/
I recall using a WebKit script for cleaning up SVG files, but can't find it. We should only need: <?xml version="1.0"?> <!-- Copyright © 2017 Apple Inc. All rights reserved. --> <svg xmlns="
http://www.w3.org/2000/svg
" id="root" version="1.1" viewBox="0 0 16 16"> <path stroke="currentColor" fill="none" d="M 3.5 7.5 L 7.5 3.5 l 4 4"/> <path stroke="currentColor" fill="none" d="M 7.5 13 V 4"/> </svg>
Nikita Vasilyev
Comment 7
2017-03-15 17:17:07 PDT
Created
attachment 304585
[details]
Patch
Nikita Vasilyev
Comment 8
2017-03-15 17:20:53 PDT
(In reply to
comment #6
)
> (In reply to
comment #5
) > > (In reply to
comment #4
) > > > Comment on
attachment 304548
[details]
> > > Patch > > > > > > View in context: > > >
https://bugs.webkit.org/attachment.cgi?id=304548&action=review
> > > > > > r=me, looks nice and clean! > > > > > > Why is it necessary to specify the stroke width? Is it possible to do so in > > > CSS? > > > > Yes, it is possible to specify `stroke-width` in CSS, as well as `stroke` > > and `fill`, e.g.: > > > > <style> > > path { > > stroke: currentColor; > > stroke-width: 2px; > > fill: none; > > } > > </style> > > > > Is this what you want me to do? > > I think it makes sense for `fill: none` to be baked directly into the SVG > file, since the arrowhead isn't meant to be solid. > > You can style the other properties in WebSocketContentView.css, since the > SVG is created with useSVGSymbol.
I don't think I can. What CSS selector would I use?
> Why is it 2px for GTK?
To match other GTK icons. They tend to be thicker.
WebKit Commit Bot
Comment 9
2017-03-15 18:01:10 PDT
Comment on
attachment 304585
[details]
Patch Clearing flags on attachment: 304585 Committed
r214021
: <
http://trac.webkit.org/changeset/214021
>
WebKit Commit Bot
Comment 10
2017-03-15 18:01:17 PDT
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 11
2017-03-15 19:17:23 PDT
Comment on
attachment 304585
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=304585&action=review
> Source/WebInspectorUI/UserInterface/Images/ArrowUp.svg:5 > + <path stroke="currentColor" fill="none" d="M3.5 7.5 L7.5 3.5 l4 4"/> > + <path stroke="currentColor" fill="none" d="M7.5 13 V4"/>
Normally we have spaces after the letters. So M, L, and V here.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug