views:

270

answers:

2

I have created an icon for my WP7 application. The icon got a transparent background and the theme on my WP7 device is set to the blue theme. When deployed to the device my icon got a dark gray background instead of the blue from the theme.

Any ideas how to adopt the theme background color as background to the application icon?

+1  A: 

Icons used for tiles support transparency but those used in the application list don't - disappointingly.

Matt Lacey
OK, damn! Do you have any insight if this is planned in next release?
xamlgeek
No insight but I hope it comes in a future release too though
Matt Lacey
I noticed this too as a Tile it means you get Accent Colour consitency for the application tile, but not for the app list, even some Microsoft examples have the blue colour as the app list icon, even though it will look odd when the accent colour is changed.
RoguePlanetoid
The solutions is to not attempt to use the accent color in the app icon. t least, for now.
Matt Lacey
+1  A: 

Microsoft hidden the support for it. It requires the use of the namespace "http://dbPreProvisioning", and the TemplateType2 which both aren't available to developers.

Try for example, to use the following IconPath:

<IconPath IsRelative="false" IsResource="true">res://StartMenu!AppIconSettings.png</IconPath>

Here you can see the icon is the same as the Settings icon above, but the transparency isn't applied.

There's also a "UsePlatformTheme" property in the native Microsoft version

<Provisioning
    xmlns="http://dbPreProvisioning"
    RuntimeType="Native"
    Title="Settings"
    Version="1.0"
    Genre=""
    ProductID="{5B04B775-356B-4AA0-AAF8-6491FFEA5601}"
    UsePlatformTheme="true"
    SingleInstanceHost="true">

    <IconPath xmlns="">res://StartMenu!AppIconSettings.png</IconPath>

    ...snip...
Claus Jørgensen