Applying 'allowsVibrancy' from AppKit under OS X 10.10 (Yosemite) on desired QML object types
-
With the release of OS X 10.10 Yosemite, Apple updated the NSAppearance object to allow designers and developers the option of enabling 'allowsVibrancy' on any given portion of an application under 10.10.
See Apple's documentation: https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSAppearance_Class/#//apple_ref/occ/instp/NSAppearance/allowsVibrancy
What is allowsVibrancy? allowsVibrancy will enable transparency on a specified portion of a user interface for OS X 10.10 applications, bringing the overall user experience of the application more in line with Apple's Yosemite design guidelines. Note: this is not required at all, but merely provided to designers and developers as an option to introduce dynamic colors into an application.
allowsVibrancy should not appear if the user has checked "Reduce transparency" under System Preferences > Accessibility > Display > Reduce Transparency.
Has anyone successfully implemented this with QML object types?
I'd like to prototype in QML and experiment with including AppKit and using allowsVibrancy, but I'm not sure how to enable it for a given QML object (e.g. Rectangle { ... } ) or specific ID (e.g. ListView { id: testVibrancy; ... } )Here's an example of allowsVibrancy when implemented:
!https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSVisualEffectView_Class/Art/main_article_2x.png(allowsVibrancy from Apple's Developer docs)!If anyone has pointers on how to include AppKit correctly and in performant way, but also enable allowsVibrancy in a straightforward, dead-simple example for a QML-based app, I'd love some guidance.
-
Hi and welcome to devnet,
Look at the scope of your question, i'd recommend asking on the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented) IRC might also be a good place
-
[quote author="SGaist" date="1414793408"]Hi and welcome to devnet,
Look at the scope of your question, i'd recommend asking on the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented) IRC might also be a good place[/quote]
Thanks for the tips, SGaist. I'll try those locations. I was concerned this might be overly specific for this forum, but felt it was worth trying just in case someone knew of an answer.
-
Sure it's worth, nothing wrong in asking good questions :)
-
Cool, great. Maybe I'll get lucky? I'm taking your advice into consideration and trying for help/tips via IRC, too.