Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TVG rendering #124

Merged
merged 2 commits into from Oct 10, 2018
Merged

Fix TVG rendering #124

merged 2 commits into from Oct 10, 2018

Conversation

felix-schwarz
Copy link
Contributor

@felix-schwarz felix-schwarz commented Oct 9, 2018

  • Extend TVG and MakeTVG with new "viewBox" attribute
  • Extend TVGImage to support "viewBox" attribute to correctly render whitespace on the right and bottom of vector images (was previously not honored)

bildschirmfoto 2018-10-09 um 13 06 40

- Extend TVGImage to support "viewBox" attribute to correctly render whitespace on the right and bottom of vector images (was previously not honored)
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov
Copy link

codecov bot commented Oct 9, 2018

Codecov Report

Merging #124 into master will increase coverage by 0.11%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #124      +/-   ##
==========================================
+ Coverage   29.63%   29.74%   +0.11%     
==========================================
  Files          64       64              
  Lines        5669     5678       +9     
==========================================
+ Hits         1680     1689       +9     
  Misses       3989     3989
Impacted Files Coverage Δ
ownCloud/Theming/TVG/TVGImage.swift 82.6% <100%> (+1.47%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 063a721...70400f3. Read the comment docs.

@jesmrec
Copy link
Contributor

jesmrec commented Oct 9, 2018

Only one detail about pic's thumbnails:

screen shot 2018-10-09 at 16 16 19

they fit cell height without padding. Comparing with same view in web UI:

screen shot 2018-10-09 at 16 19 01

maybe it is something to do in a different issue/PR

CC @felix-schwarz

@felix-schwarz
Copy link
Contributor Author

felix-schwarz commented Oct 9, 2018

@jesmrec That's actually unrelated to SVG/TVG rendering.

The thinking between showing icons and thumbnails that led to this choice is this:

  • icons that are as large as the thumbnails feel huge and (to me, at least) don't feel right to the point that it looks like a bug
  • thumbnails as small as the icons feel too small and offer too little space to be of much use

That's why, right now, the app displays icons at a smaller size than thumbnails. I'm of course open to change and discussing this in a separate issue.

@jesmrec
Copy link
Contributor

jesmrec commented Oct 10, 2018

i did not think in a bug for such behaviour, for me it is ok to discuss in a new issue.

This one is approved on my side.

@jesmrec jesmrec added this to the 0.1.0 milestone Oct 10, 2018
@jesmrec jesmrec added the Approved by QA Approved by QA label Oct 10, 2018
@jesmrec jesmrec merged commit 30ee58d into master Oct 10, 2018
@jesmrec jesmrec deleted the fix/tvgDimensions branch October 10, 2018 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved by QA Approved by QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants