Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Converted source tree SVG's to images using CSS styles#4461

Closed
jselmani wants to merge 1 commit intofirefox-devtools:masterfrom
jselmani:Issue4350SourceTree
Closed

Converted source tree SVG's to images using CSS styles#4461
jselmani wants to merge 1 commit intofirefox-devtools:masterfrom
jselmani:Issue4350SourceTree

Conversation

@jselmani
Copy link

Associated Issue: #4350

Description

Converted the Source Tree SVG's to Images using CSS styles. This should have a significant performance improvement for the project as rendering of SVG's is no longer required. Can perhaps also close Issue #4168 should the improvement be significant enough.

In regards to the Webpack SVG, with so many different paths being filled different colours, converting to an image would likely not reflect the same image that is portrayed currently as it will all be one colour if changed.

Screenshots

Webpack SVG

webpacksvg

Fill Paths

fillpaths

.file,
.folder,
.domain {
background-color: var(--theme-splitter-color);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, why does this use background-color whereas before it used fill?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fill is used to fill in paths of SVG's that are loaded into a webpage whereas background color loads a color into the div.

With a mask being used over the div, the background color is what shows through the mask. Hope that helps @James300

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, that makes a lot of sense 👍

@jasonLaster
Copy link
Contributor

@jselmani mind sharing a screenshot?

@jselmani
Copy link
Author

Here they are @jasonLaster

Firefox

firefox

Chrome

chrome

@jselmani
Copy link
Author

Closing as new PR (#4477) was made to resolve these issues.

@jselmani jselmani closed this Oct 24, 2017
@jselmani jselmani deleted the Issue4350SourceTree branch October 24, 2017 00:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants