← Back to team overview

touch-packages team mailing list archive

[Bug 1378417] Re: Icon clipping in notification-renderer

 

The battery icon is clipped because it's not a square but a rectangle: the source file canvas is 105x90 px. The icon should be downsized while maintaining its aspect ratio. 
I am not sure if at the moment, the SDK allows to display an image which is not squared but I know that Sebastien Bacher wrote a hack to display the same icon in the indicator bar (and the system settings menu).

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1378417

Title:
  Icon clipping in notification-renderer

Status in “unity8” package in Ubuntu:
  Confirmed

Bug description:
  Discussed with MacSlow in #unity-touch earlier today.

  When indicator-power requests a "low battery" notification, the low
  battery icon gets clipped.

  Here's what it looks like:

  http://i.imgur.com/69hqWlL.jpg

  Here's what is sent to unity-notifications:

  method call sender=:1.104 -> dest=:1.55 serial=18 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
     string "indicator-power-service"
     uint32 0
     string "battery-020"
     string "Battery Low"
     string "10% charge remaining"
     array [
        string "dismiss"
        string "OK"
        string "settings"
        string "Battery settings"
     ]
     array [
        dict entry(
           string "x-canonical-non-shaped-icon"
           variant             string "true"
        )
        dict entry(
           string "x-canonical-snap-decisions"
           variant             string "true"
        )
        dict entry(
           string "x-canonical-snap-decisions-timeout"
           variant             int32 2147483647
        )
     ]
     int32 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1378417/+subscriptions


Follow ups

References