Background color issue of TextInputLayout in android material-components - material-components

I'm new here for android material-components , I just tried the basic TextInputLayout with FilledBox style for the first time,
by default the background looks like translucent , according to our design I need to change it to pure white. But I tried app:boxBackgroundColor="#ffffff", then the text and text hint become invisible!
Then I tried app:boxBackgroundColor="#80ffffff" I can see they are some kind of transparent.
You know why? I just wanna pure white background and keep others same.
Thanks in advance!
<com.google.android.material.textfield.TextInputLayout
style=".MaterialComponents.TextInputLayout.FilledBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="120dp"
app:boxBackgroundColor="#ffffff">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#ff000000"
android:textColorHint="#ff0000"
android:hint="Location"/>
</com.google.android.material.textfield.TextInputLayout>

This is a bug in the alpha version of the material library where the background is drawn on top of the text. It will be fixed in the next release.

Related

JFreeChart change text color

I have recently implemented a JFreeChart library in my program, but I struggle to change some of the colors of the text, so I can use it in my dark theme. The screenshot below highlights the labels I was not able to figure out how to change the color of.
I am using java swing library with the latest version of JFreeChart and JCommon
If there is any way of changing those colors to some brighter colors, I would be really glad.
Thanks everybody for their answers, I really appreciate any kind of help with this problem. This is the image showing which parts of the chart I want to change the color of the text.
Try setTickLabelPaint() on the Axis that you want.
See all Changing color of labels in JFreeChart.

React-native Image ResizeMode:Contain not working

I hope there is someone savvy with React Native that can help me out here.
I want to resize an image according to the dimensions of the view that it is placed in. To my understanding that should be achievable by using "ResizeMode: Contain" as a style on the image. That should cause the image to rescale itself to fit within the surrounding view, iff it is too large (according to my understanding) .
I have attached an image that shows the dimensions of the view (the blue bordered view). The dimensions of the views are correct according to the blue border on the view, yet the image is not resized to fit it.
Can someone figure out, what it is that I am doing wrong here, or have I encountered a bug in the framework? (It is a fairly new framework I suppose, so that could actually happen I guess).
If it helps, then I am currently using the following React Native version:
react-native: 0.54.4
(and react-native-cli: 2.0.1 for what it is worth).
Picture of issue (notice the blue box and the wrongly scaled image within it):
resizeMode should be used as a prop instead of a property of the style object
<Image
style={{ ... }}
source={{ ... }}
resizeMode='contain'
/>

winforms messagebox background colour

I am new to winforms and I want to keep things simple
When I create a message box: I notice the top half is white background while the lower half is grey (!!!)
(what I really want is all background white).
But even the VisualStudio dialog doesn't behave this way
Can someone please help me?
Do I need to write some custom code ?
I would post the image but not allowed;(
Thanks
MessageBoxes are displayed by the operating system. If the options that are available aren't good enough, then you have to make your own form.

Change my CTAGS theme

I'm using ctags, which I installed in Ubuntu. When I autocomplete something in vim, the autocomplete text is white on a bright pink background. It's quite painful to look at. Is there a way to change these colors? I haven't found a way to do this, and none of the docs mention anything about theme or colors. Thanks!
I figured it out. You can change the color using:
:highlight Pmenu ctermbg=<color> ctermfg=<color>
Pmenu is PopupMenu, the menu tab-completion brings up. To format the currently selected item in the Pmenu, use PmenuSel.
ctermbg is the background color, and ctermfg is the foreground color. These can be named common color names such as red, green, blue, etc.
I set mine like this in vimrc:
hi Pemnu ctermbg=blue ctermfg=white
hi PmenuSel ctermbg=yellow ctermfg=black
Adding to the previous answer by 'mouche' for setting the colors for terminal vim, the following commands can be used to set the color of the pop-up menu for GVim:
:highlight Pmenu guibg=brown guifg=white
:highlight Pmenusel guibg=yellow guifg=black gui=bold

Silverlight Jetpack theme background colour

Does anyone know what the background colour is for the jetpack theme??
http://www.silverlight.net/content/samples/sl4/themes/jetpack.html
We're using the theme, but I can't see that light silver background colour which has a gradient through it.
Actually if you create a new project based on the JetPack theme, you will see there is a user control called TiledBackground which does the repeating effect for you.
However, the dependency property ResourceUri of this user control is binding to a wrong image file by default, I believe, and that's why you only see a light colored background.
To have the same background as in the demo, you simply need to replace the image backgroundtexture.png in the Images folder with the image file that Joe has provided. Then in the MainPage.xaml, you need to make sure the SourceUri is binding to this image.
For example, I have replaced with Joe's image and still named it backgroundtexture.png, and my project name is JetPack.
<controls:TiledBackground SourceUri="/JetPack;component/Images/backgroundtexture.png" />
Then you should see the dark background as expected. :)
It's actually an image that is repeated. To get the same effect you'll have to write a custom control or effect that tiles the image. Here's the image.
And here's a sample of tiling an image.
http://nokola.com/blog/post/2009/12/22/Fast-Tile-Brush-in-Silverlight-And-Easiest-Way-to-Shader-Effects.aspx

Resources