Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-6384

Export image opacity as property instead of baking it into the asset

    XMLWordPrintable

Details

    • QDS Berlin - 2022 Week 09/10, QDS Berlin - 2022 Week 11/12

    Description

      Currently opacity of an image is always baked into the asset on export. Instead we should be able to export them as qml property (maybe even as a settings option?).

       

      There are 2 ways of creating opacity in Figma: fill alpha and item opacity.
      1. Fill alpha functions as a alpha channel of a fill texture, so in some cases we can translate it as alpha value for solid colors or gradients. But for complex things like images, we bake it into the image itself, as we should. 
      2. Item opacity is similar to QML opacity, and for non-merged items, such as images, it should be preserved as customizable and dynamic property. 

      With 3.1, we already translate Figma opacity to normal QML opacity for most items, even for vectors containers, and only Images are left out with baked in value, so it's also a question of consistency.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              algerman Aleksei German
              algerman Aleksei German
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes