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.
Related
I'm using ionic 3 and angular. I want to change color and size of default tab bar in ionic, but when I modified main.css file, it can build success, but when I re-build, it seem return default status...
I don't know how to create new file css to change it.. How to can change new style of tab bar in ionic 3?
I'm so sorry because this is basic question, I'm a newbie
I am believing that you are asking for the tabs in ionic
It depends whether you are building for android or ios.
If you want to change for Android,
just add $tabs-md-background: color($colors, custom); in variable.scss file.
Where custom is your customized colour.
Similarly, you can change the size as well, depending on your phone os.
Some dialog windows of PhpStorm are using a black color to text and over a black background sometimes is hard to read.
Can I change the color of these inputs using some settings?
EDIT: The behaviour can be simulated selecting the theme Darcula and the scheme Default
"EDIT: The behaviour can be simulated selecting the theme Darcula and the scheme Default"
It is expected behavior in your case -- you are trying to use dark GUI Theme (Darcula) with light Color Schema (Editor area colors) which meant to work with light GUI Themes.
But yes -- such color is possible to change.
Settings/Preferences
Editor | Colors & Fonts | General
Text | Default Text
Change/Assign desired color to Foreground styling option
Changing colors:
Actual result:
P.S.
I've used Darcula GUI Theme + Default Color Schema.
It's possible that you may need to restart IDE for other combinations.
Resetting the settings maybe possibly fix the problem
https://www.jetbrains.com/help/phpstorm/2016.1/project-and-ide-settings.html
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="";
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.
I'm interested to know, How can I change the background color through programming in WP8 App. When I navigate between the pages in my app, the background color that appears is visible at the moment of swiping pages which is either white or black(depends on theme)
Today I had downloaded Imagefusion app from the Store, where background color you see while navigating between pages is light beige, but not white/black. Do you know how can I change the background color of the app layout? Thank you.
I'm using c#, visual studio 2013.
you must be having Grid at top most layer say gridRoot
then, If you want to change its background color programmatically then use:
gridRoot.Background = new SolidColorBrush( Colors.YourColor);
As you haven't set background color to Grid, it shows default color i.e. your theme color.
http://social.msdn.microsoft.com/Forums/en-US/e0fddd42-ecb9-4a2b-b5e5-10f464cdf3e6/change-background-other-than-dark-or-light-in-app?forum=wpdevelop
Here is the easiest way that fits my expectations. I guess this method also works. Thank you very much for your help.