{"id":35768,"date":"2022-05-04T19:47:00","date_gmt":"2022-05-04T23:47:00","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=35768"},"modified":"2022-05-04T19:47:00","modified_gmt":"2022-05-04T23:47:00","slug":"periodic-table-of-nsvisualeffectview","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/05\/04\/periodic-table-of-nsvisualeffectview\/","title":{"rendered":"Periodic Table of NSVisualEffectView"},"content":{"rendered":"<p><a href=\"https:\/\/blog.eternalstorms.at\/2022\/04\/29\/development-journal-screenfloat-2-entry-3-busy-doing-nothing\/\">Matthias Gansrigler<\/a>:<\/p>\n<blockquote cite=\"https:\/\/blog.eternalstorms.at\/2022\/04\/29\/development-journal-screenfloat-2-entry-3-busy-doing-nothing\/\">\n<p>While working on that feedback panel that comes up when resizing a shot, or changing its transparency (see above), I needed an overview of the different appearances an <code>NSVisualEffectView<\/code> can have.<\/p>\n<p>During testing, I discovered that <code>NSVisualEffectView<\/code> accepts material values from 0-37, of which only a few are documented.<\/p>\n<p>With that in mind, this sample app shows 152 <code>NSVisualEffectView<\/code>s. 76 light, 76 dark, each consisting of 38 vibrant and 38 non-vibrant variants. Some of them look like they produce duplicate results, but all I needed was a brute-force way of showing all variants at once for comparison, so I didn&rsquo;t bother filtering out anything.<\/p>\n<p>You can <a href=\"https:\/\/eternalstorms.at\/blog\/NSVisualEffectViewMaterialTester.zip\">download the source code here<\/a>, if you&rsquo;d like to play around with it yourself.<\/p>\n<\/blockquote>\n\n<p>See also: <a href=\"https:\/\/stackoverflow.com\/questions\/72092445\/how-to-get-default-darkmode-tinted-colors-of-nswindow-titlebar-and-content-vie\">Todd Ditchendorf<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Matthias Gansrigler: While working on that feedback panel that comes up when resizing a shot, or changing its transparency (see above), I needed an overview of the different appearances an NSVisualEffectView can have. During testing, I discovered that NSVisualEffectView accepts material values from 0-37, of which only a few are documented. With that in mind, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-05-04T23:47:05Z","apple_news_api_id":"7a5b0197-2abf-4f53-920f-a2cd48cfc966","apple_news_api_modified_at":"2022-05-04T23:47:05Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AelsBlyq_T1OSD6LNSM_JZg","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":[4],"tags":[69,566,30,2077,74,71],"class_list":["post-35768","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-color","tag-mac","tag-macos-12","tag-opensource","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/35768","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=35768"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/35768\/revisions"}],"predecessor-version":[{"id":35769,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/35768\/revisions\/35769"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=35768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=35768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=35768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}