Changing the Accent Color in Windows Phone - windows-phone-8

How to set the active background color of the elements like button while clicking irrespective of the phone's current accent color?

There is a nice library for that in NuGet called Windows Phone Theme Manager. Type "theme manager" in the search box of NuGet manager window and you will find it.
Then all you have to do is add one line of code in App.xaml.cs file at the end of the constructor:
ThemeManager.SetAccentColor(AccentColor.Blue);
Blue is just an example. You can use any color.

Related

Xcode project navigator background color

When a window is active in xcode project navigator background color blue, and when two or more it is default. How to make that it was always defaulted?
http://imgur.com/a/B2VFr
There's two ways to change colors in Xcode.
First is the "Fonts & Colors" tab in Xcode's preferences, which look like this:
That doesn't change the color of the files in the Project Navigator, though. To do that, in System Preferences there's a tab helpfully named "General", you can change the settings for your system in it. Here's what it looks like for me now:
I chose "Graphite", and that changes selected files in the Project Navigator to have gray surrounding the filenames.
So, the problem was on the system side. The wallpapers color mixed with color of IDE. I reduced transparency. So that was it.

Styling Windows Phone 8.1/WinRT AppBarButton

I'm currently looking to implement a CommandBar for a WinRT Windows Phone 8.1 app. Overall it is very straightforward but I am unable to style the control.
I have themed my app so that the accent colour has been changed to green. This works well for pretty much everywhere in the app (buttons, textblocks etc.) but not for the AppBarButton.
The brushes I'm overriding are SystemColorControlAccentBrush and PhoneAccentBrush but changing these does not make any difference to the colour of the AppBarButton when pressed:
Any idea what I'm doing wrong/can this colour be changed?
Set the CommandBar's foreground and background colors.
The command bar on Windows Phone is system UI not app UI and does not allow customizing the colors of individual AppBarButtons. Their colors always come from the CommandBar's colors.
try changing app bar button color
<AppBarButton x:Uid="SendMessageButton" Icon="Send" Foreground="" Background="" Command="{Binding SendMessageCommand}" IsEnabled="{Binding IsSendMessageButtonEnabled}"/>
or change in code behind
AppBarButton app = new AppBarButton();
app.Foreground="";
app.Background="";

Inconsistent default button behavior in WP8.1 Universal versus Silverlight 8.1 / Windows 8.1 / earlier

Why is the default button visual behavior on click different in Windows Phone 8.1 "universal" apps? Is there some way to restore it to the behavior consistent with all other versions of Windows Phone/Windows 8 or do I need to create a new custom control?
Windows Phone 7/8/8.1 Silverlight/Windows 8.1: Button background flashes a complementary color based on theme, button stays fixed.
Windows Phone 8.1 "universal": Button background doesn't change color, tilt effect is applied to the button displacing it based on where the user has touched it.
I'm a beginner developer with some experience in developing WP7/WP8 apps, trying to make my first universal app for WP8.1/Windows 8.1. I verified this behavior in VS2013 Update 2 RC with a new Windows Store App, new WP8.1 Silverlight app, new WP8.1 universal app and one of my existing WP8 apps by just creating a new button object in xaml. Appreciate any help!
In my own test, the button does change color to the PhoneAccentBrush resource.
But if you want to remove the tilt effect, you should just edit the style of the button. Since you claim to be a beginner, I'll explain how to easily change the style using VS2013. Maybe you don't know this yet.
Right-click your Button in the designer, goto Edit Template... on the menu, then select Edit a Copy...
This will generate the standard button style in your xaml which you can edit. FYI, this will change your document outline to the button style outline. (See Document Outline window in VS2013.) To go back to the page outline, click the up arrow icon at the top of the outline.
Anyways, find the < VisualState x:Name="Pressed"/ > line and then comment out the PointerDownThemeAnimation line.
Done!

Windows Phone 8 Style

I am developing a Windows Phone 8 application using xaml. I have almost finished my project. On testing I notice that the application theme color is changing when I change the phone's theme color via settings. I need red color theme for my application (button selection, textbox border,progressbar color etc). What should I do to maintain constant style irrespective of phone's theme? Should I add style for each and every component?
Just create new resource dictionary and include it in App.xaml (merge dictionaries). Override all default styles for all controls you'll be using. Now, use those styles for all your controls and you will be fine. Since your controls will pull styles from App.xaml, your application will be styled according to your desires.
You can find styles in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Design, this will give you an idea what to change. Or get some of styles with Expression Blend (edit template).

ApplicationPageBackgroundThemeBrush not working?

I want to set the background of a page to the default theme color selected by the user
I use:
Background="{StaticResource ApplicationPageBackgroundThemeBrush}"
But this just returns a transparent background. Isnt this the correct way to the default theme color?
Windows 8-8.1 answer
No in fact the accent color selected by the user is not accessible to Windows Store apps.
Windows 10 answer
(Color)Application.Current.Resources["SystemAccentColor"] gives you the current accent color and you can monitor for changes using the new UISettings().ColorValuesChanged event.