Set Background of ToastNotification - windows-8

I want to know that how we can change the background color for the toast notification in Windows Metro (or Desktop) app.
Thanks in advance.

Foreground:
You can set "Foreground text" in you app manifest to dark or light.
Background:
This follows the "Background color" of the app manifest - and hence will be the same as the app's tile background.
For most of the apps I've worked on, it's enough to set the tile color according the UI spec - and then set the 'foreground text' to light or dark. You can surely override the light/dark themes if you want to too.

For desktop apps, the background color used on toast notifications (and Start screen tiles) is not configurable by the app itself. The color for the tiles is determined by the Start screen color theme chosen by the user (PC Settings -> Personalize -> Start screen), and the color of the background of toast notifications is always gray (when not in a high-contrast theme).

I think it always use the color that is specified in your manifest file. So to change the color, you have to change the color of your whole application.

Related

How to change Appearance mode on iOS programmatically?

On my react-native app I implemented dark mode, but this only is managed locally on my app using redux. On my iOS Splashscreen I implemented dark mode too.
The problem is, when I switch to dark mode locally(redux), the design on my app changes, everything is ok, but not the Splashscreen. I realized that only when I change the Appearance settings (Settings -> Developer -> Dark Appearance) to dark Mode, Splashscreen mode changes too.
I know that I can base it on user preferences to change to dark or light mode the app, but I need to control this locally and the dark mode apply on my app and Splashscreen also. Is this possible?
So, I guess, I need to change somehow the "Dark Appearance" programmatically. How can I get this?
You can try using react-native-appearance-control. Combine this with the Appearance API in react-native, and you can implement a dark mode toggle that the user can interact with.
See a similar question here which might help to guide you - Change colors of the whole app in react native

How to change the app icon background color in react-native for android

Please how do I properly change the default background color of app icon which is white to a one of my choice?
I'm using React-native 0.62
if your icon has already a white background you are not able to change that from the app,if you want to do that it need some complicated border detecting and then you can change it!, you need to modify changes outside of app, or just make its background transparent with Photoshop then use and give background to its parent.
i hope it helps

Set Background color of ApplicationPage Windows Phone

My Windows phone application working fine with dark color scheme but When the device's theme is set to light my background become white due to that my buttons disappear. How can i set my app background to black even device theme is light???
Try this:
find LayoutRoot and set the Background to your choice of color.
<Grid x:Name="LayoutRoot" Background="Black">
Please see the response at How to stop an (InputScope = Number) textbox from disappearing when it gains focus? for more information on templating controls to override the default system theme.
Also note that I recommend not doing this for the sake of forcing light or dark theme. Unless you've got your own custom branding / color scheme, this is a lot of work and could be annoying / confusing to the user.

Set color for desktop application's start screen shortcut

Metro applications can have a colour set, which appears on their shortcut on the start screen, and also on any dialogs and UI elements, so users can recognise the application, for example helping them associate toasts with the source application quickly.
So far so good. Traditional shortcuts to desktop applications also appear on the start screen. They don't have a colour, and any toast notifications they send have a grey background. Microsoft's own applications such as VS2012, redone in semi-metro-style, also have a colourless start screen tile.
How can a colour be set for the start screen shortcut, or toast notifications, for a desktop application?
For desktop apps, the background color used on Start screen tiles and toast notifications is not configurable by the app itself. The color is determined by the Start screen color theme chosen by the user (PC Settings -> Personalize -> Start screen).
For the toast notifications, here are some resources:
Quickstart: Sending a toast notification from the desktop: http://msdn.microsoft.com/en-us/library/windows/apps/hh802768.aspx
Sending toast notifications from desktop apps sample: http://code.msdn.microsoft.com/windowsdesktop/sending-toast-notifications-71e230a2
I hope this helps with notifications!
--ed

Live tile background changing windows 8

I created a live tile, but I don't know how to change the background color. This is Windows 8 and C#.
The Background color of the Tile is defined in manifest configuration of your app.
You can change the color of your tile in Package.appxmanifest "Tile>Background Color"