{"id":40347,"date":"2023-08-15T15:35:57","date_gmt":"2023-08-15T19:35:57","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=40347"},"modified":"2023-08-16T10:29:43","modified_gmt":"2023-08-16T14:29:43","slug":"toolbar-sf-symbols-vertically-stretched-on-a-1x-display","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2023\/08\/15\/toolbar-sf-symbols-vertically-stretched-on-a-1x-display\/","title":{"rendered":"Toolbar SF Symbols Vertically Stretched on a 1x Display"},"content":{"rendered":"<p><a href=\"https:\/\/micro.virtualsanity.com\/2023\/08\/11\/macos-bug-toolbar.html\">John Brayton<\/a>:<\/p>\n<blockquote cite=\"https:\/\/micro.virtualsanity.com\/2023\/08\/11\/macos-bug-toolbar.html\">\n<p>Toolbar images based on SF Symbols are vertically stretched when displayed on a 1x display. I filed this as <code>FB12928137<\/code>, but wanted to let other developers know. This is tricky because the effect is subtle and because developers without a 1x display will not see the issue. I worked around it by exporting the SF Symbols as 37-point images and putting them in PDFs in the asset catalog. I made each image 55x55, and centered the symbol graphic inside it.<\/p>\n<p>[&#8230;]<\/p>\n<p>You can see the effect in the Settings windows of Apple apps, including Apple Mail and Messages.<\/p>\n<\/blockquote>\n<p>I noticed this a while ago in Safari and Mail, and now I can&rsquo;t unsee it. I&rsquo;m glad that he wrote up the bug.<\/p>\n<p>There are a lot of little glitches like this with 1x displays, and especially when you have both a 1x display and a Retina display connected. Checkboxes in tables sometimes look weird, icons don&rsquo;t draw using the proper representation, etc.<\/p>\n\n<p><a href=\"https:\/\/mastodon.social\/@marioguzman\/110891461456884337\">Mario Guzm&aacute;n<\/a>:<\/p>\n<blockquote cite=\"https:\/\/mastodon.social\/@marioguzman\/110891461456884337\"><p>Top&#8230; the 1x rendering of sidebar icons in Apple TV app on macOS.<\/p><p>Bottom, my MiniPlayer with custom drawing (yes, you can use images too if you want)&#8230;<\/p><p>Both screenshots rendered on a non-retina display aka @ 1x.<\/p><p>But you can see how if you really care about your app, your icons could be great in both 1x and 2x. Best align to nearest pixel where possible otherwise they look so blurry and marred.<\/p><\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2018\/07\/13\/macos-10-14-mojave-removes-subpixel-anti-aliasing\/\">macOS 10.14 Mojave Removes Subpixel Anti-aliasing<\/a><\/li>\n<\/ul>\n\n<p id=\"toolbar-sf-symbols-vertically-stretched-on-a-1x-display-update-2023-08-16\">Update (2023-08-16): <a href=\"https:\/\/twitter.com\/gingerbeardman\/status\/1539963156570820608\">Matt Sephton<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/gingerbeardman\/status\/1539963156570820608\"><p>I&rsquo;m running a non-retina external display again&mdash;needs must&mdash;and I&rsquo;m reeling from the lack of attention given to user interface elements in macOS and across Apple&rsquo;s own apps.<\/p><ul><li>Finder search button (squished)<\/li><li>Safari refresh page button (squished and badly positioned)<\/li><\/ul><p>But most freaky is when switching back to the icon view in System Preferences, where the retina icons are briefly visible before they are all swapped out for the non-retina. Jarring.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/Sam_Ohanaware\/status\/1684043749507358721\">Sam Rowlands<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/Sam_Ohanaware\/status\/1684043749507358721\"><p>I mean seriously&#8230; 3 Trillion dollars and you can&rsquo;t even align icons in the center of the circle.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>John Brayton: Toolbar images based on SF Symbols are vertically stretched when displayed on a 1x display. I filed this as FB12928137, but wanted to let other developers know. This is tricky because the effect is subtle and because developers without a 1x display will not see the issue. I worked around it by exporting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2023-08-15T19:36:00Z","apple_news_api_id":"7e5b33f7-7aca-455a-9d3c-d2074c865a2c","apple_news_api_modified_at":"2023-08-16T14:29:45Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/Aflsz93rKRVqdPNIHTIZaLA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[126,131,30,2223,141,659,71,83,103,1822,1590],"class_list":["post-40347","post","type-post","status-publish","format-standard","hentry","category-technology","tag-applemail","tag-bug","tag-mac","tag-macos-13-ventura","tag-messages","tag-multiple-displays","tag-programming","tag-retina","tag-safari","tag-sf-symbols","tag-tv-app"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/40347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=40347"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/40347\/revisions"}],"predecessor-version":[{"id":40361,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/40347\/revisions\/40361"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=40347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=40347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=40347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}