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

Adapted logo for pixel perfect rendering at smol sizes #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

notCalle
Copy link

@notCalle notCalle commented Oct 6, 2020

I wanted to have Zig file icons in Sublime Text, adding a Zig logo to the FileIcons package. They use automated rendering from .svg to 16x16 .png icons (+ @2x, @3x) for inlining with file names, which got blurry illegible results when I tried the regular zig logo.

This is an adaption of the Zig logo for pixel perfect rendering at any multiples of 16x16, making sure that the vertical and horizontal bars are pixel aligned, and opening the zlanted cuts to match. This makes a lighter version of the logo with thinner bars, and wider cuts. The aspect ratio had to change slightly to keep pixel alignment.

I did the adaption based on the logo on the zig documentation pages, not realizing the straight cuts at the ends are slanted in the current logos. The pixel perfect straight cuts gives a crisp look at 16x16, but with the widened cuts it might still work in a slanted version.

I'll await acceptance of this adaption here before submitting a PR with sublime-FileIcons.

This is an adaption of the logo for pixel perfect rendering at any
multiples of 16x16.
@daurnimator
Copy link

daurnimator commented Oct 6, 2020 via email

@notCalle
Copy link
Author

notCalle commented Oct 6, 2020

The three sizes rendered by FileIcons

These are all intended for an optical size of 16x16, but the latter are used on high DPI displays, for finer details.

  • 16x16
    file_type_zig
  • 16x16@2x
    file_type_zig@2x
  • 16x16@3x
    file_type_zig@3x

Inline with file names in Sublime Text

  • Regular DPI display
    regular
  • High DPI display@2x
    retina

@notCalle
Copy link
Author

notCalle commented Oct 6, 2020

Also would it be reasonable to use an svg media query to combine with the existing svg?

I can give it a try, and see what I can make of it.

@notCalle
Copy link
Author

notCalle commented Oct 7, 2020

Looking more closely at the new zig-mark.svg design to see how I can combine with a media query, it's actually really close to being possible to render pixel perfect at 16x16.

Redraw of the thinned icon version, more closely matching the regular zig-mark.

zig-icon v2

zig-icon
zig-icon@2x
zig-icon@3x

image

zig-mark

zig-mark
zig-mark@2x
zig-mark@3x

image

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