I working with my app. I saw people hub change color when i change theme in settings. And it worked too with my ApplicationBar. But i don't know how to do like this with my grid app ( at the default mode, background can't change until i quit and open this app again.
There seems to be a known issue relating to this particular behaviour :-
Is there a bug when changing themes when app is deactivated and reactivated in Windows Phone Mango
Related
I'm from Ukraine, so I immediately apologize for my crooked English. I got one very incomprehensible problem with which I can not figure it out. I have created a mobile application for Android and IOS. Absolutely normal application. I tested it on the emulator on several phones. But on one of them, the app didn't look like itself. For some reason it became dark and looked strange (I attached the screenshots). The normal version is white-green, this version was dark. I can't figure out what is the reason. Immediately I will say that the phone is normal and the light theme is enabled on it, the phone has standard settings. And everything else on this phone except this application is displayed normally. Please tell me what is the reason
I tried to change the themes and settings of the phone, and found out that the problem is definitely not in them
enter image description here
I thought this would be easy but I haven't been able to find an answer yet. I'm building an app using Quasar Framework, which uses Electron to build desktop apps. It seems that when my MacOS uses a dark theme, the Electron app will also automatically start up with the dark theme (e.g. black page background), which messes up the styling of the app. I want to ensure that the app always starts up with the light theme.
I thought that to enable support for system theming you'd need to change a setting in the config. But it turned out that this doesn't seem to be the case since I didn't change anything and I also couldn't find any related setting via a search.
Hi the app I'm developing uses the current system theme resources for what to display, but I'd also like to create 2 additional themes. My questions are what is a good way of doing this programatically, and what would the standard GUI be like to do this? Currentl my app is just a single page/window and would like to avoid using a settings page unless that would be how it's typically done. Thanks!
P.S. - I'm new to Windows Phone and have never actually used anything besides the emulator, so I don't have any exerience using any apps on that platform.
Create your own resources to do that.
Usually on a Windows Phone app we use resources like PhoneAccentBrush for the main accent and PhoneBackgroundBrush for the background theme.
For more info on how to acomplish this check out this link
I heard that Microsoft refuse app's which unreadable in the "night mode" whatever it is? I mean when the phone goes into night mode all the color fonts are changed and that makes app unusable, then they reject the app.
I nave to submit RSS app and I do not know even what I have to watch out about that night mode. Please introduce me.
I suspect that what you mean is "light theme" mode. There are a lot of useful comments about this on this other thread. Windows Phone 7.1 Light/Dark themes management.
From my own personal experience, this is a bit of a headache. If your app isn't very stylistic, try to use the built-in colours for all your controls and whatever you do don't put an image background on it (that was my downfall).
Edit: This is under windows 7.1 RC. (This code did work for 7.0)
Lets say we open the application up in the dark theme. A line of code to detect this would be as follows:
isDarkTheme = (Visibility.Visible == (Visibility)Application.Current.Resources[StringResource.PhoneDarkThemeVisbility]);
In this case, isDarkTheme will be true.
Now hit the windows key, change your theme to light theme. and hit the back button to go back to your application. Run the following line of code again (in your activated event)
isDarkTheme = (Visibility.Visible == (Visibility)Application.Current.Resources[StringResource.PhoneDarkThemeVisbility]);
Apparently isDarkTheme is still true even though we switched themes. Has anyone else ran into this problem or am I using an older way to check the current theme?
This is a known issue. The theme is applied to your application when it starts, so only then you are able to correctly detect whether the light or dark setting is used. Otherwise, you are stuck with the old theme until the application restarts.
That being said, it is unlikely that the user will reproduce this behavior. If he switched from your app to phone settings, chances are he is not going back via the back button.