Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Applying 'allowsVibrancy' from AppKit under OS X 10.10 (Yosemite) on desired QML object types
Forum Updated to NodeBB v4.3 + New Features

Applying 'allowsVibrancy' from AppKit under OS X 10.10 (Yosemite) on desired QML object types

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrtypography
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrtypography
        wrote on last edited by
        #3

        [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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Sure it's worth, nothing wrong in asking good questions :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mrtypography
            wrote on last edited by
            #5

            Cool, great. Maybe I'll get lucky? I'm taking your advice into consideration and trying for help/tips via IRC, too.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved