← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1355046] [NEW] Colourized icon with invalid source is black

 

Public bug reported:

Given the code:

import QtQuick 2.2
import Ubuntu.Components 1.1

Item {
    width: 50
    height: 50

    Icon {
        id: icon
        width: 20
        height: 20
        source: "invalid"
        color: "red"

        anchors.centerIn: parent
    }
}

The Icon is black, because the shader has no source to operate on. It
should probably cough up completely transparent pixels instead?

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: qtdeclarative5-ubuntu-ui-toolkit-plugin 1.1.1181+14.10.20140806-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-6.11-generic 3.16.0-rc7
Uname: Linux 3.16.0-6-generic x86_64
NonfreeKernelModules: wl nvidia
ApportVersion: 2.14.5-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Aug 11 09:47:22 2014
SourcePackage: ubuntu-ui-toolkit
SystemImageInfo: Error: [Errno 2] Nie ma takiego pliku ani katalogu: 'system-image-cli'
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug utopic

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1355046

Title:
  Colourized icon with invalid source is black

Status in “ubuntu-ui-toolkit” package in Ubuntu:
  New

Bug description:
  Given the code:

  import QtQuick 2.2
  import Ubuntu.Components 1.1

  Item {
      width: 50
      height: 50

      Icon {
          id: icon
          width: 20
          height: 20
          source: "invalid"
          color: "red"

          anchors.centerIn: parent
      }
  }

  The Icon is black, because the shader has no source to operate on. It
  should probably cough up completely transparent pixels instead?

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: qtdeclarative5-ubuntu-ui-toolkit-plugin 1.1.1181+14.10.20140806-0ubuntu1
  ProcVersionSignature: Ubuntu 3.16.0-6.11-generic 3.16.0-rc7
  Uname: Linux 3.16.0-6-generic x86_64
  NonfreeKernelModules: wl nvidia
  ApportVersion: 2.14.5-0ubuntu4
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Mon Aug 11 09:47:22 2014
  SourcePackage: ubuntu-ui-toolkit
  SystemImageInfo: Error: [Errno 2] Nie ma takiego pliku ani katalogu: 'system-image-cli'
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1355046/+subscriptions


Follow ups

References