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

Generate small and large logos at 4x resolution #2233

Merged
merged 1 commit into from
Jul 30, 2017

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Jul 30, 2017

To support High-DPI displays, generate the logos at 4 times their displayed resolution, which should be enough to support all current devices according to https://material.io/devices/.

This works because the CSS of Semantic UI and the img-* classes downscale the images to correct CSS dimensions. The base dimensions of 220px and 30px of the images were chosen based on Semantic UI's .logo and .ui.mini.image dimensions.

Samples of the header image from my screen which is roughly 2 dppx, before and after:

To support High-DPI displays, generate images at 4 times their displayed
resolution, which should be enough to support all current devices
according to https://material.io/devices/.
@appleboy
Copy link
Member

LGTM

@bkcsoft bkcsoft added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jul 30, 2017
@lunny lunny added type/enhancement An improvement of existing functionality and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 30, 2017
@lunny lunny added this to the 1.2.0 milestone Jul 30, 2017
@Bwko
Copy link
Member

Bwko commented Jul 30, 2017

LGTM

@bkcsoft bkcsoft added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Jul 30, 2017
@lafriks lafriks merged commit d74d8ec into go-gitea:master Jul 30, 2017
@silverwind silverwind deleted the hires-logo branch July 30, 2017 20:18
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants