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 logo #877

Merged
merged 5 commits into from
Aug 29, 2018
Merged

Fix logo #877

merged 5 commits into from
Aug 29, 2018

Conversation

brlin-tw
Copy link
Contributor

@brlin-tw brlin-tw commented Aug 25, 2018

The current logo has some issues:

  • No known practice to keep the formatting when modified
  • Contains attributes that are not relevant to the graphics, but will make plaintext diffing difficult
  • Aspect ratio not 1:1
  • Dimension(side length) not in base 2

This PR addresses most of the problems and resizes the logo to 512x512px, most graphical details are kept approximately intact.

screenshot_20180826_004105

Allow XML formatters to reindent SVG's markup content.

Refer-to: xmllint failed to properly `--format` certain SVG image (#16)
· Issues · GNOME / libxml2 · GitLab
<https://gitlab.gnome.org/GNOME/libxml2/issues/16>
Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
Using known formatter to allow future modifications.

Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
Eliminate attributes that are only local machine relevant, privacy
leaking and simply not useful for diff-ing.

The tool used to do the job is a personal project "Clean Filter for SVG"
and is accessible at https://github.com/Lin-Buo-Ren/Clean-Filter-for-SVG
, the actual code that do the XML processing: [1].  HTML Tidy must be run
with the contrib/svg.tidy config to restore the current markup style.

[1] https://github.com/Lin-Buo-Ren/Clean-Filter-for-SVG/blob/0ff326b/Clean%20Filter%20for%20SVG.bash#L351-L432

Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
* Fix aspect ratio to 1:1
* Use base-2 side length

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
@brlin-tw
Copy link
Contributor Author

brlin-tw commented Aug 25, 2018

The markup formatting tool, Tidy, can be installed on most GNU+Linux distributions via the snap:
https://snapcraft.io/tidy

tidy -modify -config contrib/svg.tidy share/git-cola/icons/git-cola.svg

davvid added a commit to davvid/git-cola that referenced this pull request Aug 29, 2018
* Lin-Buo-Ren/fix-icon:
  logo: Make logo 512x512px
  logo: Drop unnecessary attributes
  logo: Reformat SVG markup using HTML Tidy
  contrib: Implement HTML Tidy config for SVG formatting/cleanup
  logo: Drop xml:space attribute

Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid davvid merged commit 2f6e6cb into git-cola:master Aug 29, 2018
@brlin-tw brlin-tw deleted the fix-icon branch August 29, 2018 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants